Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Masterpage
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
 
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 14-Jan-13 19:56pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 6,769
1 Sergey Alexandrovich Kryukov 6,338
2 DamithSL 5,408
3 Manas Bhardwaj 4,816
4 Maciej Los 4,195


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100