RSS Forums RSS
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 2792 | Replies: 5 | Thread Tools  Display Modes
Reply
Join Date: Apr 2006
Posts: 9
Reputation: mojio is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mojio's Avatar
mojio mojio is offline Offline
Newbie Poster

Help drop down list

  #1  
Apr 18th, 2006
I'm a newbie and I've got some problem with my project.
Here's my prob.

I have 2 pages.
First page I have 2 dropdownlist, months and years, and some radio button.
Second page I have checkboxlist and submit button.
When i click on radio button in the first page(autopostback), it redirect to the second page.
and when i submit on the second page, will go back to the first page.
I want to keep my selectedindex in the first page when i go back.

What should i do?

Sorry, my skill language is not good.
Ps. English is not my motherlanguage.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2006
Posts: 62
Reputation: Fenerbahce is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
Fenerbahce Fenerbahce is offline Offline
Junior Poster in Training

Re: drop down list

  #2  
Apr 25th, 2006
<@Page EnableViewState="true">write this top of the page. that will work.
Reply With Quote  
Join Date: Apr 2006
Posts: 62
Reputation: Fenerbahce is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
Fenerbahce Fenerbahce is offline Offline
Junior Poster in Training

Re: drop down list

  #3  
Apr 27th, 2006
did it help you, mojio ??
Reply With Quote  
Join Date: Apr 2006
Posts: 9
Reputation: mojio is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mojio's Avatar
mojio mojio is offline Offline
Newbie Poster

Re: drop down list

  #4  
May 8th, 2006
Thanks a lot for your answer.

I use a session to keep my choice in page load

And could you tell me

What EnableViewState work for ?
Reply With Quote  
Join Date: Apr 2006
Posts: 62
Reputation: Fenerbahce is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
Fenerbahce Fenerbahce is offline Offline
Junior Poster in Training

Re: drop down list

  #5  
May 9th, 2006
these examples will help u to understand,

1- ) if u dont want to lose your things in textboxes u have to add
<@Page EnableViewState="true">top of the page.

2- ) if u dont want to lose your things in any of textboxes u have to do like this...
<asp:TextBox id="TextBox1" runat="server" EnableViewState="True"></asp:TextBox>bye
Reply With Quote  
Join Date: Apr 2006
Posts: 9
Reputation: mojio is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mojio's Avatar
mojio mojio is offline Offline
Newbie Poster

Re: drop down list

  #6  
May 9th, 2006
thank you for your kindness. ^^
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 1:14 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC