Problem with button click event handler

Discussion in 'ASP .Net Web Controls' started by technoGirl, Jan 5, 2007.

  1. technoGirl

    technoGirl Guest

    Hey guys, I'm doing something similar to the example below (c#

    Basically this sample has two different pages (cookies.aspx and
    customize.aspx). I'm implementing it in one page (i.e. when user click
    the right choices from the drop down lists, and click subit button, it
    should apply those properties and change the color, font size etc. Well
    when I first run the page (ctrl+F5). And the very first time that I
    select the properties from the lists, they get applied properly. Then
    if I go back to the drop down and change, lets say the color and text
    and hit submit again... it doesnt get applied and it needs the button
    clicked twice (i.e except for the intial request when it works on one
    click, you need the button to be clicked twice).

    So it sounds like the initial GET request is working but when you
    submit (that is post back) that's when its not behaving as expected.

    Can someone please help...PLEASE NOTE in the original sample that you
    can run from here([^])
    above that there are two pages and that could be causing this behaviour
    since I only have one page but I just can't see where or how ????

    Thanks for all your help
    technoGirl, Jan 5, 2007
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.