It appears you have not yet registered with our community. To register please click here...


Postbacks without JavaScript?

This is a discussion on Postbacks without JavaScript? within the JavaScript and Java forums. Topic: Hello, A search of the forums didn't find me quite what I was looking for, but my question is, ...


Reply
 
Postbit Seperator LinkBack Thread Tools Postbit Seperator Search this Thread Postbit Seperator Display Modes
Old 06-06-2008, 08:32 AM   #1 (permalink)
 
Status: Junior Member
Join Date: Apr 2008
Posts: 6
Trader Rating: (0)
Kolyn_Kryw is on a distinguished road
Send a message via ICQ to Kolyn_Kryw Send a message via Skype™ to Kolyn_Kryw
TD$: 65.00
Donate
Arrow Postbacks without JavaScript?
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,

Kolyn_Kryw
_________________
Singles Cheap auto loans
Kolyn_Kryw is offline   Reply With Quote
Old 08-27-2008, 04:26 PM   #2 (permalink)
 
Status: Junior Member
Join Date: Aug 2008
Posts: 8
Trader Rating: (0)
jwright is on a distinguished road
TD$: 50.00
Donate
Default Re: Postbacks without JavaScript?
Easy, if you're using the DropDownList control. Set AutoPostBack="true" on your DropDownList and handle the OnSelectedIndexChangedEvent.

<asp:DropDownList ID="_ddlItem" runat="server" AutoPostBack="true" OnSelectedIndexChanged="_ddlItem_SelectedIndexChan ged">
</asp:DropDownList>

Last edited by jwright : 08-27-2008 at 04:27 PM. Reason: misspelling. :)
jwright is offline   Reply With Quote
Old 10-09-2008, 08:50 PM   #3 (permalink)
 
Urbanmyth's Avatar
 
Status: Forums Moderator
Join Date: Jun 2008
Posts: 148
Trader Rating: (0)
Urbanmyth is on a distinguished road
TD$: 775.00
Donate
Default Re: Postbacks without JavaScript?
Great job Jwright, way to go helping out bud!
Urbanmyth is offline   Reply With Quote
Table Bottom LeftTable BottomTable Bottom Right
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




Home | Site Map | Contact | Archive | Top

 

Copyright © 2007 - 2010 iTalkWebs Network

Search Engine Optimization by vBSEO 3.1.0