Form 1 I select menu for selected row multiple gridview
next - go - to form 2 want to change form 1 back button click form 1 selected row values does't refresh
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.
Vincent Maverick DuranoPosted Apr 27, 2015, 7:05 AM
You can make of use UpdatePanel control to do partial page update This would avoid refreshing the page
Alternatively, if you are good at client-side scripting then you can use jQuery/JavaScript to pass the information without page refresh but this requires a lot of work to do
g sPosted Apr 27, 2015, 2:52 AM
Vincent Maverick DuranoPosted Apr 26, 2015, 2:42 AM
If you are referring to the browser back button, then that's not possible as you don't have control over the browser functionality What you can do is use your own Button and on click of that you can pass the value to the next page using querystring or session
http://www.bing.com/search?q=passing+gridview+row+to+another+page&src=IE-TopResult&FORM=IE11TR&conversationid=
g sPosted Apr 25, 2015, 5:11 AM
{
if (!IsPostBack)
{
dbcon();
query = "select * from Za ";
cmd = new SqlCommand(query, con);
adap = new SqlDataAdapter(cmd);
dt = new DataTable();
adap.Fill(dt);
// adap.Fill(dt11);
GridView1v.DataSource = dt;
GridView1v.DataBind();
}
}
the Above table 10 items display i select 2 items(Checkbox) send to another page display selected item in another page but i need to want add another item go to page 1 selected items display without page1 refresh using back button
Khargesh RajputPosted Apr 25, 2015, 4:51 AM
or explain more about problem
Do yau have dropdowwnlist
g sPosted Apr 25, 2015, 4:40 AM
give some example coding
Khargesh RajputPosted Apr 25, 2015, 4:26 AM
and check your code to bind data
Gowtham RajamanickamPosted Apr 25, 2015, 3:40 AM