----- Original Message -----
Sent: Saturday, September 09, 2006 10:44
AM
Subject: [ajaxpro] obtener el valor de un
dropdown
Hola, no manejo muy bien el inglés.
Me parece muy interesante Ajax y quiero usarlo en
mis proyectos.
Quisiera saber cómo obtengo el valor de un
dropdownlist al hacer click en un botón?
Este es mi código:
------------------------------------------------------------------------------------
<AjaxPro.AjaxMethod()>
Public Function selectionDDL() As String
Return
ddlrpta.Value.ToString
End Function
-----------------------------------------------
<select id="ddlrpta"
runat="server">
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
</select>
<input id="btnrpta" type="button"
value="press here">
<span
id="lblrpta"></span>
-------------------------------------------
function
rpta()
{
var e =
getElementById("lblrpta");
e.innerHTML = AjaxVB.WebForm2.selectionDDL().value; }
---------------------------------------------------------------
Espero puedan
ayudarme.
----- Original Message -----
Sent: Saturday, September 09, 2006
10:16 AM
Subject: [ajaxpro] Re: What are the
correct Web.config entries for AjaxPro and ASP.net 2.0
Thanks Ervin,
I used the suggested web.config
entry and it is working
fine.
gerhard
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---