Still new with asp, and I feel I haven't yet captured the logic of it
completely ;-P
I know how to post values to another asp-page through the use of a form
and a submit-button, combined with the post or get-method. What I don't
know is how to post those values one asp-page further through code, so
without anyone having to press any button.
The idea is that I have a login-page where the user enters credentials.
These credentials are then passed on to a second asp-page.
This second pages actually checks the credentials with values in a
database. If not valid, the user will be redirected to another
login-page with the warning the credentials were faulty. However, when
valid, I want the user to be redirected to another page, but I want
those credentials available on that page too.
The thing I do not graps yet is how to use values/variables throughout
a site, some sort of universal parameter that can be called from any
asp-page within the site. Is something like that possible within asp or
do I have to think towards a different kind of solution? ;-)
Thanks in advance!! 3 1597
Don't post ? You could use a session variable to keep track of this server
side ? See the Session object in the ASP documentation.. ..
--
Patrice
"Avlan" <ba*******@gmai l.com> a écrit dans le message de
news:11******** **************@ o13g2000cwo.goo glegroups.com.. . Still new with asp, and I feel I haven't yet captured the logic of it completely ;-P
I know how to post values to another asp-page through the use of a form and a submit-button, combined with the post or get-method. What I don't know is how to post those values one asp-page further through code, so without anyone having to press any button.
The idea is that I have a login-page where the user enters credentials. These credentials are then passed on to a second asp-page.
This second pages actually checks the credentials with values in a database. If not valid, the user will be redirected to another login-page with the warning the credentials were faulty. However, when valid, I want the user to be redirected to another page, but I want those credentials available on that page too.
The thing I do not graps yet is how to use values/variables throughout a site, some sort of universal parameter that can be called from any asp-page within the site. Is something like that possible within asp or do I have to think towards a different kind of solution? ;-)
Thanks in advance!!
Hm session variables, that was it. Did I mention I'm still a newb at
ASP-coding? ;-)
Thx This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dmcconkey |
last post by:
Hi folks,
I have a client with four websites. Each site has a contact form that
is identical. They all have "required" fields validated through a
JavaScript onSubmit() function. Upon validation, post values go to a
PHP processing page that adds values to a database and generates an
email to someone in marketing.
For three of these sites, we have no problem, but the fourth keeps
sending in blank forms.
|
by: anon |
last post by:
Post Forwarding question......
For this control below,
<asp:Button runat="server" PostTargetUrl="page2.aspx" />
The Attribute: PostTargetUrl="page2.aspx"
Is this PostTargetUrl Attribute going to be available in the <a> and Html
Controls as well as opposed to just the <asp:Button> control?
|
by: DaveFash |
last post by:
Posting variables from an HTML FORM, via
the Request.Form function on the receiving
ASP page is great.
But how can you POST a Form variable to
an ASP page -- without a human pushing a
Submit button?
An ASP page that can decide when to POST
and send the Form vaiables, but out without a
|
by: Mark |
last post by:
Hello all -
I can't seem to find what could be causing this issue so I wanted to appeal to the .NET gurus out there. When I have users input values into Page 1 and submit it, I want the ability so that the user can navigate back from Page 2 (through clicking the "Back" button) and the values they just put in (text boxes) or selected (listboxes) are retained. Right now, though, the page is completely cleaned to blank and the user ends up...
|
by: Neil |
last post by:
Hi,
I have an aspx page with a number of web controls on it and one of these is
a cancel button. I want to check the page to see if the user has changed any
of the controls, i..e typed some text in a textbox, changed a dropdown etc
The reason I want to do this is when the user clicks cancel I want to notify
them that their changes will be lost using a popup or something.
My question is what is the best way to compare the page that...
| |
by: Peter2 |
last post by:
Hi,
I have a problem posting non-ASCII characters in FORM fields between classic
ASP and ASP.NET. I use a fully patched Windows 2000 Advanced Server with .net
2.0 and visual Studio 2005 installed, IIS, IE6 etc ...
When an *.ASPX page receives the post, it drops non-ASCII characters, for
example it drops character é from word Montréal. Specifying explicit encoding
on ASP/ASPX page doesn't help. The encoding works without doing anything...
|
by: bill |
last post by:
I dynamically create buttons and associate them with an event using
AddHandler.
I want all the button events to fire at one time, when the page is posted,
instead of when each button is clicked.
How I stop the buttons from posting back when they are clicked?
Thanks
|
by: gnawz |
last post by:
Hi guys,
I have a couple of php files that perform various tasks.
I will use fields in my system and provide code as well
I need help as follows:
My database contains the fields Category and Brand
I need to make some changes on a a number of brands in a Category
|
by: Catalyst159 |
last post by:
I have a form which is used to calculate residential Floor Area Ratio (FAR). The form is structured into seven parts as follows:
Part A: Maximum FAR and Floor Area:
Part B: Gross Floor Area of the main floors of the main house:
Part C: Gross Floor Area of the basement or cellar:
Part D: Gross Floor Area of the attic:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |