Click here to Skip to main content
16,008,010 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to change tab event Pin
cspriya4-May-09 21:18
cspriya4-May-09 21:18 
AnswerRe: how to change tab event Pin
Christian Graus4-May-09 21:54
protectorChristian Graus4-May-09 21:54 
Questioninsert multiple row using single form Pin
prateekfgiet4-May-09 21:10
prateekfgiet4-May-09 21:10 
AnswerRe: insert multiple row using single form Pin
Christian Graus4-May-09 21:13
protectorChristian Graus4-May-09 21:13 
GeneralRe: insert multiple row using single form Pin
prateekfgiet4-May-09 21:23
prateekfgiet4-May-09 21:23 
GeneralRe: insert multiple row using single form Pin
Christian Graus4-May-09 21:53
protectorChristian Graus4-May-09 21:53 
AnswerRe: insert multiple row using single form Pin
Nishant Singh4-May-09 23:44
Nishant Singh4-May-09 23:44 
AnswerRe: insert multiple row using single form Pin
Uma J5-May-09 0:03
Uma J5-May-09 0:03 
hey i have a solution!!!!!!!!
Just save the values in Temporary datatable and after that run that temporary datatable in a loop and write the insert in it.....

private void SaveGridDataInTempTable()
{
DataTable dtTemp = new DataTable();

if (dtTemp == null || dtTemp.Columns.Count <= 0)
{
dtTemp.Columns.Add("sino");
dtTemp.Columns.Add("name", typeof(String));
dtTemp.Columns.Add("gender", typeof(String));
dtTemp.Columns.Add("qualification", typeof(String));
dtTemp.PrimaryKey = new DataColumn[] { dtTemp.Columns["sino"] };
}

foreach (GridViewRow gvRow in GridView1.Rows)
{
DataRow drTemp = dtTemp.NewRow();
drTemp["sino"] = int.Parse(GridView1.DataKeys[gvRow.RowIndex]["sino"].ToString());
drTemp["name"] = ((TextBox)gvRow.FindControl("TextBox1")).Text.Trim();
drTemp["gender"] = ((RadioButtonList)gvRow.FindControl("RadioButtonList1")).SelectedValue.ToString();
drTemp["qualification"] = ((DropDownList)gvRow.FindControl("DropDownList1")).SelectedValue.ToString();

dtTemp.Rows.Add(drTemp);
}
Temp = dtTemp;
}

//Property to maintain the Datatable
public DataTable Temp
{
get
{
object o = ViewState["Temp"];
if (o == null)
{
DataTable dt = new DataTable();
return dt;
}
else
return (DataTable)o;
}
set
{
ViewState["Temp"] = value;
}
}

After this your normal insert code,

for(int i=0;i
QuestionAlert on successful validation Pin
Ramkithepower4-May-09 20:52
Ramkithepower4-May-09 20:52 
AnswerRe: Alert on successful validation Pin
Christian Graus4-May-09 21:14
protectorChristian Graus4-May-09 21:14 
AnswerRe: Alert on successful validation Pin
Anil Chauhan21-May-09 19:40
Anil Chauhan21-May-09 19:40 
Questionhow to open one datgrid in another datagrid Pin
govindi unal4-May-09 20:38
govindi unal4-May-09 20:38 
AnswerRe: how to open one datgrid in another datagrid Pin
Ramkithepower4-May-09 20:58
Ramkithepower4-May-09 20:58 
GeneralRe: how to open one datgrid in another datagrid Pin
govindi unal4-May-09 21:12
govindi unal4-May-09 21:12 
AnswerRe: how to open one datgrid in another datagrid Pin
Christian Graus4-May-09 21:15
protectorChristian Graus4-May-09 21:15 
GeneralRe: how to open one datgrid in another datagrid Pin
govindi unal4-May-09 21:31
govindi unal4-May-09 21:31 
GeneralRe: how to open one datgrid in another datagrid Pin
Christian Graus4-May-09 21:55
protectorChristian Graus4-May-09 21:55 
AnswerRe: how to open one datgrid in another datagrid Pin
Nishant Singh4-May-09 23:39
Nishant Singh4-May-09 23:39 
AnswerRe: how to open one datgrid in another datagrid Pin
Uma J5-May-09 0:11
Uma J5-May-09 0:11 
AnswerRe: how to open one datgrid in another datagrid Pin
Anil Chauhan21-May-09 21:36
Anil Chauhan21-May-09 21:36 
QuestionHelp with Headers Please Header.Controls.RemoveAt() Header.Controls.Add Dont Work... Pin
ortaparmak4-May-09 19:45
ortaparmak4-May-09 19:45 
QuestionProblem With window.createpopup() in java script Pin
prabhakar dwivedi4-May-09 19:18
prabhakar dwivedi4-May-09 19:18 
QuestionHow to use the tab controls Pin
cspriya4-May-09 16:13
cspriya4-May-09 16:13 
AnswerRe: How to use the tab controls Pin
Christian Graus4-May-09 17:45
protectorChristian Graus4-May-09 17:45 
AnswerRe: How to use the tab controls Pin
saanj4-May-09 19:28
saanj4-May-09 19:28 

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.