943,938 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2216
  • ASP.NET RSS
Jul 17th, 2007
0

asynchronous dropdownlist any idea

Expand Post »
any idea about asynchronous drop downlist, on selected item of drop downlist with out causing server round trip how can we populate selected item into textbox.(with out postback or callback)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sasindagi is offline Offline
14 posts
since Jun 2007
Jul 17th, 2007
0

Re: asynchronous dropdownlist any idea

Hey Use AJAX Extension controls .Which are available at http://ajax.asp.net/default.aspx?tabid=47.Download and install and use it.DOcumentation also there you can download it use it.

coming to your problem I solved using AJAX controls as

<script runat="server">

protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
TextBox1.Text = DropDownList1.SelectedItem.Value;
}
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<aspcriptManager ID="ScriptManager1" runat="server">
</aspcriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<aspropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
Width="100px">
<asp:ListItem Selected="True">first_item</asp:ListItem>
<asp:ListItem>second_item</asp:ListItem>
</aspropDownList>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</ContentTemplate>
</asp:UpdatePanel>

</div>
</form>
</body>
</html>

I think this works
Reputation Points: 10
Solved Threads: 1
Light Poster
aravindkishore is offline Offline
29 posts
since Feb 2007
Jul 17th, 2007
0

Re: asynchronous dropdownlist any idea

aravindkishore, please use [code] and [/code] tags when you post code.
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Jul 18th, 2007
0

Re: asynchronous dropdownlist any idea

error creating update panel any idea
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sasindagi is offline Offline
14 posts
since Jun 2007
Jul 19th, 2007
0

Re: asynchronous dropdownlist any idea

Did you put the Update panel under the Script Manager? And did you install the AjaxToolKitExtender.vsi?
Reputation Points: 347
Solved Threads: 13
Practically a Posting Shark
arjunsasidharan is offline Offline
812 posts
since Aug 2006
Jul 19th, 2007
0

Re: asynchronous dropdownlist any idea

yes i had installed AjaxToolKitExtender.vsi other than update panel i can see all controls
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sasindagi is offline Offline
14 posts
since Jun 2007
Jul 19th, 2007
0

Re: asynchronous dropdownlist any idea

never mind i got javascript without postback in dropdownlist
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sasindagi is offline Offline
14 posts
since Jun 2007
Jul 19th, 2007
0

Re: asynchronous dropdownlist any idea

Good for you.. so did it work?
Reputation Points: 347
Solved Threads: 13
Practically a Posting Shark
arjunsasidharan is offline Offline
812 posts
since Aug 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: select check boxes
Next Thread in ASP.NET Forum Timeline: Sending an acknowledgement via Email while storing data in ASP.NET1.0





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC