javascript call on asp.net
-
DataTable tbl1 = dt.filltbl("select * from tbl_issue_type where id=-1", "new1");
DataRow row1 = tbl1.NewRow();
row1["issue_type"] = txt_issue_type.Text;
tbl1.Rows.Add(row1);
dt.update(tbl1, "select * from tbl_issue_type");
Page.RegisterStartupScript("myrest", "alert('New issue was added successfully');");
Page.RegisterStartupScript("myqd", "window.opener.location.reload();");
Page.RegisterStartupScript("abc", "window.close();");window.opene.location.reload(); not work in my pge actually i want to refresh my dropdown list box item after add button click my above return code is work and add new entry in database and after that i want that new value show in my dropdown list box. :-D
I will do my best? Integrated Solutions, Bikaner (Raj.), India
-
DataTable tbl1 = dt.filltbl("select * from tbl_issue_type where id=-1", "new1");
DataRow row1 = tbl1.NewRow();
row1["issue_type"] = txt_issue_type.Text;
tbl1.Rows.Add(row1);
dt.update(tbl1, "select * from tbl_issue_type");
Page.RegisterStartupScript("myrest", "alert('New issue was added successfully');");
Page.RegisterStartupScript("myqd", "window.opener.location.reload();");
Page.RegisterStartupScript("abc", "window.close();");window.opene.location.reload(); not work in my pge actually i want to refresh my dropdown list box item after add button click my above return code is work and add new entry in database and after that i want that new value show in my dropdown list box. :-D
I will do my best? Integrated Solutions, Bikaner (Raj.), India
Hi, why don't you use an update panel and do it from server side?
Intelligence is almost useless for those who have nothing else! Email: caiokf@gmail.com
-
DataTable tbl1 = dt.filltbl("select * from tbl_issue_type where id=-1", "new1");
DataRow row1 = tbl1.NewRow();
row1["issue_type"] = txt_issue_type.Text;
tbl1.Rows.Add(row1);
dt.update(tbl1, "select * from tbl_issue_type");
Page.RegisterStartupScript("myrest", "alert('New issue was added successfully');");
Page.RegisterStartupScript("myqd", "window.opener.location.reload();");
Page.RegisterStartupScript("abc", "window.close();");window.opene.location.reload(); not work in my pge actually i want to refresh my dropdown list box item after add button click my above return code is work and add new entry in database and after that i want that new value show in my dropdown list box. :-D
I will do my best? Integrated Solutions, Bikaner (Raj.), India
-
DataTable tbl1 = dt.filltbl("select * from tbl_issue_type where id=-1", "new1");
DataRow row1 = tbl1.NewRow();
row1["issue_type"] = txt_issue_type.Text;
tbl1.Rows.Add(row1);
dt.update(tbl1, "select * from tbl_issue_type");
Page.RegisterStartupScript("myrest", "alert('New issue was added successfully');");
Page.RegisterStartupScript("myqd", "window.opener.location.reload();");
Page.RegisterStartupScript("abc", "window.close();");window.opene.location.reload(); not work in my pge actually i want to refresh my dropdown list box item after add button click my above return code is work and add new entry in database and after that i want that new value show in my dropdown list box. :-D
I will do my best? Integrated Solutions, Bikaner (Raj.), India
-
Tell the browser to load the page from the server, not just reload it from the cache:
window.opener.location.reload(_true_);
Despite everything, the person most likely to be fooling you next is yourself.
To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier. this information is shown in confirm box when i use as u suggest. two buttons are there resend and cancel. what to do now? :-D
I will do my best? Integrated Solutions, Bikaner (Raj.), India
-
Hi, why don't you use an update panel and do it from server side?
Intelligence is almost useless for those who have nothing else! Email: caiokf@gmail.com
:-D how i use update panel on this because when i click on link button a new window open through javascript and when form is return from close i want that in my drop down new value should be store? please tell me how to do this? using ajax or any thing else thanks for reply.
I will do my best? Integrated Solutions, Bikaner (Raj.), India
-
To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier. this information is shown in confirm box when i use as u suggest. two buttons are there resend and cancel. what to do now? :-D
I will do my best? Integrated Solutions, Bikaner (Raj.), India
-
DataTable tbl1 = dt.filltbl("select * from tbl_issue_type where id=-1", "new1");
DataRow row1 = tbl1.NewRow();
row1["issue_type"] = txt_issue_type.Text;
tbl1.Rows.Add(row1);
dt.update(tbl1, "select * from tbl_issue_type");
Page.RegisterStartupScript("myrest", "alert('New issue was added successfully');");
Page.RegisterStartupScript("myqd", "window.opener.location.reload();");
Page.RegisterStartupScript("abc", "window.close();");window.opene.location.reload(); not work in my pge actually i want to refresh my dropdown list box item after add button click my above return code is work and add new entry in database and after that i want that new value show in my dropdown list box. :-D
I will do my best? Integrated Solutions, Bikaner (Raj.), India
why you are not using __doPostBack insted of window.opener.location.reload(); hope this thing help you
Mohd Azharuddin Ansari Syntel Pune