Re: Getting value from asp:label into javascript input value
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Getting value from asp:label into javascript input value

From: ASM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid>
Date: Fri Aug 05 2005 - 15:51:40 CEST

Dwizz wrote:
> Thanks for the quick responce Dag,
>
> so just to clarify,
>
> My ASP:Label is as follows
> <asp:Label id="Label2" font-names="Arial" font-size="X-Small"
> runat="server">Label</asp:Label>
>
> my Javascript input should be as follows;
> <script>
> var lbl = document.getElementById(Label2);
> alert(lbl.value);
> </script>
>
> <input id="Label2" readonly="readonly" type="text" value=""
> name="unitprice[]" />
>

I know aything about asp, but something like that ?

<input id="Label2" readonly="readonly" type="text"
  name="unitprice[]"
  value="<% execute "response.write Label" %>" />

where *Label* would be your asp Label value

-- 
Stephane Moriaux et son [moins] vieux Mac
Received on Mon Oct 24 02:13:50 2005