Replies |
Johnbhatt
Posted on: 6/29/2012 1:11:56 PM
|
Level: Starter | Status: [Member] | Points: 25
|
Use below code On Page_Load event to avoid Postback everytime.
if (!IsPostBack)
{
GridView1Fill(); // Code to Bind Data to GridView.
} John Bhatt
Glad to Know, Free to Share.....
http://www.johnbhatt.com
Abhisekjani, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Johnbhatt
Posted on: 7/2/2012 12:04:07 AM
|
Level: Starter | Status: [Member] | Points: 25
|
Dear Abhisek,
If your query is solved please mark as answer and close forum post.
John Bhatt
Glad to Know, Free to Share.....
http://www.johnbhatt.com
Abhisekjani, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
No its not working....while i select a row in gridview the focus goes to first row mean if i select a row the page got autopostback......i want if i select a row the focus should be at the selected row.........
Abhisekjani, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
protected void Page_Load(object sender, EventArgs e)
if (!IsPostBack)
{
}
Regards
Muralidoss M
Abhisekjani, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
its not working...................
Abhisekjani, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Premalatha
Posted on: 7/4/2012 4:22:09 AM
|
Level: Starter | Status: [Member] | Points: 25
|
Use a Flag, like IsPopUpShown and add it in the session.
like:
if(!Page.IsPostBack)
{
bool _isShownInSession = (null != Session["IsPopUpShown"])?Convert.ToBoolean(Session["IsPopUpShown"]) : false;
if(isShownInSession == false)
{
//Show PopUp
Session["IsPopUpShown"] = true;
}
}
Hope This helps :)
Premalatha
Software Engineer
Abhisekjani, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|