Re: How to display a variable value?

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Ken Dopierala Jr. (kdopierala2_at_wi.rr.com)
Date: 12/12/04


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
>


Relevant Pages

  • Re: case type from string to type double is invalid
    ... I would put a breakpoint on ... getting this error because one of your values is a string that can not be ... >> Ken Dopierala Jr. ... >> For great ASP.Net web hosting try: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to rewrite with awk?
    ... > I'm unfamiliar with tools such as sed & awk. ... Extract the string that matches a RE. ... This script will not only expand all the lines that say "include ... file) and not resetting ARGV(the tmp file), it then lets awk do any ...
    (comp.unix.shell)
  • Re: Slow string
    ... I see virtually no difference in execution time for the code you posted when using cscript versus using wscript; to confirm, I bracketed the code with an initial ... Are you actually entering the script name into a console window? ... You can use the exact same line for every wrapper script - and that includes wsf and js scripts; all you need to do is change the final "vbs" to "wsf" or "js" as appropriate. ... If you build a large string by small concatenations, the performance degrades geometrically - so does array resizing, because they both use the same nasty technique inherited from VB1 of copying the entire data structure to a new structure with the added element. ...
    (microsoft.public.scripting.vbscript)
  • Re: Function that returns date of file.
    ... string after the date/time when it is used by itself. ... Is that your entire script? ... I make an IF statement that required the 'equals equals'. ... designed database your job will be all that much harder. ...
    (alt.php)
  • Multiple vulnerabilities found in CSGuestbook by CoolSerlets.com
    ... About this script: This is an open source GuestBook script offered by CoolServlets.com ... About the audit: This audit was performed by Daxgrapol and Dopel for RACAT. ... Only the first special character is filtered off of the return string. ... - Buffer overflow is possible (input field length not checked). ...
    (Bugtraq)