Help: Silverlight Login in ASP.NET
Last post 07-04-2008 11:14 AM by sladapter. 5 replies.
Sort Posts:
07-03-2008 2:15 AM
Help: Silverlight Login in ASP.NET

Hi! Can anyone help?

I am just to begin is the Silverlight world, so it would be helpful to me if you explain me more details and simple.

Now I am running

- Visual Studio 2008 Pro with Silverlight 2 Beta 2 installed ( SDK + Runtime)

- Expression Blend 2.5 June Preview

- ASP.NET 3.5  ( VB.NET )

and I have build a websit that has the Log in page using asp.net login control.

Now I want to have the silverlight login interface instead of asp.net control,.and working as same as in my asp.net login control.

The eaiest to say is:

ASP.NET Control

-The username ; username textbox, password, password textbox, login button, reset button, forgot password button

will be replace by

- Silverlight 2 Beta 2

 

Could anyone help please!!!!

 

Thanks

Silverlight20

Loading...
Joined on 12-24-2007
Siem Reap, Cambodia
Posts 35
07-03-2008 5:21 AM
Re: Help: Silverlight Login in ASP.NET

Silverlight20:
Could anyone help please!!!!
 

Brad Abrams covers this on his blog

Accessing the ASP.NET Authentication, Profile and Role Service in Silverlight

 

xanoxate

Loading...
Joined on 06-22-2002
London UK
Posts 21
07-03-2008 8:30 AM
Re: Re: Help: Silverlight Login in ASP.NET

Thanks for this links, but I already tried it, it doesn't work properly.

ans I need more simple way to do it.

Thanks again.

Silverlight20

Loading...
Joined on 12-24-2007
Siem Reap, Cambodia
Posts 35
07-03-2008 11:32 AM
Re: Help: Silverlight Login in ASP.NET

If you want to Silverlight interface just build a Silverlight login UserControl with all the fields you need. When user click the login button you need to send the data (loing/password) back to Server through a Web Service call to do the validation then wait the result back to do what ever you want to do accordingly.

The validation logic should be the same no matter if you choose to use HTML form control(asp.net control), AJax or Silverlight control. The only difference between using Form controls and Silverlight is with form control you usually submit the form. With Silverlight (or Ajax), you gether all the data then just send the data back through WebService call.

 

 

sladapter
Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

sladapter

Loading...
Joined on 03-05-2008
Indiana, US
Posts 2,024
07-03-2008 10:16 PM
Re: Help: Silverlight Login in ASP.NET

Hi! This is really helpful. but as I said in the beginning i am really new to the programing world, so could you mind to write me the tutorial more details ablut your tip above?

Thanks in AdvanceSmile

Silverlight20

Loading...
Joined on 12-24-2007
Siem Reap, Cambodia
Posts 35
07-04-2008 11:14 AM
Marked as Answer
Re: Help: Silverlight Login in ASP.NET

 Hi,

If you are totally new to programming and silverlight, you need to go through some tutorials first before you start to write this login control:

http://silverlight.net/Learn/videocat.aspx?cat=2

http://silverlight.net/learn/tutorials.aspx 

Login control is a simple control. Here is what knowledge you need:

1) Build a UserControl in Silverlight with layout control like Grid/StackPanel etc and silverlight build-in control like TextBox and Button.

Currently there is no built-in password control, but for beginner you can just first use a Textbox as password control until you know how to write a custom control. There are some code for password control in this forum you can use. But that's not the most important thing for now.

2) Write WCF Service and have Silverlight consum the WCF service.

3) I assume you know how to write login validation logic

Here is a sample project I created:

http://www.2shared.com/file/3543584/648731dd/SilverlightLogin.html

 

sladapter
Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

sladapter

Loading...
Joined on 03-05-2008
Indiana, US
Posts 2,024
Page view counter