Response.write in .Net

Results 1 to 4 of 4

Thread: Response.write in .Net

  1. #1
    Join Date
    Dec 1969

    Default Response.write in .Net

    So far I have settled with using &#060;asp:label id="" runat="server" /&#062; for writing variables onto my page.<BR>But now I want to write a custom JavaScript function based on some QueryString&#039;s. And therefore the result of label:&#060;span&#062;&#060;/span&#062; is not going to work...<BR><BR>

  2. #2

    Default RE: Response.write in .Net

    Why not?<BR>yourLabel.Text = "Value=" + Request.QueryString["param"];<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default Wrong, but I found out what to do

    then the html result will be<BR>&#060;span id="yourLabel"&#062;Value=QueryString&#060;/span&#062;<BR>and since I want to use it inside a javascript<BR>it wont work.<BR>I did normal response write at the position i wanted the result insted:<BR>&#060;% Response.Write("window.resizeTo(" & Request.QueryString("w") +6 & "," & Request.QueryString("h") +30 & ")") %&#062;<BR>its part of a auto window resizing script..

  4. #4

    Default Ah ok check these

    RegisterStartupScript<BR>RegisterClientScriptBlock <BR>RegisterArrayDeclaration<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts