Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where's my control?

Status
Not open for further replies.

RichS

Programmer
Apr 24, 2000
380
US
I just started playing around with ASP.NET about an hour ago. I have a WebForm with a label and a dropdown list box. When i run it the label shows on the page but not the dropdown. Why is this?

Rich
 
Not sure but you may need to put something into the drop down.

Other than that we need more information to help you. Code? what you are doing? That'l do donkey, that'l do
[bravo] Mark
 
There is no code yet. I just dragged the dropdown list control from the tool bar to the webform and ran it (pressed F5). I also tried it with two items in the items collection. No luck.
 
Then I am not sure what to tell you I also drug a DropDownList onto a new web form and it showed up with and without items in the collection.

You don't by chance mean a datagrid do you? That'l do donkey, that'l do
[bravo] Mark
 
Thanks for the reples. No, it's a dropdownlist. Hmm, must be something funny going on here.
 
I've had IIS on this box for 6 months and installed .NET only a week ago or so. Thanks for the link; I will check it out.
 
Just to make sure, right click your form from the solution explorer and select "view Code"
Even if you haven't written any code, VS.NET has done it for you. Maybe there is a problem there or a problem in your HTML code.

Check them both out and/or post them here so we can help you better.

Happy coding! Daren J. Lahey
Just another computer guy...
 
Sometimes when you install VS .NET the dll LibMysql.dll does not get registered properly. Try re-registering this dll, then running your forms again. Hopefully your controls will then be visible!

Regards,
Natalee
 
Hmm... I don't seem to have a LibMysql.dll.
 
Sorry I gave you the wrong dll. Here is what you need to do:

regsvr32 aspnet_isapi.dll

Hope this helps!!

Happy Coding,
NatGreen
 
The following solved the problem. I did not see this documented anywhere but on this site. Check out thread

thread855-351076


C:\>cd \winnt\microsoft.net
C:\WINNT\Microsoft.NET>cd framework\v1.0.3705

C:\WINNT\Microsoft.NET\Framework\v1.0.3705>aspnet_regiis -i

<<<press enter and the following was displayed>>>
Start installing ASP.NET (1.0.3705.0)
Finished installing ASP.NET (1.0.3705.0)

C:\WINNT\Microsoft.NET\Framework\v1.0.3705>
 
That is exactly the process described in the MSDN article for which I gave you a link on August 8.
&quot;To repair IIS mappings for ASP.NET, you can run the Aspnet_regiis.exe utility by following the steps below.
Click Start, and then click Run.
Type cmd and click OK.
At the command prompt, type &quot;\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_regiis.exe&quot; -i and click OK.&quot; Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
I thought it only applied to reinstalling IIS, as the article is titled, which I did not. Thanks for help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top