Hello
I have label in first_page.aspx having value "Mar-2010". I want to set the value "Mar-2010" in dropdown in Second_page.aspx on page_Load.
If I am writing the code
if(!IsPostBack)
{
//my code
}
then it is not working. Otherwise, Outside if block it's working.
But it set value in the dropdown only, if writing outside the IF block.
I want to filter data of "Mar-2010" only."Mar-2010" shows in the dropdown but page shows all the value "Jan-2010","Feb-2010","Mar-2010" and so on.
Pls Help
Thanks in Advance
Loading
Akkiraju IvaturiPosted Jul 1, 2011, 12:59 AM
Suthish NairPosted Jun 30, 2011, 1:56 AM
refer articles for different ways: Different Ways to Pass Data between Web Forms
Jiteendra SampathiraoPosted Jun 30, 2011, 1:48 AM
Use Querystrings to pass the value from one page to other....
Manikavelu VelayuthamPosted Jun 30, 2011, 1:10 AM
Cross-Page Posting in ASP.NET Web Pages
http://msdn.microsoft.com/en-us/library/ms178139.aspx