Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 11th, 2006, 05:07 AM
Authorized User
 
Join Date: Jan 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hunzian78@yahoo.com
Default mail.yahoo.com Type Login Form

Hi....All...

Well ....

I got stucked in my asp.net 1.1 's login form. In this form i used two text boxes for user name and password with required field validators. And two buttons one of them is login button and the others is signup.

By clicking on the login buttion I am able to go to next page i.e. main page but.............when i click signup button the required field validator just appears......and that restrict me to go to signup form.......

Is there any way to go to signup form when i click the signup button without filling the signin name and password.


Abdul Ghaffar
 
Old March 12th, 2006, 01:40 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Set the CausesValidation property to FALSE for the signup button.

Jim

 
Old March 13th, 2006, 01:32 AM
Authorized User
 
Join Date: Jan 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hunzian78@yahoo.com
Default

Thank you very much JIM:) for your reply, that really woked fine, but i got stucked again..

when i click signup button from login.aspx page (as start page), which was configured in web.config as
loginUrl = "login.aspx", went successfully to destination page i.e signup.aspx file. Know i want to go to
default.aspx page when i click the signup button from signup.aspx page
file. I tried using Server.Transfer("default.aspx")
but not successful coz it went to login page, instead of default.aspx page.

I am sure you will have a solution

Abdul Ghaffar


 
Old March 14th, 2006, 12:04 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Sorry, I am not following your problem and what you want to do.

 
Old March 14th, 2006, 02:19 AM
Authorized User
 
Join Date: Jan 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hunzian78@yahoo.com
Default


Hi...JIM

I got three pages
login.aspx, signup.aspx, default.aspx

login.aspx is my start up page. That is configured in web.config as
<authentication mode="Forms">
        <forms name="HunzianDemo" path="/" loginUrl="login.aspx"
         protection="All" timeout="60" />
</authentication>
from this page i am able to go to signup.aspx page by clicking the signup button(Server.Transfer("signup.aspx"))


Now from signup.aspx page I want to go to default.aspx page by clicking a button, I tried using Server.Transfer("default.aspx") but was not successful because the above method transfered control to login.aspx.

I hope you got the point know...
I am using MS Visual Studio .net 2003


Abdul Ghaffar

 
Old March 14th, 2006, 10:53 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Look into these 2 methods:
FormsAuthentication.SetAuthCookie() ... OR ...
RedirectFromLoginPage()






Similar Threads
Thread Thread Starter Forum Replies Last Post
how to implement tabs like yahoo mail gabrieldcr2 ASP.NET 2.0 Professional 0 October 4th, 2008 08:53 AM
Form To Mail fawahb Beginning PHP 1 July 23rd, 2007 03:33 PM
Can we connect yahoo,msn mail accounts using TCP? suryasimha ASP.NET 2.0 Professional 1 September 22nd, 2006 11:35 AM
Can we connect yahoo,msn mail accounts using TCP? suryasimha ASP.NET 1.0 and 1.1 Professional 3 September 22nd, 2006 09:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.