You can use the following:
Assuming your DropDownList's ID is DDL
<asp:DropDownList ID="DDL" runat="server">...
your javascript can be:
document.getElementById("<%=DDL.ClientID%>").value
[EMAIL PROTECTED] wrote:
> I understand how to get a value from a C# method to javascript, but how
> do you send a C# method a value from javascript?
>
> I have a html select dropdown menu that I populate with a C# dataset
> method. I need to now pass the selected value from the dropdown menu
> to a C# method. Does anyone know how?
>
> Thanks,
> Shawn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
The open source project is now located at
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---