Software Engineer NIC Jaipur
Response.Redirect("Insetemp.aspx?Contactid="+0);if (!Page.IsPostBack) { // btnSave.Attributes.Add("onclick", "javascript:return alert('Are U Sure');"); btnSave.Attributes.Clear(); // btnSave.Attributes.Add("onclich", "javascript:return confirm('Are you sure');"); //Session["Contactid"] = "0".ToString(); //Session["CurrentPage"] = "Add Contact"; int id; if (Convert.ToInt32(Request.QueryString[0])==0) { Session["Contactid"] =Request.QueryString[0]; btnSave.Text = "Save"; } else { btnSave.Text = "Update"; //Session["CurrentPage"] = "Edit Contact"; id = Convert.ToInt32(Request.QueryString[0]); getdata(id); } }
--- Edit~/Insetemp.aspx?{0}
ItemTemplate asp:Label ID="Label1" runat="server" Text='%# Container.DataItemIndex +1 %'/asp:Label /ItemTemplate
Post a Comment
3 comments:
Response.Redirect("Insetemp.aspx?Contactid="+0);
if (!Page.IsPostBack)
{
// btnSave.Attributes.Add("onclick", "javascript:return alert('Are U Sure');");
btnSave.Attributes.Clear();
// btnSave.Attributes.Add("onclich", "javascript:return confirm('Are you sure');");
//Session["Contactid"] = "0".ToString();
//Session["CurrentPage"] = "Add Contact";
int id;
if (Convert.ToInt32(Request.QueryString[0])==0)
{
Session["Contactid"] =Request.QueryString[0];
btnSave.Text = "Save";
}
else
{
btnSave.Text = "Update";
//Session["CurrentPage"] = "Edit Contact";
id = Convert.ToInt32(Request.QueryString[0]);
getdata(id);
}
}
--- Edit
~/Insetemp.aspx?{0}
ItemTemplate
asp:Label ID="Label1" runat="server" Text='%# Container.DataItemIndex +1 %'
/asp:Label
/ItemTemplate
Post a Comment