Click here to Skip to main content
15,885,890 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalerror on insert a new row in a custom gridview Pin
zio_pino28-Mar-08 8:40
zio_pino28-Mar-08 8:40 
GeneralRe: error on insert a new row in a custom gridview Pin
led mike28-Mar-08 9:07
led mike28-Mar-08 9:07 
GeneralRe: error on insert a new row in a custom gridview Pin
zio_pino31-Mar-08 5:32
zio_pino31-Mar-08 5:32 
QuestionDropDownList Creation Pin
kontax28-Mar-08 8:08
kontax28-Mar-08 8:08 
GeneralRe: DropDownList Creation Pin
Mark J. Miller28-Mar-08 9:25
Mark J. Miller28-Mar-08 9:25 
GeneralRe: DropDownList Creation Pin
kontax28-Mar-08 10:04
kontax28-Mar-08 10:04 
GeneralRe: DropDownList Creation Pin
Mark J. Miller31-Mar-08 6:26
Mark J. Miller31-Mar-08 6:26 
QuestionHow to read Texbox value in a grid Pin
lav naphade28-Mar-08 8:05
lav naphade28-Mar-08 8:05 
Sir,
I m adding texbox in grid at runtime . it added successfully
but my problem is that how to read a value in a texbox i m sending
my code plz check this code give me reply

SqlDataAdaptor da=new SqlDataAdaptor("Select * from mytable",MyConnectionString);

DataSet dtSet=new DataSet();

da.Fill(dtSet);
GridView1.DataSource=dtSet.Table[0];
GridView1.DataBind();
TextBox txt ;
string strID;
//Add Textbox in a grid
for (int i = 0; i < dtSet.Tables[0].Rows.Count; i++)
{
for (int j = 0; j < dtSet.Tables[0].Columns.Count; j++)
{
txt = new TextBox();
strID = i.ToString()+j.ToString();
txt.ID=strID;
GridView1.Rows[0].Cells[0].Controls.Add(txt);
}
}

//Read This TextBox Value

string strTextID;
for (int i = 0; i <GridView1.Rows.Count ; i++)
{
for(int j=0;j<GridView1.Columns.Count;j++)
{
strTextID=i.ToString()+j.ToString();

TextBox txt = (TextBox)GridView1.Rows[i].Cells[j].FindControl(strTextID);
string strText=Txt.Text;//This Statement Give me error
}
}

plz send me reply

Thanks & Regards
Lav Naphade

lav naphade

GeneralRe: How to read Texbox value in a grid Pin
Mark J. Miller28-Mar-08 9:39
Mark J. Miller28-Mar-08 9:39 
GeneralRe: How to read Texbox value in a grid Pin
lav naphade29-Mar-08 6:01
lav naphade29-Mar-08 6:01 
GeneralRe: How to read Texbox value in a grid Pin
Mark J. Miller31-Mar-08 6:13
Mark J. Miller31-Mar-08 6:13 
QuestionGridview with nested repeater width problem Pin
allenpotter28-Mar-08 6:18
allenpotter28-Mar-08 6:18 
GeneralExtending login webcontrol Pin
Rey999928-Mar-08 6:04
Rey999928-Mar-08 6:04 
GeneralRe: Extending login webcontrol Pin
Not Active28-Mar-08 7:07
mentorNot Active28-Mar-08 7:07 
GeneralRe: Extending login webcontrol Pin
Rey999930-Mar-08 0:32
Rey999930-Mar-08 0:32 
GeneralRe: Extending login webcontrol Pin
Rey999930-Mar-08 21:20
Rey999930-Mar-08 21:20 
Generalsimple project Pin
laziale28-Mar-08 5:27
laziale28-Mar-08 5:27 
GeneralRe: simple project Pin
eyeseetee28-Mar-08 5:41
eyeseetee28-Mar-08 5:41 
GeneralRe: simple project Pin
J4amieC28-Mar-08 6:30
J4amieC28-Mar-08 6:30 
GeneralWebResource.axd gives SSL error warning - how do I turn it off? [modified] Pin
ERG Web Dev28-Mar-08 5:20
ERG Web Dev28-Mar-08 5:20 
QuestionMedium Trust webserver won't let me use a Forms Authentication Provider [modified] Pin
bambi_nl28-Mar-08 5:15
bambi_nl28-Mar-08 5:15 
GeneralASP.Net, Multithreading, and Response object Pin
Vodstok28-Mar-08 5:15
Vodstok28-Mar-08 5:15 
GeneralRe: ASP.Net, Multithreading, and Response object [modified] Pin
nelo_28-Mar-08 5:51
nelo_28-Mar-08 5:51 
GeneralCall webservice method with messgedigest Pin
mpavas28-Mar-08 5:05
mpavas28-Mar-08 5:05 
Generalasp.net is not redirecting a page to proper login.aspx page for authentication. Pin
coolsatty28-Mar-08 5:01
coolsatty28-Mar-08 5:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.