That would help!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 8:10 PM
To: [EMAIL PROTECTED]
Subject: Re: [AspNetMetroArea] (unknown)


Dhaval,

Try making that DDL a server-side HTML Control by
adding runat="server".

Ex.

<form runat="server" ID="FormDDL">
 <select id="DDL" runat="server">
 <option value="1234">
 <option... and so forth.
 </select>
 <button id="btnImg" runat="server"
onclick="funcDDL"><img></button>
 </form>


public void funcDDL() {
string val = DDL.selectedIndex;
.....
....
}


-T


--- Dhaval <[EMAIL PROTECTED]> wrote:
> I actually need help with some coding issues - not
> sure if anyone can
> help or is this the right group to post to:
>
> ---------------------------------------
> I have HTML DDL with values. And I have a button for
> executing.
> <form runat="server" name="DDL">
> <select>
> <option value="1234">
> <option... and so forth.
> </select>
> <button onclick="funcDDL()"><img></button>
> </form>
>
> ---------------
> C# ->
>
> public void funcDDL() {
> string val = DDL.boroughDDL.items.selectedIndex;
> .....
> ....
> }
>
> And here is the error:
>
> The type or namespace name 'DDL' could not be found
> (are you missing
> a using directive or an assembly reference?)
>
> I can do it using ASP:DropDownList control but it
> needs to be done in
> the above manner. Is it possible and if yes - could
> someone help
> please...Thanks.
>
>
>





__________________________________
Do you Yahoo!?
Yahoo! Domains  Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer





Yahoo! Groups Links









 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspNetMetroArea/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to