Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

VisualStudio doesn't create attribute in codebehind  for <asp:tablecell>

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gürkan Demirci - 21 Jul 2005 23:33 GMT
Hi,

i am using the VisualStudio FormDesigner to create an asp:table.
I want to populate an asp:tablecell with different controls at runtime.
In the codebehind file, there is an attribute for the asp:table. I can use
this to
access the tablerow and tablecell objects. It would be more convenient to
access a tablecell through
a class-attribute. Why is VisualStudio not creating an attribute for
tablerow or tablecell ?

regards,

guerkan
Victor Garcia Aprea [MVP] - 22 Jul 2005 01:24 GMT
Do you mean the protected member variable right? The behaviour you're
looking for is in the HTML Table (look in the Toolbox for HTML controls not
Web Forms tabs), creating such a table will create the corresponding HTML
markup, you can then right click on the table itself or any cell and select
"Run As Server Control", this will cause VS.NET to add a runat='server'
attribute to the corresponding markup and create a matching member variable
in your codebehind file for the table or cell.

Does this help?

Signature

Victor Garcia Aprea
Microsoft MVP | ASP.NET
Read my weblog:
Followers of the IHttpHandler
http://clariusconsulting.net/vga

> Hi,
>
[quoted text clipped - 10 lines]
>
> guerkan

Free Magazines

Get 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 ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.