I have a website that allows the user to generate a new quote. When
they are finished creating the quote, it brings them to the final page
(called the Goodbye.aspx page) which just states the quote has been
submitted and an email will arrive to them shortly.
I added a "Home" link button on this page which will return them to
the website's home page. I want to clear out 10 session variables
(contact name, ship to address, city, state, zip, etc.) when they
click the Home button so it's ready for a new quote, however the
LinkButton_clic k event is never fired. How do I clear the session
variables from this Goodbye page? 6 16843
On Jun 11, 10:35 pm, Mel <MLights...@gma il.comwrote:
I have a website that allows the user to generate a new quote. When
they are finished creating the quote, it brings them to the final page
(called the Goodbye.aspx page) which just states the quote has been
submitted and an email will arrive to them shortly.
I added a "Home" link button on this page which will return them to
the website's home page. I want to clear out 10 session variables
(contact name, ship to address, city, state, zip, etc.) when they
click the Home button so it's ready for a new quote, however the
LinkButton_clic k event is never fired. How do I clear the session
variables from this Goodbye page?
How does your button look like?
Should be similar to this
<asp:LinkButt on ID="..." Text="Home" runat="server"
OnClick="LinkBu tton_click"></asp:LinkButton>
and the event
protected void LinkButton_clic k(object sender, EventArgs e)
{
....
}
to ensure that it's working, add a debug info
Response.Write( "Hello...") ;
On Jun 11, 4:15 pm, Alexey Smirnov <alexey.smir... @gmail.comwrote :
On Jun 11, 10:35 pm, Mel <MLights...@gma il.comwrote:
I have a website that allows the user to generate a new quote. When
they are finished creating the quote, it brings them to the final page
(called the Goodbye.aspx page) which just states the quote has been
submitted and an email will arrive to them shortly.
I added a "Home" link button on this page which will return them to
the website's home page. I want to clear out 10 session variables
(contact name, ship to address, city, state, zip, etc.) when they
click the Home button so it's ready for a new quote, however the
LinkButton_clic k event is never fired. How do I clear the session
variables from this Goodbye page?
How does your button look like?
Should be similar to this
<asp:LinkButt on ID="..." Text="Home" runat="server"
OnClick="LinkBu tton_click"></asp:LinkButton>
and the event
protected void LinkButton_clic k(object sender, EventArgs e)
{
...
}
to ensure that it's working, add a debug info
Response.Write( "Hello...") ;
It currently looks like this. I posted the click event code too (but
it's not firing). Did I mention that I am a new user? So I hope it's
something easy.
'file: BMQQuoteGoodBye .aspx
<asp:LinkButt on ID="lbutHome" runat="server" PostBackUrl="~/
FSMPTechHome.as px"
Style="z-index: 104; left: 36px; position: absolute; top:
95px">Home</asp:LinkButton>
'file: BMQQuoteGoodBye .aspx.vb
Protected Sub lbutHome_Click( ByVal sender As Object, ByVal e As
System.EventArg s) Handles lbutHome.Click
Session("OrdNum ") = Nothing
Session("ProjNa me") = Nothing
Session("ShipAd dr1") = Nothing
Session("ShipAd dr2") = Nothing
Session("ShipCi ty") = Nothing
Session("ShipSt ") = Nothing
Session("Custom er") = Nothing
Session("CusCon tact") = Nothing
Session("CusPho ne") = Nothing
Session("ShipZi p") = Nothing
Session("PriceA dj") = Nothing
End Sub
On Jun 11, 11:24 pm, Mel <MLights...@gma il.comwrote:
On Jun 11, 4:15 pm, Alexey Smirnov <alexey.smir... @gmail.comwrote :
On Jun 11, 10:35 pm, Mel <MLights...@gma il.comwrote:
I have a website that allows the user to generate a new quote. When
they are finished creating the quote, it brings them to the final page
(called the Goodbye.aspx page) which just states the quote has been
submitted and an email will arrive to them shortly.
I added a "Home" link button on this page which will return them to
the website's home page. I want to clear out 10 session variables
(contact name, ship to address, city, state, zip, etc.) when they
click the Home button so it's ready for a new quote, however the
LinkButton_clic k event is never fired. How do I clear the session
variables from this Goodbye page?
How does your button look like?
Should be similar to this
<asp:LinkButt on ID="..." Text="Home" runat="server"
OnClick="LinkBu tton_click"></asp:LinkButton>
and the event
protected void LinkButton_clic k(object sender, EventArgs e)
{
...
}
to ensure that it's working, add a debug info
Response.Write( "Hello...") ;
It currently looks like this. I posted the click event code too (but
it's not firing). Did I mention that I am a new user? So I hope it's
something easy.
'file: BMQQuoteGoodBye .aspx
<asp:LinkButt on ID="lbutHome" runat="server" PostBackUrl="~/
FSMPTechHome.as px"
Style="z-index: 104; left: 36px; position: absolute; top:
95px">Home</asp:LinkButton>
'file: BMQQuoteGoodBye .aspx.vb
Protected Sub lbutHome_Click( ByVal sender As Object, ByVal e As
System.EventArg s) Handles lbutHome.Click
Session("OrdNum ") = Nothing
Session("ProjNa me") = Nothing
Session("ShipAd dr1") = Nothing
Session("ShipAd dr2") = Nothing
Session("ShipCi ty") = Nothing
Session("ShipSt ") = Nothing
Session("Custom er") = Nothing
Session("CusCon tact") = Nothing
Session("CusPho ne") = Nothing
Session("ShipZi p") = Nothing
Session("PriceA dj") = Nothing
End Sub- Hide quoted text -
- Show quoted text -
Mel,
when you set the PostBackUrl, you post the page directly to
FSMPTechHome.as px
Try to remove PostBackUrl="~/FSMPTechHome.as px" and add to the end of
lbutHome_Click( ) function the following line
Response.Redire ct("~/FSMPTechHome.as px")
Hope it helps
On Jun 11, 4:31 pm, Alexey Smirnov <alexey.smir... @gmail.comwrote :
On Jun 11, 11:24 pm, Mel <MLights...@gma il.comwrote:
On Jun 11, 4:15 pm, Alexey Smirnov <alexey.smir... @gmail.comwrote :
On Jun 11, 10:35 pm, Mel <MLights...@gma il.comwrote:
I have a website that allows the user to generate a new quote. When
they are finished creating the quote, it brings them to the final page
(called the Goodbye.aspx page) which just states the quote has been
submitted and an email will arrive to them shortly.
I added a "Home" link button on this page which will return them to
the website's home page. I want to clear out 10 session variables
(contact name, ship to address, city, state, zip, etc.) when they
click the Home button so it's ready for a new quote, however the
LinkButton_clic k event is never fired. How do I clear the session
variables from this Goodbye page?
How does your button look like?
Should be similar to this
<asp:LinkButt on ID="..." Text="Home" runat="server"
OnClick="LinkBu tton_click"></asp:LinkButton>
and the event
protected void LinkButton_clic k(object sender, EventArgs e)
{
...
}
to ensure that it's working, add a debug info
Response.Write( "Hello...") ;
It currently looks like this. I posted the click event code too (but
it's not firing). Did I mention that I am a new user? So I hope it's
something easy.
'file: BMQQuoteGoodBye .aspx
<asp:LinkButt on ID="lbutHome" runat="server" PostBackUrl="~/
FSMPTechHome.as px"
Style="z-index: 104; left: 36px; position: absolute; top:
95px">Home</asp:LinkButton>
'file: BMQQuoteGoodBye .aspx.vb
Protected Sub lbutHome_Click( ByVal sender As Object, ByVal e As
System.EventArg s) Handles lbutHome.Click
Session("OrdNum ") = Nothing
Session("ProjNa me") = Nothing
Session("ShipAd dr1") = Nothing
Session("ShipAd dr2") = Nothing
Session("ShipCi ty") = Nothing
Session("ShipSt ") = Nothing
Session("Custom er") = Nothing
Session("CusCon tact") = Nothing
Session("CusPho ne") = Nothing
Session("ShipZi p") = Nothing
Session("PriceA dj") = Nothing
End Sub- Hide quoted text -
- Show quoted text -
Mel,
when you set the PostBackUrl, you post the page directly to
FSMPTechHome.as px
Try to remove PostBackUrl="~/FSMPTechHome.as px" and add to the end of
lbutHome_Click( ) function the following line
Response.Redire ct("~/FSMPTechHome.as px")
Hope it helps- Hide quoted text -
- Show quoted text -
Okay thanks. Like this? Sorry to be a pain but I have never used
the redirect method before.
Protected Sub lbutHome_Click( ByVal sender As Object, ByVal e As
System.EventArg s) Handles lbutHome.Click
Response.Redire ct("~/FSMPTechHome.as px")
End Sub
On Jun 12, 2:30 pm, Mel <MLights...@gma il.comwrote:
On Jun 11, 4:31 pm, Alexey Smirnov <alexey.smir... @gmail.comwrote :
On Jun 11, 11:24 pm, Mel <MLights...@gma il.comwrote:
On Jun 11, 4:15 pm, Alexey Smirnov <alexey.smir... @gmail.comwrote :
On Jun 11, 10:35 pm, Mel <MLights...@gma il.comwrote:
I have a website that allows the user to generate a new quote. When
they are finished creating the quote, it brings them to the final page
(called the Goodbye.aspx page) which just states the quote has been
submitted and an email will arrive to them shortly.
I added a "Home" link button on this page which will return them to
the website's home page. I want to clear out 10 session variables
(contact name, ship to address, city, state, zip, etc.) when they
click the Home button so it's ready for a new quote, however the
LinkButton_clic k event is never fired. How do I clear the session
variables from this Goodbye page?
How does your button look like?
Should be similar to this
<asp:LinkButt on ID="..." Text="Home" runat="server"
OnClick="LinkBu tton_click"></asp:LinkButton>
and the event
protected void LinkButton_clic k(object sender, EventArgs e)
{
...
}
to ensure that it's working, add a debug info
Response.Write( "Hello...") ;
It currently looks like this. I posted the click event code too (but
it's not firing). Did I mention that I am a new user? So I hope it's
something easy.
'file: BMQQuoteGoodBye .aspx
<asp:LinkButt on ID="lbutHome" runat="server" PostBackUrl="~/
FSMPTechHome.as px"
Style="z-index: 104; left: 36px; position: absolute; top:
95px">Home</asp:LinkButton>
'file: BMQQuoteGoodBye .aspx.vb
Protected Sub lbutHome_Click( ByVal sender As Object, ByVal e As
System.EventArg s) Handles lbutHome.Click
Session("OrdNum ") = Nothing
Session("ProjNa me") = Nothing
Session("ShipAd dr1") = Nothing
Session("ShipAd dr2") = Nothing
Session("ShipCi ty") = Nothing
Session("ShipSt ") = Nothing
Session("Custom er") = Nothing
Session("CusCon tact") = Nothing
Session("CusPho ne") = Nothing
Session("ShipZi p") = Nothing
Session("PriceA dj") = Nothing
End Sub- Hide quoted text -
- Show quoted text -
Mel,
when you set the PostBackUrl, you post the page directly to
FSMPTechHome.as px
Try to remove PostBackUrl="~/FSMPTechHome.as px" and add to the end of
lbutHome_Click( ) function the following line
Response.Redire ct("~/FSMPTechHome.as px")
Hope it helps- Hide quoted text -
- Show quoted text -
Okay thanks. Like this? Sorry to be a pain but I have never used
the redirect method before.
Protected Sub lbutHome_Click( ByVal sender As Object, ByVal e As
System.EventArg s) Handles lbutHome.Click
Response.Redire ct("~/FSMPTechHome.as px")
End Sub- Hide quoted text -
Yes, it's correct:
HOW TO: Use Response.Redire ct in ASP.NET with Visual Basic .NET http://support.microsoft.com/kb/312063
On Jun 12, 7:56 am, Alexey Smirnov <alexey.smir... @gmail.comwrote :
On Jun 12, 2:30 pm, Mel <MLights...@gma il.comwrote:
On Jun 11, 4:31 pm, Alexey Smirnov <alexey.smir... @gmail.comwrote :
On Jun 11, 11:24 pm, Mel <MLights...@gma il.comwrote:
On Jun 11, 4:15 pm, Alexey Smirnov <alexey.smir... @gmail.comwrote :
On Jun 11, 10:35 pm, Mel <MLights...@gma il.comwrote:
I have a website that allows the user to generate a new quote. When
they are finished creating the quote, it brings them to the final page
(called the Goodbye.aspx page) which just states the quote has been
submitted and an email will arrive to them shortly.
I added a "Home" link button on this page which will return them to
the website's home page. I want to clear out 10 session variables
(contact name, ship to address, city, state, zip, etc.) when they
click the Home button so it's ready for a new quote, however the
LinkButton_clic k event is never fired. How do I clear the session
variables from this Goodbye page?
How does your button look like?
Should be similar to this
<asp:LinkButt on ID="..." Text="Home" runat="server"
OnClick="LinkBu tton_click"></asp:LinkButton>
and the event
protected void LinkButton_clic k(object sender, EventArgs e)
{
...
}
to ensure that it's working, add a debug info
Response.Write( "Hello...") ;
It currently looks like this. I posted the click event code too (but
it's not firing). Did I mention that I am a new user? So I hope it's
something easy.
'file: BMQQuoteGoodBye .aspx
<asp:LinkButt on ID="lbutHome" runat="server" PostBackUrl="~/
FSMPTechHome.as px"
Style="z-index: 104; left: 36px; position: absolute; top:
95px">Home</asp:LinkButton>
'file: BMQQuoteGoodBye .aspx.vb
Protected Sub lbutHome_Click( ByVal sender As Object, ByVal e As
System.EventArg s) Handles lbutHome.Click
Session("OrdNum ") = Nothing
Session("ProjNa me") = Nothing
Session("ShipAd dr1") = Nothing
Session("ShipAd dr2") = Nothing
Session("ShipCi ty") = Nothing
Session("ShipSt ") = Nothing
Session("Custom er") = Nothing
Session("CusCon tact") = Nothing
Session("CusPho ne") = Nothing
Session("ShipZi p") = Nothing
Session("PriceA dj") = Nothing
End Sub- Hide quoted text -
- Show quoted text -
Mel,
when you set the PostBackUrl, you post the page directly to
FSMPTechHome.as px
Try to remove PostBackUrl="~/FSMPTechHome.as px" and add to the end of
lbutHome_Click( ) function the following line
Response.Redire ct("~/FSMPTechHome.as px")
Hope it helps- Hide quoted text -
- Show quoted text -
Okay thanks. Like this? Sorry to be a pain but I have never used
the redirect method before.
Protected Sub lbutHome_Click( ByVal sender As Object, ByVal e As
System.EventArg s) Handles lbutHome.Click
Response.Redire ct("~/FSMPTechHome.as px")
End Sub- Hide quoted text -
Yes, it's correct:
HOW TO: Use Response.Redire ct in ASP.NET with Visual Basic .NEThttp://support.microso ft.com/kb/312063- Hide quoted text -
- Show quoted text -
Thanks for your help, it works like a charm. I posted the code below
in case someone else can benefit from it. Apparently clicking the
Home link button calls the Page_Load event where I happened to be
writing the quote record to the database so I had to enclose the
Page_Load code with an IF statement "If Not IsPostBack Then" to ensure
the database is only written once. Yep, that redirect method will be
my new "favorite" friend. Oh just imagine the possiblities!
Protected Sub lbutHome_Click( ByVal sender As Object, ByVal e As
System.EventArg s) Handles lbutHome.Click
'Clear session variables before returning to the HOME page.
Session("OrdNum ") = Nothing
Session("ProjNa me") = Nothing
Session("ShipAd dr1") = Nothing
Session("ShipAd dr2") = Nothing
Session("ShipCi ty") = Nothing
Session("ShipSt ") = Nothing
Session("Custom er") = Nothing
Session("CusCon tact") = Nothing
Session("CusPho ne") = Nothing
Session("ShipZi p") = Nothing
Session("PriceA dj") = Nothing
Response.Redire ct("~/FSMPTechHome.as px")
End Sub This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Assaf Weinberg |
last post by:
Using ASP.NET web form with VB.NET
I have a page with a calendar control that
onSelectionChanged builds a table control showing the
events scheduled for the selected calendar days. One of
the columns in this table contains linkbuttons that, when
clicked, should execute some code (currently an event
handler called showEvent) that displays details.
I am currently using addhandler to specify the handler for
|
by: Pat Sagaser via .NET 247 |
last post by:
I'm trying to add LinkButtons to a Repeater control using adynamic template. The docs state that you should be able tobubble the click event to the containing Repeater. There areplenty of examples in the documentation for doing this using an<ItemTemplate> tag, but I haven't found any indication for howyou would do this in a dynamic template (implementing theITemplate interface).
I'm adding the LInkButton in the TemplateDataBinding...
|
by: Grant |
last post by:
Below is the code I am using to build the table using
system.web.ui.webcontrols.table. I am building a collection of link buttons
inside each cell. How do I know when the user clicks on the link button
because I do not have the click event? Thanks
Dim rowItem As TableRow
|
by: Demetri |
last post by:
I have created a web control that can be rendered as either a linkbutton or a
button. It is a ConfirmButton control that allows a developer to force a user
to confirm if they intended to click it such as when they do a delete.
Everything is great. By and large it will be used in my repeater controls
using the command event when the user clicks on it and so that event is
working great.
My issue is the Click event. When the control is...
|
by: bradw2k |
last post by:
I have one frame that needs to cause a button click event on another frame.
I was trying to do this by putting a display:none LinkButton on the target
frame, and having a javascript on that page that can be called by the remote
frame, and the javascript would say btn.click() ... but that doesn't cause
the form to submit. How can I accomplish what I am after (firing the event
for the specified button when triggered from a remote frame)?
...
| |
by: Chu |
last post by:
Thanks everyone for taking a moment to read this.
I've got a page where I use a LinkButton and I wire up a dynamic event
to the button. When the user clicks the button, the event is fired as
expected. In the event code for that button, a new LinkButton is added
to the page and is wired up to yet a different event, however when
clicked, the page is posted back but the event is not triggered.
I'm assuming it has something to do with the...
|
by: Class |
last post by:
Hi all,
I create a gridview dynamicly because I don't know the columns in advance.
I use the Templatefield to create a linkbutton.
Everything fine..I have the postbackurl and it works.
But now I need to do some extra stuff in the click event of the created
linkbutton.
I tried to assign a delegate to the linkbutton's click event but I never
gets in the procedure I assign.
How can I trap the click event?
|
by: Jack |
last post by:
Hi,
I am new to .NET and need help with adding click event on LinkButton
programatically.
Please see the code below. I would like to add a click event on LinkButton
returned from "Function EditLink". This LinkButton should fire "Sub EditNav"
when clicked.
======================================
|
by: netman38 |
last post by:
Hi,
I couldnt find a solution to my problem. I created linkbutton dynamically and also add an eventhandler dynamically. However when i click the button an empty page is reloaded. My guess is, my freshly created linkbuttons dont have an eventhandler. What can i do for this problem?
My code:
protected void BransClick(object sender, EventArgs e)
{
while (reader.Read())
{
LinkButton ogretmen;
...
|
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: 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,...
| |
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...
|
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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |