i have registration form (like any job site) which have 4 rows for providing eduction detail. i want to provide 5th row when user click on more info button dynamically.
in asp.net
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Raghavendra UPosted Jul 14, 2010, 7:45 AM
{
DataSet RDs = new DataSet();
try
{
DataTable dt;
DataRow dr;
int i;
dt = RDs.Tables["temp"];
dt.Columns.Add("Slno");
k = Convert.ToInt16(ViewState["cnt"]);
for (i = 0; i < k + 1; i++)
{
dr = RDs.Tables["temp"].NewRow();
dr["Slno"] = i + 1;
RDs.Tables["temp"].Rows.Add(dr);
}
}
catch (Exception ex)
{
throw ex;
}
return RDs;
}
{
GVItems.DataSource = AddRow();
GVItems.DataBind();
ViewState["cnt"] = GVItems.Rows.Count;
}
}
shilpi guptaPosted Jul 14, 2010, 5:53 AM
for exmaple a user fill a 1 row his 10th class info,
2row his 12th class info
3row his BSC info
4 row his MSc info
i want when user click on +sign button , a new row genrate
when user click on -sign button , a new genrate row delete.
user can genrate/delete any no of row on click
.
vipin sainiPosted Jul 12, 2010, 2:10 AM
Abhimanyu K VatsaPosted Jul 11, 2010, 7:55 AM
Tell me something.....
What type of rows you are talking about, like table row, field row, paragraph row?
I think you want to display some information to user while filling the form, then remember it can be done by using following things: javascript popups, open new page, silverlight, blend, etc. There are lots of ways to make it possible. It totally depend on what your expertise is?
Understand !
shilpi guptaPosted Jul 11, 2010, 7:41 AM
its dynamically add row in application form. i think its done by javascript.