I think I figured it out. I had to loop through the Page Controls then the child controls of each page control.
Check it out.
Dim oCurr As Object
Dim c As Control
Dim childc As Control
For Each c In Page.Controls
For Each childc In c.Controls
If TypeOf childc Is TextBox Then...
I am trying to loop through my controls on my web page, and perform some operation on the textboxes. This don't seem to be working.
Thanks.
Dim oCurr As Object
'-Loop through each of the controls on the form
For Each oCurr In Me.Controls()
'- Check to see if the control is a text box
If...
I have a class library and I want to assign a strong name through Visual Studio. When I select properties from my project, the Strong Name section is not available in my Property Pages. Anyone know why this is happening.
Thanks.
I tried your code and here is what I got
vbc : error BC30420: 'Sub Main' was not found in 'MyTest'.
C:\GAC\test\MyTest.vb(1) : error BC30466: Namespace or type 'HW' for the Imports
'HW' cannot be found.
Imports HW
~~
C:\GAC\test\MyTest.vb(4) : error BC30205: End of statement expected...
I cannot get GAC to work. If you see I did anything wrong, please let me know.
Here is my file
**********hwmod2.vb******************
Imports System
Imports System.Reflection
<assembly:AssemblyVersionAttribute("1.0.0.0")>
<assembly:AssemblyKeyFileAttribute("hwmod2.snk")>...
Hi, I have an assembly in my Global Assembly Cache that I would like to access in a ASP.Net code behind page. I am pointing my web.config to the assembly I need to use in GAC. I then want to access the file in my code behind. Is there a way to do this. I would rather not copy the .dll file into...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.