Re: How to display a variable value?
From: Ken Dopierala Jr. (kdopierala2_at_wi.rr.com)
Date: 12/12/04
- Next message: james: "Re: vs2003 - Bug?"
- Previous message: Lucas Tam: "Re: How can i create this variable?"
- In reply to: Miguel Dias Moura: "How to display a variable value?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 12 Dec 2004 13:03:56 -0600
Hi Miguel,
There are a few different ways to do this. If you are debugging you could
just set a breakpoint in your code and check the value when the breakpoint
is hit. If that isn't an option then you could place a label on the .aspx
page and assign the value of that string to the label. Or you could create
a hidden input type:
<input type="hidden" id="hidTest" name="hidTest" runat="server">
And in your script assign the value of the string to this hidden variable.
Then at the bottom of your .aspx page, maybe just before the </body> tag you
could put this script to show you the value everytime the page loads in a
little alert box:
<script language="javascript">
alert(document.getElementById('hidTest').value);
</script>
One of those ways should work for you. Good luck! Ken.
-- Ken Dopierala Jr. For great ASP.Net web hosting try: http://www.webhost4life.com/default.asp?refid=Spinlight If you sign up under me and need help, email me. "Miguel Dias Moura" <md*REMOVE*moura@*NOSPAM*gmail.com> wrote in message news:eYTt8dH4EHA.2180@TK2MSFTNGP10.phx.gbl... > Hello, > > I am working in ASP.NET/VB. I have a string created by a script. How can > i display the content of that string when the page is loaded so i can > check its value? > > Thanks, > Miguel >
- Next message: james: "Re: vs2003 - Bug?"
- Previous message: Lucas Tam: "Re: How can i create this variable?"
- In reply to: Miguel Dias Moura: "How to display a variable value?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|