CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: Date Entered: 2/23/2006 11:54:31 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 28 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
"MANNY100" <>
NewsGroup User
IDe not showing custom control in vs 20052/23/2006 11:54:31 AM

0

Hi

I have created a web server control that basically checks the users security setting and pops up an alert box if not valid. The control works fine. As i am not actauly rendering anything visual to the screen, when i drop the control on to the web form i do not see anything , the html page does register the control.  In 2003 i used to see <mycontrol1 > on the page

 

Any ideas what is wrong or how i get to show this on the ide webform

 

Thanks

"dannychen" <>
NewsGroup User
Re: IDe not showing custom control in vs 20052/23/2006 7:38:22 PM

0

Normally VS tries to render your control to give the developer as close to real-life rendering a possible.  Sometimes, like in your case, this isn't appropriate.  In these scenarios, there is a flag you can take advantage of to help.

Here's an example you can use for reference:

Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
    
If DesignMode Then
        writer.Write(Me.ID)
    
End If
    MyBase.Render(writer)
End Sub

 

--
Danny



disclaimer: Information provided is 'as is' and conveys no warranties or guarantees.
"Mikhail Arkhip
NewsGroup User
Re: IDe not showing custom control in vs 20052/23/2006 9:16:46 PM

0

Try View | Show Non-Visual Controls.
Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
3 Items, 1 Pages 1 |< << Go >> >|




   
  Privacy | Contact Us
All Times Are GMT