문제

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!

도움이 되었습니까?

해결책

@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);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top