here i have created a mode works on padeload & this classs GetQueryStringValue returns a query;;
stringmode = GetQueryStringValue(HttpContext.Current.Request.QueryString["Mode"]);
string productId = GetQueryStringValue(HttpContext.Current.Request.QueryString["ProductID"]);
string temp = "localhost/admin/product.aspx?Mode=Edit&ProductID=1";
if (mode.Equals("Edit")
{}
else (mode.Equals("Insert"))
{}
whle entering in edit mode there is no value so it skips the step...how to enter in these modes to edit or insert datas in same button click????