Results 1 to 2 of 2

Thread: How do you acheive this in ASP.NET?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member jeba's Avatar
    Join Date
    Feb 2000
    Posts
    265

    How do you acheive this in ASP.NET?

    Hi there!

    What is the equivlent of the following ASP code in ASP.NET?
    please help.

    Code:
    Sub ValidateValue()
          if Condition=False then
         %> 
             <SCRIPT LANGUAGE=javascript> 
            <!-- 
                  alert("I want to display a msg here & then redirect!"); 
                 //otherwise I would have used Response.Redirect("mainpage.aspx")
                document.location.href="mainpage.asp"; 
            //--> 
           </SCRIPT> 
         <% 
              Response.End 
         end if
    End sub
    Last edited by jeba; Oct 28th, 2002 at 04:15 AM.
    J£ßä

Posting Permissions

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



Click Here to Expand Forum to Full Width