C# .NET - creating a application to login in asp.net with c# using sql server

Asked By s p
02-Sep-10 11:59 PM
creating a application to login in asp.net with c# using sql server.Please provide sample code
  Shunmuga Nathan replied to s p
03-Sep-10 01:24 AM
Step 1.

1. Select your website project
2. Got to the menu Website-> ASP.net Conficuration
3. Configure your website with data base. It will take care all you user id passward, roles etc..
4. It will also create all the Class and methord for you.

Step 2.

1. Create login page.
2. Use the configured class files and it's methord.
3. It is very simple and powerfull login code. It will reduce you programming time

   
Create New Account
help
Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B)What is a is CTS? (B)What is a CLS (Common Language Specification)? (B)What is a Managed Code? (B)What is a Assembly? (A) What are the different types of Assembly? (B) What difference between VB.NET and C#? (I) what is the difference between System exceptions and Application exceptions? (I)What is CODE Access security? (I)What is a satellite assembly? (A) How to prevent my .NET DLL in .NET? (B) When we use windows API in .NET is it managed or unmanaged code? (I)What is COM? (A) What is Reference counting in COM? (A) Can you describe How can we know a state of a thread? (A) What is use of Interlocked class ? (A) What is a monitor object? (A) What are wait handles? (A) What is ManualResetEvent the difference between thread and process? Chapter 4: Remoting and Webservices (B)What is an application domain? (B) What is .NET Remoting? (B) Which class does the remote object has to
to be a .net developer • To test a Web Service you must create a windows application or web application to consume this service? It is True / False? FALSE How many classes can a single lifetime? Give an example. Answer1 static int Myint–The life time is during the entire application. br> Answer2 The static modifier is used to declare a static member, which belongs cannot be used with indexers, destructors, or types. In C#, the static keyword indicates a class variable. In VB, the equivalent keyword is Shared. Its scoped to the class in which it occurs. Example a. Static int var / / in c#.net b. static void you get records number from 5 to 15 in a dataset of 100 records? Write code. Answer1 DataSet ds1 = new DataSet(); String strCon = ”data source = IBM-6BC8A0DACEF;initial catalog = pubs;integrated Products”) DataGrid1.DataSource = ds.Tables(”Products”) What is the maximum length of a varchar in SQL Server? Answer1 VARCHAR[(n)] Null-terminated Unicode character string of length n, with a maximum of
i want to do some authentication in this project. How To: Use Forms Authentication with SQL Server in ASP.NET 2.0 patterns & practices Developer Center J.D. Meier, Alex Mackman, Blaine Andy Wigley, Kishore Gopalan Microsoft Corporation August 2005 Applies To • ASP.NET version 2.0 • SQL Server 2000 Summary This How To shows you how you can use forms authentication with the SQL Server membership provider. Forms authentication with SQL Server is most applicable in situations where users of your application are not part of your
Migration from SQL 2000 to SQL 2008 Can Anyone help me how to migrate DB scripts contains Joinnig in it. Please Tractor . Tractor_ID = @Tractor_ID AND Tractor_History . Date_Effective = @Date_Effective Please explain how to migrate these joins to SQL 2008 HI Follow these links to migrate SQL Server 2000 / SQL Server 2005 to SQL Server 2008 White paper written by experts SQL Server 2008 Upgrade Technical Reference Guide SQLCAT
can i imlement Email funcationality? Hi all, I need to implement email functionality in my application.when i click on button, email should be send to said email id in text how can i achieve this? for that which things are required? i heared that email server and port are require for that so tell me about these terms also that i get clear idea in my mind. If there is step by step note / link / code is there then help me for that. suggestions would be appreciated. Thanks, KK Hi write mail-using-systemnetmail.aspx hi, If you have taken web space somewhere on a web server then you are provided with the Email accounts and SMTP and POP services for sending and receiving E-mails. Some times you don't have SMTP server accounts and you may want to send email. Or Sometimes, for other reasons also you can be utilized for sending and receiving E-mails. Step 1: Create a new web application in visual studio and add a Web form to it. Next add a Button to the form and double click this button to bring the code for click event of this button in the code window. Copy paste the following code to the click event. Step 2: Run the web