473,226 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

Need to pass information into a web page.

What I am trying to do is as follows.
I have a page with 3 links,that direct the user to 3 different pages when selected after login.
So all link selections will first direct the user to a login page. Once the user logs in then they are directed to the appropriate link.
So for all 3 links they all go to a login page, but each link must pass information to the login in page, specifically the page to go to after login takes place.
--
Paul G
Software engineer.
Nov 18 '05 #1
9 1946
"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
What I am trying to do is as follows.
I have a page with 3 links,that direct the user to 3 different pages when selected after login. So all link selections will first direct the user to a login page. Once the user logs in then they are directed to the appropriate link. So for all 3 links they all go to a login page, but each link must pass

information to the login in page, specifically the page to go to after login
takes place.

I suggest that you look into Forms Authentication. See Forms Authentication
Provider
(http://msdn.microsoft.com/library/de...-us/cpguide/ht
ml/cpconTheCookieAuthenticationProvider.asp)
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2
<a href="http://yourdomain.com/loginpage.aspx?Redirect=someotherpage.aspx">

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
What I am trying to do is as follows.
I have a page with 3 links,that direct the user to 3 different pages when selected after login. So all link selections will first direct the user to a login page. Once the user logs in then they are directed to the appropriate link. So for all 3 links they all go to a login page, but each link must pass information to the login in page, specifically the page to go to after login
takes place. --
Paul G
Software engineer.

Nov 18 '05 #3
Hi Kevin, thanks for the response.
so in the login file what do I pass into the redirect statement as I normally
use it as shown below, with the redirect hardcoded in.
Response.Redirect("denied.htm")
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
<a href="http://yourdomain.com/loginpage.aspx?Redirect=someotherpage.aspx">

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
What I am trying to do is as follows.
I have a page with 3 links,that direct the user to 3 different pages when

selected after login.
So all link selections will first direct the user to a login page. Once

the user logs in then they are directed to the appropriate link.
So for all 3 links they all go to a login page, but each link must pass

information to the login in page, specifically the page to go to after login
takes place.
--
Paul G
Software engineer.


Nov 18 '05 #4
Response.Redirect(Request.QueryString("Redirect"))

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
Hi Kevin, thanks for the response.
so in the login file what do I pass into the redirect statement as I normally use it as shown below, with the redirect hardcoded in.
Response.Redirect("denied.htm")
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
<a href="http://yourdomain.com/loginpage.aspx?Redirect=someotherpage.aspx">
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
What I am trying to do is as follows.
I have a page with 3 links,that direct the user to 3 different pages
when selected after login.
So all link selections will first direct the user to a login page.
Once the user logs in then they are directed to the appropriate link.
So for all 3 links they all go to a login page, but each link must
pass information to the login in page, specifically the page to go to after login takes place.
--
Paul G
Software engineer.


Nov 18 '05 #5
Dont' reinvent the wheel. Use the built-in Forms Authentication which
already provides this kind of functionality. Here's more info:
http://www.dotnetbips.com/displayarticle.aspx?id=9
http://www.4guysfromrolla.com/webtech/121901-1.2.shtml
http://www.dotnetbips.com/displayarticle.aspx?id=117

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
What I am trying to do is as follows.
I have a page with 3 links,that direct the user to 3 different pages when selected after login. So all link selections will first direct the user to a login page. Once the user logs in then they are directed to the appropriate link. So for all 3 links they all go to a login page, but each link must pass information to the login in page, specifically the page to go to after login
takes place. --
Paul G
Software engineer.

Nov 18 '05 #6
Hi Kevin, thanks for the additional information. For some reason I am getting nothing for the QueryString from the debugger. I modified the hyperlink created by
..NET,NavigateUrl.
<asp:HyperLink id="HyperLink15" style="Z-INDEX: 119; LEFT: 536px; POSITION: absolute; TOP: 48px"runat="server" NavigateUrl="login.aspx? Redirect=view_code.aspx" Target="_new" Font Size="Smaller">Code</asp:HyperLink>
When I run the app and select the hyperlink it goes to login.aspx with
this showing on the browser-http://localhost/newdm1/login.aspx?%20Redirect=view_code.aspx
But in login.aspx I am getting empty for the temstr below.
Dim temstr As String = Request.QueryString("Redirect")
Also
Response.Redirect(Request.QueryString("Redirect"))
creates a runtime error-empty URL
Thanks.
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
Response.Redirect(Request.QueryString("Redirect"))

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
Hi Kevin, thanks for the response.
so in the login file what do I pass into the redirect statement as I

normally
use it as shown below, with the redirect hardcoded in.
Response.Redirect("denied.htm")
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
<a href="http://yourdomain.com/loginpage.aspx?Redirect=someotherpage.aspx">
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
> What I am trying to do is as follows.
> I have a page with 3 links,that direct the user to 3 different pages when selected after login.
> So all link selections will first direct the user to a login page. Once the user logs in then they are directed to the appropriate link.
> So for all 3 links they all go to a login page, but each link must pass information to the login in page, specifically the page to go to after login takes place.
> --
> Paul G
> Software engineer.


Nov 18 '05 #7
Hi Kevin, got it working, can ignore the prev reply. Thanks for the help.
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
Response.Redirect(Request.QueryString("Redirect"))

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
Hi Kevin, thanks for the response.
so in the login file what do I pass into the redirect statement as I

normally
use it as shown below, with the redirect hardcoded in.
Response.Redirect("denied.htm")
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
<a href="http://yourdomain.com/loginpage.aspx?Redirect=someotherpage.aspx">
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
> What I am trying to do is as follows.
> I have a page with 3 links,that direct the user to 3 different pages when selected after login.
> So all link selections will first direct the user to a login page. Once the user logs in then they are directed to the appropriate link.
> So for all 3 links they all go to a login page, but each link must pass information to the login in page, specifically the page to go to after login takes place.
> --
> Paul G
> Software engineer.


Nov 18 '05 #8
Ok, kind of new to .NET so not aware of all of its capability. I just got through writing a routine that does loops through rows of a database, does a string compare to match names, then retrieves a password and attempts a compare on that. I am guessing that .NET has built in functions to do this.
thanks
--
Paul G
Software engineer.
"Steve C. Orr [MVP, MCSD]" wrote:
Dont' reinvent the wheel. Use the built-in Forms Authentication which
already provides this kind of functionality. Here's more info:
http://www.dotnetbips.com/displayarticle.aspx?id=9
http://www.4guysfromrolla.com/webtech/121901-1.2.shtml
http://www.dotnetbips.com/displayarticle.aspx?id=117

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
What I am trying to do is as follows.
I have a page with 3 links,that direct the user to 3 different pages when

selected after login.
So all link selections will first direct the user to a login page. Once

the user logs in then they are directed to the appropriate link.
So for all 3 links they all go to a login page, but each link must pass

information to the login in page, specifically the page to go to after login
takes place.
--
Paul G
Software engineer.


Nov 18 '05 #9
The Request object requires two trips to the server and can and will
affect performance.

Generally speaking, since ASP 3.0 and most especially with ASP.NET
the *only* reason to use the Request object to 'redirect' is when you
are redirecting to pages on another server or redirecting to pages that
are *not* .aspx files on the same server from which your code does the
redirection (or .asp files on the same server when using ASP 3.0).

You should be properly informed and as I am taking the responsibility
to do so I am telling you to learn to use the Transfer method when
your business process requires redirection. You also want to learn
the Execute method so you can learn how to return data to the calling
page when redirecting.

Start with MSDN documentation and refine your understanding with
Google searches such as those that follow. For the most part it can be
said that while it is still supported for reasons noted, the Request object
is obsolete.

Google: "transfer method"+"asp.net"
Google: 'execute method"+"asp.net"

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/


"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
Hi Kevin, got it working, can ignore the prev reply. Thanks for the help.
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
Response.Redirect(Request.QueryString("Redirect"))

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
Hi Kevin, thanks for the response.
so in the login file what do I pass into the redirect statement as I

normally
use it as shown below, with the redirect hardcoded in.
Response.Redirect("denied.htm")
--
Paul G
Software engineer.
"Kevin Spencer" wrote:

> <a

href="http://yourdomain.com/loginpage.aspx?Redirect=someotherpage.aspx">
>
> --
> HTH,
> Kevin Spencer
> ..Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "Paul" <Pa**@discussions.microsoft.com> wrote in message
> news:CF**********************************@microsof t.com...
> > What I am trying to do is as follows.
> > I have a page with 3 links,that direct the user to 3 different pages

when
> selected after login.
> > So all link selections will first direct the user to a login page.

Once
> the user logs in then they are directed to the appropriate link.
> > So for all 3 links they all go to a login page, but each link must

pass
> information to the login in page, specifically the page to go to after

login
> takes place.
> > --
> > Paul G
> > Software engineer.
>
>
>


Nov 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Andy Fish | last post by:
Hi, I have a javascript solution where page A launches page B in a second window and then they can pass data between them. That's all well and good. Now say page B wants to navigate to page C...
7
by: Jack Addington | last post by:
I've got a fairly simple application implementation that over time is going to get a lot bigger. I'm really trying to implement it in a way that will facilitate the growth. I am first writing a...
2
by: Martin Tully | last post by:
I am trying to a create a page that will query a SQLDB get customer information and then pass this information on to another page creating almost like a mail merge letter. I can get the information...
2
by: c676228 | last post by:
Hi, This is my first time to post asp.net question on this forum. I have a question for "How to pass the first form value to the next form" I have enrollinfo.aspx form which look like as follow:...
2
by: Vagabond | last post by:
I am trying to write a PHP script for tracking information and storing it in text files. The program has gotten to the point that I now need several php pages for the program to work however I can't...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
16
by: sreemati | last post by:
Hi everyone, This is the scenario: I have two button - Submit and Reset Submit is used for validation and after validation is passed it passes it to another form to enter into database. ...
1
by: jerger | last post by:
I have not made a program or page from start yet. I have made modifications to our signoff asp pages like changing the questions, texts, shortening field lengths etc... I also have copied the files...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.