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 / September 2007

Tip: Looking for answers? Try searching our database.

adding button on runtime with values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kollasaeta - 19 Sep 2007 16:13 GMT
Hi
I have this table which I create on runtime with some rows from my
database.
What I want to do is when I create the table I want to create a button/
linkbutton/link or something beside each entry from the database and
when the user clicks on this button i want to remove the database
entry from the table.

So I guess my question is, how do I create a button with an onClick
event on runtime that knows what row it belong to.. So i can put in my
code that when this specific button gets clicked that I want to delete
this specific row which this button belongs to?
I am using asp.net and C#.

If you understand any of this mumbling, please help..
Eliyahu Goldin - 19 Sep 2007 16:31 GMT
Why don't you use a GridView control? It will build the table for you and
you can have a CommandField with a delete button in it.

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

> Hi
> I have this table which I create on runtime with some rows from my
[quoted text clipped - 11 lines]
>
> If you understand any of this mumbling, please help..

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.