.NET Forum / Visual Studio.NET / IDE / April 2008
VS 2008 Cannot access nested asp controls in design view to enable property events icon
|
|
Thread rating:  |
Rich Fowler - 25 Mar 2008 15:14 GMT When working with a C# web page in VS 2008 and a control is nested within the Table server control (within a row and cell of course), I can find no way to access the control to have the Events icon available in the Properties window (for adding events to the control). Design view does not allow access to the nested control. If in Design view and you select the nested control in the Document Outline window, the Table server control (not the nested control) is displayed in the Properties window. If you are in Source view, the Events icon is not available in the Properties window. In many web projects, nearly all controls are nested in a table. And to use Themes, you need to use the table server control.
Wen Yuan Wang [MSFT] - 26 Mar 2008 11:14 GMT Hello Rich,
VS Designer cannot provide event tab for the control which is nested in asp:Table.
Only when designer provides live instance of the control would it provide event binding functionality. For the control nested in asp:table, VS Designer doesn't create live nested control instance. This is the reason why you cannot events icon in Source view. For page designer view, due to the implement of asp:table control, we cannot select nested control. Thereby, we cannot bind event in designer view, either.
I'm afraid to say this is by design. In your scenario, I'd like to suggest you may consider using HTMLTable control instead of ASP:Table control. VS Designer could works fine with HTML Table. You can bind event with control which is nested in HTML Table without issue. Another method is to bind event with each button out of ASP:Table control first. Then, drag it into asp:TableCell control.
Hope this helps. We are indeed sorry for any inconvenience this may have caused. If you really have concern on this very much. You can also post the issue to our Connect feedback portal. Our developer will evaluate them seriously and communicate with you directly on the issue there. http://connect.microsoft.com/VisualStudio/ Improving the quality of our products and services is a never ending process for Microsoft.
Have a great day. Please feel free to let me know if there is anything we can help with. We are glad to assist you. Best regards, Wen Yuan
Microsoft Online Community Support Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@microsoft.com. ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscriptions/support/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Rich Fowler - 26 Mar 2008 16:04 GMT Thanks for the response (although it is not the one I wanted, but the one I expected).
By the way, I tried nesting the controls in an HTML table and the event icon did not appear then either. I want to use the asp:Table control throughout the site to use Themes.
The events are availabe using intellisense in Source view. I then need to define the event name manually in the aspx page and manually create the aspx.cs code, which leads to fingering errors (bad spelling). In large web pages, it is very difficult to be dragging the control in and out of tables.
Rich F.
> Hello Rich, > [quoted text clipped - 54 lines] > This posting is provided "AS IS" with no warranties, and confers no > rights. Wen Yuan Wang [MSFT] - 27 Mar 2008 08:02 GMT Hello Morris,
You needn't to uninstall SQL 2000. It sounds like you disabled user instance on your SQL Express server. Please run the following code on your SQL Express server to enable UserInstance. sp_configure 'user instances enabled','1'
For more detailed information, please refer to http://technet.microsoft.com/en-us/library/ms143684.aspx [User Instances for Non-Administrators]
Hope this helps, please try the above method and let me know if this method resolve the issue. We will follow up. It's my pleasure to assist you. Have a great day, Best regards, Wen Yuan
Microsoft Online Community Support Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@microsoft.com. ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscriptions/support/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Wen Yuan Wang [MSFT] - 27 Mar 2008 08:06 GMT Wen Yuan Wang [MSFT] - 27 Mar 2008 12:40 GMT Hello Rich, Thanks for your reply and understanding.
After we nested the controls in an HTML table, the event icon will come back if we switch into page design mode.
As you see, in source view mode, VS intellisense could show event name. But we have to define the event name manually. I'm really sorry for any inconvenience this may have caused.
Again, if you have any more concern or there is anything else we can help with, please feel free to let me know. It's my pleasure to assist you.
Have a great day, Best regards, Wen Yuan Microsoft Online Community Support Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@microsoft.com. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Wen Yuan Wang [MSFT] - 31 Mar 2008 12:30 GMT Hello Rich,
Do you have any more concern or there is anything unclear in this issue so far? Please feel free to let us know if there is anything we can help with. It's my pleasure to assist you.
Have a great day, Best regards, Wen Yuan
Microsoft Online Community Support Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@microsoft.com. ==================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Rich Fowler - 31 Mar 2008 15:25 GMT It is clear. There is still an issue when the 'events' icon appears in the properties window (the control is not in an asp:Table as in my original question). If I click on a control in source view (before accessing the page in design view), the 'events' icon will not be present. I must access the web page in design view and then switch back to the source view before the 'events' icon will appear. This primarily happens when the web page is already open to source view when the project is opened. This is a minor issue but can catch a person off guard.
Thanks - Rich F.
> Hello Rich, > [quoted text clipped - 17 lines] > This posting is provided "AS IS" with no warranties, and confers no > rights. Wen Yuan Wang [MSFT] - 01 Apr 2008 10:30 GMT Hello Rich, Thanks for your reply.
If we never been to design view, the designer is not loaded for performance reasons. Thereby, there is no live control instance in source view. Events cannot be bound unless control is instantiated on design surface.
Thus, you find Event icon doesn't show up when you click on the control in source view (before accessing the page design view). After switching back to design view, you noticed the event icon comes back. Mikhai Arkhipov explained well this behavior on ASP.net Forum. You may refer to http://forums.asp.net/t/1142758.aspx [Event Binding From HTML Designer Source View]
Hope this helps. Please feel free to let us know, if you have any more concern. It's my pleasure to assist you.
Have a great day, Best regards, Wen Yuan
Microsoft Online Community Support Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@microsoft.com. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Wen Yuan Wang [MSFT] - 03 Apr 2008 11:36 GMT Hello Rich,
Is there is anything else unclear? Please feel free to let us know if you have any more concern. We are glad to assist you.
Have a great day, Best regards, Wen Yuan
Microsoft Online Community Support Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@microsoft.com. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Rich Fowler - 07 Apr 2008 15:37 GMT Got it all
Thanks
> Hello Rich, > [quoted text clipped - 15 lines] > This posting is provided "AS IS" with no warranties, and confers no > rights. Wen Yuan Wang [MSFT] - 08 Apr 2008 06:12 GMT Thanks for your reply, Rich. You are welcome. :)
Have a great day, Best regards, Wen Yuan
Microsoft Online Community Support Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@microsoft.com. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Free MagazinesGet these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...
|
|
|