Click here to Skip to main content
15,886,680 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
i have created a master page for login of a employee for his company site.
and i wrote the code for login button in the same source page in script. but for this line

XML
ClientScript.RegisterStartupScript(Page.GetType(), "validation", "<script language='javascript'>alert('Invalid Username and Password')</script>");
        }




i m getting error how to proceed. and one more doubt how maintain the master page for all the nested pages.
Posted

1 solution

I am not really sure if should proceed from there. If your master page has login form on it, it means that all related content pages will also do the login. In principle, this is possible — it might look like in CodeProject. But are you sure you need it?

Anyway, please see this tutorial: http://www.asp.net/web-forms/tutorials/master-pages[^].

Your code sample does not look like an integral clause, so I cannot say anything. Probably, you simply failed to format the code properly.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900