HI Friends,
On button_click(postback), my dropdownlist of gridview is getting blank, so i m getting error of "Object Reference...." on the line "ddl.selecteditem.value"
Also, dropdownlists selectedindexchanged event is fired on button click(Page Postback), which is making dropdownlist to go blank. AutoPostBack of dropdownlist is set as False, still the event is fired
Pls help
selva kumarPosted May 11, 2013, 5:34 AM
here is sample:
public void bind()
{
//Ur Code //
}
private void button1_Click(...)
{
//ur code//
bind();
}
selected index changed(..)
{
//ur code//
bind();
}
also bind page load like this;
if(!ISPOSTBACK)
{
bind();
}
try this...this will be helpful......
Sandeep Singh ShekhawatPosted May 11, 2013, 5:15 AM
Can you please put your code here.
SUNIL GUTTAPosted Apr 30, 2013, 2:21 PM
AutoPostback of dropdownlist is nothing to do with button postback :)
well once try Page.Isvalid property ..!
It can be better u can explain ur senario u using them ?
Regards