Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > script to get value of gridview field

Thread Tools

script to get value of gridview field

RBeach1955 RBeach1955 is offline
Junior Member
Join Date: Jan 2011
Posts: 9
I am new to this but here goes:

I have a textbox on my aspx file called BadgeIDData. I have a gridview that gives this ID. The gridview is hidden from most users. I have a textbox on the form called BadgeIDData that the user can see. I need the Gridview.BadgeID to be sent tot he BadgeIDData textbox. I have attempted the below in my script but to no avail.

1 Sub Page_Load()
2 BadgeIDData = FindControl("GridView1.BadgeID")
3 End Sub

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript validation for a not required field, field is onlyrequired if another field has a value jr Javascript 3 07-08-2010 10:33 AM
Copy File Field Value to Dynamic File Field Value VUNETdotUS Javascript 25 11-10-2007 10:36 AM
Get GridView Bound Field value shapper ASP .Net 1 03-09-2007 02:46 PM
1.Enter space bar for field names and save the field.The field shoud not get saved and an alert should be there as"Space bars are not allowed" Sound Javascript 2 09-28-2006 02:43 PM
Newbie problem - Changing Gridview field value (i.e. calculate a value) before clicking update VS2005 ASPX AAJ ASP .Net 0 09-06-2006 08:31 AM