473,796 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1967
"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:CF******** *************** ***********@mic rosoft.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/cpconTheCookieA uthenticationPr ovider.asp)
--
John Saunders
johnwsaundersii i at hotmail
Nov 18 '05 #2
<a href="http://yourdomain.com/loginpage.aspx? Redirect=someot herpage.aspx">

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

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:CF******** *************** ***********@mic rosoft.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.Redire ct("denied.htm" )
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
<a href="http://yourdomain.com/loginpage.aspx? Redirect=someot herpage.aspx">

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

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:CF******** *************** ***********@mic rosoft.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.Redire ct(Request.Quer yString("Redire ct"))

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

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:06******** *************** ***********@mic rosoft.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.Redire ct("denied.htm" )
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
<a href="http://yourdomain.com/loginpage.aspx? Redirect=someot herpage.aspx">
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:CF******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:CF******** *************** ***********@mic rosoft.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,NavigateU rl.
<asp:HyperLin k id="HyperLink15 " style="Z-INDEX: 119; LEFT: 536px; POSITION: absolute; TOP: 48px"runat="ser ver" NavigateUrl="lo gin.aspx? Redirect=view_c ode.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?%20R edirect=view_co de.aspx
But in login.aspx I am getting empty for the temstr below.
Dim temstr As String = Request.QuerySt ring("Redirect" )
Also
Response.Redire ct(Request.Quer yString("Redire ct"))
creates a runtime error-empty URL
Thanks.
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
Response.Redire ct(Request.Quer yString("Redire ct"))

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

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:06******** *************** ***********@mic rosoft.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.Redire ct("denied.htm" )
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
<a href="http://yourdomain.com/loginpage.aspx? Redirect=someot herpage.aspx">
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:CF******** *************** ***********@mic rosoft.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.Redire ct(Request.Quer yString("Redire ct"))

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

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:06******** *************** ***********@mic rosoft.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.Redire ct("denied.htm" )
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
<a href="http://yourdomain.com/loginpage.aspx? Redirect=someot herpage.aspx">
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:CF******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:CF******** *************** ***********@mic rosoft.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.ne t"
Google: 'execute method"+"asp.ne t"

--
<%= 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**@discussio ns.microsoft.co m> wrote in message
news:BC******** *************** ***********@mic rosoft.com...
Hi Kevin, got it working, can ignore the prev reply. Thanks for the help.
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
Response.Redire ct(Request.Quer yString("Redire ct"))

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

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:06******** *************** ***********@mic rosoft.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.Redire ct("denied.htm" )
--
Paul G
Software engineer.
"Kevin Spencer" wrote:

> <a

href="http://yourdomain.com/loginpage.aspx? Redirect=someot herpage.aspx">
>
> --
> HTH,
> Kevin Spencer
> ..Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
> news:CF******** *************** ***********@mic rosoft.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
6864
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 (i.e. in the same window as page B is currently in, and I want to pass information from B to C. Currently I have it that B passes the information back to A before loading C, and C then picks it up from A.
7
2361
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 WinForms interface and then need to port that to a web app. I am kinda stuck on a design issue and need some suggestions / direction. Basically I have a business layer that I want to use to process any dataentry logic (row focus changes, data...
2
2009
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 no problem using a repeater but how do I pass <%#container.DataItem("Value1")%> to another page. Thx.
2
2513
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: <form id="Form1" method="post" runat="server"> <Subway:Address id="address" runat="server" Caption="Home Address"></Subway:Address> <p></p> <SUBWAY:PEOPLEINFO id="Peopleinfo" runat="server" Caption="Employee Information"></SUBWAY:PEOPLEINFO>
2
1661
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 find information on passing information from one PHP page to another. I know how to read the $_ENV with CGI to pass the information but am trying to learn PHP over CGI. Is there a way to read the URL information for something like this example...
16
2540
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 uses IE to talk with a server. The user on the client (IE) sees an ASP net page containing a TextBox. He can write some text in this text box and push a submit button.
16
16694
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. Bascially the reset works fine if I use it before using the submit button in the form. For instance,if on submit there is some error as the values have not passed a validation. There is a error pop up message shown and the values are retained in...
1
3616
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 and reused them for other domains asp 1: Basically I have a signoff asp script... that asks a. name b. email address (then submit).. this data is written to a sub folder's text file with the same name signoff.txt if the signoff.asp is...
0
9529
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10457
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10013
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9054
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2927
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.