Postbacks without JavaScript?

Discussion in 'Java' started by Mirey86, May 29, 2008.

  1. Mirey86

    Mirey86 New Member

    Joined:
    May 29, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    A search of the forums didn't find me quite what I was looking for, but my question is, is it possible to do a postback to the same page in ASP.NET without using JavaScript?

    I'm building a "contact us" form, with different options available via dropdowns, and when someone chooses a dropdown, I want certain information and options on the page to change according to what they have chose (and if they decide to pick something else, I want it to change again, accordingly). I'm trying to avoid using client-side JS as much as possible because of the problems that occur if users have JS disabled, etc...
    Could someone point me in the right general direction for this? I don't even know if it's possible. I've tried Googling around for examples, but the ones I've found so far all use JS to do what I'm trying to do.

    Thanks,

    Mirey
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Yes, It has nothing to do with ASP / its plain HTML and instead of giving the url of the form to some other page you can give the current page itself.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice