Forums » .NET » ASP.NET »

How to load data without postBack?


Posted Date: 12 Jul 2012      Posted By:: shincy     Member Level: Silver    Member Rank: 1363     Points: 1   Responses: 4





According selection dropdownlist I have load data in the text box without
postback.




Responses

#679984    Author: Anil Kumar Pandey      Member Level: Platinum      Member Rank: 1     Date: 12/Jul/2012   Rating: 2 out of 52 out of 5     Points: 4

make use of Ajax to avoid post back.

Place the Drop down list inside update panel.


<asp:UpdatePanel ID="upSetSession" runat="server">
<ContentTemplate>
<asp:DropDownList ID="ddlMyList" runat="server"
onselectedindexchanged="ddlMyList_SelectedIndexChanged"
AutoPostBack="true">
<asp:ListItem>Select One</asp:ListItem>
<asp:ListItem>Yes</asp:ListItem>
<asp:ListItem>No</asp:ListItem>
</asp:DropDownList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlMyList"
EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>



Thanks & Regards
Anil Kumar Pandey
Microsoft MVP, DNS MVM



 
#679986    Author: chiranjita nayak      Member Level: Silver      Member Rank: 570     Date: 12/Jul/2012   Rating: 2 out of 52 out of 5     Points: 2

You can use javascript for change value .

On DropDownList onchnage event you can set textbox value using javascript



 
#679996    Author: suresh Babu M      Member Level: Silver      Member Rank: 703     Date: 12/Jul/2012   Rating: 2 out of 52 out of 5     Points: 2

Hi,

you can use ajax control that is update panel,which doesn't shows roundtrip.
You place dropdownlist in update panel.


Regards






 
#680004    Author: Sumit Kr Verma      Member Level: Silver      Member Rank: 2821     Date: 12/Jul/2012   Rating: 2 out of 52 out of 5     Points: 0

Please use,

<asp:updatepanel> tag.



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : Display the time time left
Previous : How can Create custome google search
Return to Discussion Forum
Post New Message
Category:

Related Messages
Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.