Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good day all, please can some one help me out on how to reload a dropdownlist without reloading the page using JQuerry or any one..

Currently i am using this auto post back event
C#
 protected void DropVentureName_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (DropName.SelectedIndex == 2)
            {
                DropSelectWait.Visible = true;

            }
// the method i am using reloads the page, i want it to reload only dropdownlist...How can i do that 


Thanks, I do appreciate

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 7-Nov-13 1:37am
v2
Comments
OriginalGriff 7-Nov-13 7:37am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
♥…ЯҠ…♥ 7-Nov-13 8:28am    
Out of curious..... is there any link for these standards, could you share the link with me?
OriginalGriff 7-Nov-13 9:32am    
http://en.wikipedia.org/wiki/Etiquette_(technology)
♥…ЯҠ…♥ 7-Nov-13 22:53pm    
Thanks Griff.....
OriginalGriff 8-Nov-13 1:41am    
You're welcome!

Hi, you can use client side postback, its fast and easy to use with Asp.net ajax extension (in the tool box).

here is a link how to use it:
http://www.youtube.com/watch?v=3HdJu1U6ciQ</a>[^]
 
Share this answer
 
Indeed use AJAX, more specific using updatepanel would be the easiest way.

XML
<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
<asp:DropDownList
             ID="DropDownList1"
             runat="server"
             AutoPostBack="true"
             OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
             >
        </asp:DropDownList>
            </ContentTemplate>
        </asp:UpdatePanel>


http://msdn.microsoft.com/en-us/library/bb399001.aspx[^]
 
Share this answer
 
v2
Comments
Difameg Network Nigeria 7-Nov-13 8:33am    
i have done that but not working
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>

<asp:DropDownList ID="DropVentureName" runat="server" Width="250px"
Height="30px" AutoPostBack="True"
onselectedindexchanged="DropVentureName_SelectedIndexChanged">
<asp:ListItem Selected="True">Please Select
<asp:ListItem>CONS BREW
<asp:ListItem>NBC
<asp:ListItem>NIG BREW
<asp:ListItem>GUINESS
<asp:ListItem>LAFURE




Just a sample of it
Jules Kiddo 7-Nov-13 17:01pm    
Add <asp:ScriptManager> and <contenttemplate> tags. Also close all tags properly.
Difameg Network Nigeria 8-Nov-13 4:12am    
I have added it before sending the information, but still yet not working
 
Share this answer
 
v2
Comments
Difameg Network Nigeria 8-Nov-13 5:32am    
the codes are too long
just need a simple code using the inbuilt Update panel and scriptmanager.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900