Ask a Question related to ASP.NET General, Design and Development.
-
TaeHo Yoo #1
How to repopulate a dropdown list without posting back?
I have two dropdown list(ie State and Region) that are populated with
data from database.
I want to repopulate the second dropdown list(Region) according to what
state user has selected without posting back to the server.
How do I implement this?
Thanks a lot in advance.
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
TaeHo Yoo Guest
-
GridView Control is not posting back correctly
Hi All I am using ASP 2 in VS 2005.net beta 2. I am using a gridview and have bounded it with datatable. I have added dropdownlist to the... -
Dropdown list
I would like to display 15 items (lines) in the dropdown list, but by default the list displays only 11 lines. How can I have all the 15 items... -
Posting data back to a modal dialog window
Hi all, I have a modal dialog window from which a user selects a few rows from a datagrid and then clicks on an image button. My question is... -
Weekly list FAQ posting
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <org> ... -
Natty Gur #2
Re: How to repopulate a dropdown list without posting back?
Hi,
You should get all the data to the client (you can use XML islands[1])
and then use java script and the DHTML objects[2] to clear the list and
add new items to the list[3] or just change the inner html.
[1] -
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk3[/url]
0/htm/xmconxmldataislands.asp
[2] -
[url]http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml[/url]
/reference/objects.asp
[3] -
[url]http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml[/url]
/reference/objects.asp
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest
-
Natty Gur #3
Re: How to repopulate a dropdown list without posting back?
Cut and paste the two parts of the URL to the explorer.
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest
-
Brock #4
Re: How to repopulate a dropdown list without posting back?
The URLs are wrapped on the lines. Make sure you get the whole address. They
work fine.
"TaeHo Yoo" <yootaeho@yahoo.com> wrote in message
news:enOhOLNUDHA.1740@TK2MSFTNGP12.phx.gbl...> Thanks Natty Gur for your advice.
> However, none of links you provided work.
> Could you tell me again?
>
> Appreciate.
>
>
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
Brock Guest
-
Ram #5
Re: How to repopulate a dropdown list without posting back?
You can do it in this way.
1. Put all your functionality for getiing the data of your second drop
down in an ASPX page, and return the results as a XML content.
2.Create an XML DOM object on the client side and load the aspx page
into that object. You can also pass the query string.
Ex: xmlDocObj.load("yourpage.aspx?querystring=value);
3. Now you have all the data for the second drop down in the xml
object on the client side.
4. Parse through the XML object and populate the drop down.
Thanks
Ram Pabbaraju
TaeHo Yoo <yootaeho@yahoo.com> wrote in message news:<#fqR1DMUDHA.612@TK2MSFTNGP12.phx.gbl>...> I have two dropdown list(ie State and Region) that are populated with
> data from database.
> I want to repopulate the second dropdown list(Region) according to what
> state user has selected without posting back to the server.
>
> How do I implement this?
>
> Thanks a lot in advance.
>
>
>
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!Ram Guest



Reply With Quote

