•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 427,428 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,560 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 944 | Replies: 3
![]() |
•
•
Join Date: May 2006
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
Hi everybody
I have one question. I´m quite new to HTML programming, but have been dabbling with it.
I have a website that has two dropdownlists (ASP.NET controls).
One ddl is filled on Page_Load with the months available. The other I have filled with every week of the corresponding month with JavaScript.
This has worked fine. I however get into trouble when continuing on. When I press my ASP.NET button and want to get the values in the dropdownbuttons I get the value for the one filled by ASP.NET but not the one filled by JavaScript. That one always reports 0 items, even though the items are shown on the webpage.
How can I get the HTML values of the dropdown server side?
with regards
Arnar Gudnason
Iceland
I have one question. I´m quite new to HTML programming, but have been dabbling with it.
I have a website that has two dropdownlists (ASP.NET controls).
One ddl is filled on Page_Load with the months available. The other I have filled with every week of the corresponding month with JavaScript.
This has worked fine. I however get into trouble when continuing on. When I press my ASP.NET button and want to get the values in the dropdownbuttons I get the value for the one filled by ASP.NET but not the one filled by JavaScript. That one always reports 0 items, even though the items are shown on the webpage.
How can I get the HTML values of the dropdown server side?
with regards
Arnar Gudnason
Iceland
HTML is not ASP.NET. To get the values of HTML elements server-side, post them in a form and iterate through the Request object; or don't use an HTML element in the first place, use an ASP.NET server control instead.
You don't need to place them in a hidden element, as the Request object contains all the posted form values.
If you have additional ASP.NET questions, it's best to ask them in the ASP.NET forum.
You don't need to place them in a hidden element, as the Request object contains all the posted form values.
If you have additional ASP.NET questions, it's best to ask them in the ASP.NET forum.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Another Trojan-Spy.HTML.smitfraud.c problem (Viruses, Spyware and other Nasties)
- O/T. HTML printing problem.......... (HTML and CSS)
- Html header of a page changed programmatically? (ASP.NET)
- Follow up to :- RUNDLL32.EXE is not responding (Viruses, Spyware and other Nasties)
- fresh install of xp pro.. (Windows NT / 2000 / XP / 2003)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Displaying data on same page without reloading page.
- Next Thread: Project Help: Turtle in Javascript


)
Linear Mode