RSS Forums RSS
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1270 | Replies: 1
Reply
Join Date: Mar 2007
Posts: 1
Reputation: bomothusi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bomothusi bomothusi is offline Offline
Newbie Poster

Tutorial Button Click

  #1  
Mar 9th, 2007
Morning

am a beginner in (programming)asp.net(vb).Please help me with the code,After the user selected the value from the dropdownbox,and enter some in the textboxes,when the user click add entry(button),the values to be anded to the database and be displayed in the datagrid,for modification.

Thank you in Advance
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2007
Posts: 29
Reputation: aravindkishore is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
aravindkishore aravindkishore is offline Offline
Light Poster

Re: Button Click

  #2  
Mar 15th, 2007
I think you have found a solution.but,any way

I am assuming these dd,tb are not it the edittemplate of datagrid.

code looks like this

// FillDataGrid()

here you have total code for filling datagrid
like
connection,fill. etc..

in button click()
VALUE =val(dd1.selectedvalue)+val(tb1.text)
here write command obj update query by setting the required field with VALUE.
obj.ExecuteNonquery() will update the database.
the call again FillDataGrid()
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 1:15 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC