asynchronous dropdownlist any idea

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2007
Posts: 14
Reputation: sasindagi is an unknown quantity at this point 
Solved Threads: 0
sasindagi sasindagi is offline Offline
Newbie Poster

asynchronous dropdownlist any idea

 
0
  #1
Jul 17th, 2007
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)
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 29
Reputation: aravindkishore is an unknown quantity at this point 
Solved Threads: 1
aravindkishore aravindkishore is offline Offline
Light Poster

Re: asynchronous dropdownlist any idea

 
0
  #2
Jul 17th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,580
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Solved Threads: 52
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

Re: asynchronous dropdownlist any idea

 
0
  #3
Jul 17th, 2007
aravindkishore, please use [code] and [/code] tags when you post code.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 14
Reputation: sasindagi is an unknown quantity at this point 
Solved Threads: 0
sasindagi sasindagi is offline Offline
Newbie Poster

Re: asynchronous dropdownlist any idea

 
0
  #4
Jul 18th, 2007
error creating update panel any idea
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 812
Reputation: arjunsasidharan is on a distinguished road 
Solved Threads: 13
arjunsasidharan's Avatar
arjunsasidharan arjunsasidharan is offline Offline
Practically a Posting Shark

Re: asynchronous dropdownlist any idea

 
0
  #5
Jul 19th, 2007
Did you put the Update panel under the Script Manager? And did you install the AjaxToolKitExtender.vsi?
There is just two ways to live your life.
One is as though nothing is a miracle.
The other is as if everything is.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 14
Reputation: sasindagi is an unknown quantity at this point 
Solved Threads: 0
sasindagi sasindagi is offline Offline
Newbie Poster

Re: asynchronous dropdownlist any idea

 
0
  #6
Jul 19th, 2007
yes i had installed AjaxToolKitExtender.vsi other than update panel i can see all controls
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 14
Reputation: sasindagi is an unknown quantity at this point 
Solved Threads: 0
sasindagi sasindagi is offline Offline
Newbie Poster

Re: asynchronous dropdownlist any idea

 
0
  #7
Jul 19th, 2007
never mind i got javascript without postback in dropdownlist
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 812
Reputation: arjunsasidharan is on a distinguished road 
Solved Threads: 13
arjunsasidharan's Avatar
arjunsasidharan arjunsasidharan is offline Offline
Practically a Posting Shark

Re: asynchronous dropdownlist any idea

 
0
  #8
Jul 19th, 2007
Good for you.. so did it work?
There is just two ways to live your life.
One is as though nothing is a miracle.
The other is as if everything is.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC