The server block is not well formed
Hi all, I've received this error ever since I decided to host my website. Can somebody please advice on how to fix the problem?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khargesh RajputRank #616 · 3.9K reputationPosted May 10, 2015, 8:05 PM EDT
there should be same name.
and here why you have write masterpage==
there should be single = operator
Khargesh RajputRank #616 · 3.9K reputationPosted May 10, 2015, 9:33 PM EDT
To display message you can use javascript alert
like
string message = "wrong emailid .";
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("");
ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", sb.ToString());
Khargesh RajputRank #616 · 3.9K reputationPosted May 10, 2015, 7:42 PM EDT
and it inherits to Default page
If login is page name then it should inherit login and in cs code name should be same
check it
Yi Rong Tan50 reputationPosted May 10, 2015, 8:01 PM EDT
I've changed the text to "Login". However, I'm still facing the same error.
Yi Rong Tan50 reputationPosted May 10, 2015, 9:25 PM EDT
I've managed to fix the earlier errors. Thanks alot! However now I'm facing an error pertaining to the message box in my page. Can you kindly advise on this too? Many thanks!
Yi Rong Tan50 reputationPosted May 11, 2015, 5:48 PM EDT
Thank you so much for helping me all these while! One last thing I hope you can help me with:
Please refer to the below codes. How do I Transfer this block of code to use a response of a Javascript messagebox ?
Khargesh RajputRank #616 · 3.9K reputationPosted May 11, 2015, 7:58 PM EDT
I have no more idea about gritter but i know gritter will show message as you want.
search for gritter google.
syntax is like this
ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "CallJS", "showGritter('Record Not Found...','No Record For Search','top-center');", true);
return;