Results 1 to 4 of 4

Thread: Combobox disabled when clikc on back button ...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    top of the mountain
    Posts
    234

    Question Combobox disabled when clikc on back button ...

    Hi,
    I have two radio buttons (rb1, rb2) and two comboboxes(webcontrols.dropdownlist, cmb1,cmb2) in asp page(1.aspx) . rb1 is checked and cmb1 is disabled by default, also I add javascript onClick event on each radio button to do this: when user click on rb1 then disable cmd2 and enable cmb1, and vice versa when user click on rb2 then disable cmd1 and enable cmd2. Submit button lead to other page. I click on rb2 (javascript do the job, disable cbm1 and enable cmb2), then I click on submit button and another page shows. Then, finally my problem is, after submitting when click on 'back' in browser (ie) 1.aspx shows again but now rb2 checked and cmb2 disabled instead of cmb2 enabled and cmb1 disabled. At the end, only to mention that 'enableviewstate' is true for page and for all controls.
    Did anybody have idea why cmb2 is disabled?

    regard j

  2. #2
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Question

    Could it be that the page is returning back to it's original state - like the way it appears when you first visit the page?
    ~Peter


  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    top of the mountain
    Posts
    234

    Re: Combobox disabled when clikc on back button ...

    Quote Originally Posted by MrGTI
    Could it be that the page is returning back to it's original state - like the way it appears when you first visit the page?
    In that case rb1 should be checked and cmb2 disabled, but now I get rb2 checked and cmb2 disabled.
    What is wrong ?!?!?

    regard j

  4. #4
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    Re: Combobox disabled when clikc on back button ...

    aspx hates the back button.
    Magiaus

    If I helped give me some points.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width