Click here to Skip to main content
16,008,719 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i'm new to .net and C#...
tell me how to call texbox id from source file in ado class file..
tell me some examples...
Posted

In my next article you could find a complete example of using grid and textboxes in ASP.NET.
Advanced ASPX GridView Pagination and Data Entities[^]
 
Share this answer
 
Textbox txtbox1=(Textbox)Page.FindControl("textbox1");
txtbox1.Text = "your string";
 
Share this answer
 
hiiii.......

use this to get the gridview textbox value



C#
if (dataGrid1.SelectedItems.Count > 0)
          {
              for (int i = 0; i < dataGrid1.SelectedItems.Count; i++)
              {
                  System.Data.DataRowView selectedFile = (System.Data.DataRowView)dataGrid1.SelectedItems[i];
                  strdata = Convert.ToString(selectedFile.Row.ItemArray[1]);

                  strdata1 = Convert.ToString(selectedFile.Row.ItemArray[2]);
              }
          }
 
Share this answer
 
Refer:
1. Example 1[^]
2. Example 2[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900