0

Here is my aspx file: Default.aspx (I do not think this is relevant)

And here is my C# code-behind file: Default.aspx.cs

Here is my debug output. It shows that everything up to the JavaScript line gets executed:

[4476] aspx.page: Begin Load 
[4476] : Number of fields = 2 
[4476] : Page to load = Login 
[4476] : Session matched the supplied GUID! 
[4476] aspx.page: End Load 

I am totally lost. I'd really appreciate some help!

8
  • 5
    You are trying to drive a boat on a road. It need water actually Commented Jun 12, 2012 at 6:05
  • Couldn't see your Code behind code, Pastebin.com gives error: "This website/URL has been blocked until further notice either pursuant to Court orders or on the Directions issued by the Department of Telecommunications" Commented Jun 12, 2012 at 6:06
  • Yeah I know its supposed to be executed by the web browser, but its not. My actual goal is to use ajax to inject another page into a div after user validation. Commented Jun 12, 2012 at 6:07
  • @Pankaj strange, well here is a mirror: pastie.org/4071836 Commented Jun 12, 2012 at 6:09
  • @Mike: Use ScriptManager.RegisterClientScriptBlock Method (Page, Type, String, String, Boolean) instead of Page.RegisterStartupScript, its obsolete. for ex. ScriptManager.RegisterClientScriptBlock(this.Page,this.getType(),"dummykey",alert('Hi'),true); Commented Jun 12, 2012 at 6:14

1 Answer 1

1

@Mike: If you don't have ScriptManager in your page then ScriptManager.RegisterClientScriptBlock Method won't work, instead use this :

ClientScript.RegisterClientScriptBlock(this.GetType(), "DummeyKey", "alert('Hi')", true);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.