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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Gowtham RajamanickamRank #57 · 29K reputationPosted Apr 24, 2015, 11:40 PM EDT
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 25, 2015, 12:26 AM EDT
and check your code to bind data
g s102 reputationPosted Apr 25, 2015, 12:40 AM EDT
give some example coding
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 25, 2015, 12:51 AM EDT
or explain more about problem
Do yau have dropdowwnlist
g s102 reputationPosted Apr 25, 2015, 1:11 AM EDT
{
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
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Apr 25, 2015, 10:42 PM EDT
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 s102 reputationPosted Apr 26, 2015, 10:52 PM EDT
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Apr 27, 2015, 3:05 AM EDT
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