go to this link and follow the procedure given there
http://msdn.microsoft.com/en-us/library/bb676626.aspx
domain name keep it empty
give a url where u want to redirect the page once signed in with windows live id
at the end of it u will get application id and secret key
2--then go to visual web developer and open a website
and paste this code
iframe style="BACKGROUND-COLOR: #666666"
id="I1"
name="I1"
marginheight="0"
src="http://login.live.com/controls/WebAuth.htm?appid="your application id here"&Context="your secret key here"&style=font-size%3A+10pt%3B+font-family%3A+verdana%3B+background%3A+white%3B" frameborder="0"
name="I1"
marginwidth="0"
scrolling="no"
align="middle"
marginheight="0"
Imp note:
the above code must be in < and />tags as i could not place those in this blog i am leaving that thing to you ppl to do by yourself
Note:
make sure that u have changed the appid and secret key in that code.....
even this code can be placed in an html file and u ll get a signin button on viewing the html file where once u signed in it vl redirect it to the page u mentioned while creating your application......
i ll tell what i know about this procedure how it works
whenever you created the application it maintains in the database the following
1.your appid
2.your secret key
3.your return url
once signin button is pressed the appid and secret key are loaded from the signin button itself coz you pasted the appid and secret which u got during the creation of application. then the windows live id checks for the authentication, if the details are right then the appid and secret key both checked for redirecting it to the url which you mentioned. If appid and secret both dint match with any of the details in the database then it vl generate an error. if they are correct then it redirects it to the return url present in the application. If the url doesnt have any page then it generates error 404 mentioning that there is no page requested.......