On my master page i have build 5 link buttons. First Page I receive ID
and set the ID in master page Property so i can do the work with it.
How ever when i clicked to second button i lose this ID.
How would i keep this ID thru these 5 pages. so i wont lose this ID..
Master.page
link1 link2 link3,
public string AppID
{
get { return Label1.Text; }
set { Label1.Text = value;}
}
page1.aspx
Response.write( Master.AppID); // I have the ID to work with it..
MyFunc(Master.A ppID);
page2.aspx
When i click on link2 on master page, i come page2 and i dont have
this
Master.AppID
even though i have
<%@ MasterType virtualpath="~/MyMaster.master " %referance on aspx
page...
How can i carry out this ID thru all the link click.. 6 4180
You should store the ID in session.
Me.Session.Add( ), etc.
If this is unacceptable for some reason and you never leave the page then
you can look at using ViewState.
Me.ViewState.Ad d(), etc.
Let me know if this helps.
--
~~~~~~~~~~~
Ben Rush http://www.ben-rush.net/blog
"Matt" <me*******@Hotm ail.comwrote in message
news:11******** **************@ q75g2000hsh.goo glegroups.com.. .
On my master page i have build 5 link buttons. First Page I receive ID
and set the ID in master page Property so i can do the work with it.
How ever when i clicked to second button i lose this ID.
How would i keep this ID thru these 5 pages. so i wont lose this ID..
Master.page
link1 link2 link3,
public string AppID
{
get { return Label1.Text; }
set { Label1.Text = value;}
}
page1.aspx
Response.write( Master.AppID); // I have the ID to work with it..
MyFunc(Master.A ppID);
page2.aspx
When i click on link2 on master page, i come page2 and i dont have
this
Master.AppID
even though i have
<%@ MasterType virtualpath="~/MyMaster.master " %referance on aspx
page...
How can i carry out this ID thru all the link click..
They might move the application on farm later so i did not wanted deal
with session or cookies.
Though i will try view state.. Thanks for that.
I am confuse that i cant receive the master page property on second
page / link
Master.AppID is getting me the value though i have it available on
intellisense
Would there be a better design or solution for this..
Create 5 link/job page. Do the jobs on those pages for that ID..
On Apr 7, 2:44 am, "Matt" <meteha...@Hotm ail.comwrote:
They might move the application on farm later so i did not wanted deal
with session or cookies.
Though i will try view state.. Thanks for that.
I am confuse that i cant receive the master page property on second
page / link
Master.AppID is getting me the value though i have it available on
intellisense
Would there be a better design or solution for this..
Create 5 link/job page. Do the jobs on those pages for that ID..
Since this is second link second page, I dont have the ViewState
information on second page
view state is no good
Okay, well, I can only assume I'm following what's going on/what you're
trying to do.
Remember that pages are rebuilt each time by the ASP.Net runtime you make a
page request - that means that if you go to another page, even if it uses
the "same" master page, it's really a completely seperate instance of that
master page class - so you're really doing no good by setting property
values on that class because the second time everything will have been
recreated for you by scratch.
I haven't done much server farm development so someone else might offer a
better solution, but maybe store something in your query string?
Again, I'm not totally following every inch of what your'e trying to do. I'm
not as good when the code isn't right in front of me....
--
~~~~~~~~~~~
Ben Rush http://www.ben-rush.net/blog
"Matt" <me*******@Hotm ail.comwrote in message
news:11******** **************@ q75g2000hsh.goo glegroups.com.. .
On Apr 7, 2:44 am, "Matt" <meteha...@Hotm ail.comwrote:
>They might move the application on farm later so i did not wanted deal with session or cookies. Though i will try view state.. Thanks for that. I am confuse that i cant receive the master page property on second page / link Master.AppID is getting me the value though i have it available on intellisense
Would there be a better design or solution for this.. Create 5 link/job page. Do the jobs on those pages for that ID..
Since this is second link second page, I dont have the ViewState
information on second page
view state is no good
On Apr 7, 3:02 am, "Ben Rush" <kwen...@yahoo. comwrote:
Okay, well, I can only assume I'm following what's going on/what you're
trying to do.
Remember that pages are rebuilt each time by the ASP.Net runtime you make apagerequest - that means that if you go to anotherpage, even if it uses
the "same"masterpag e, it's really a completely seperate instance of thatmasterpagec lass - so you're really doing no good by setting property
values on that class because the second time everything will have been
recreated for you by scratch.
I haven't done much server farm development so someone else might offer a
better solution, but maybe store something in your query string?
Again, I'm not totally following every inch of what your'e trying to do. I'm
not as good when the code isn't right in front of me....
--
~~~~~~~~~~~
Ben Rushhttp://www.ben-rush.net/blog
"Matt" <meteha...@Hotm ail.comwrote in message
news:11******** **************@ q75g2000hsh.goo glegroups.com.. .
On Apr 7, 2:44 am, "Matt" <meteha...@Hotm ail.comwrote:
They might move the application on farm later so i did not wanted deal
with session or cookies.
Though i will try view state.. Thanks for that.
I am confuse that i cant receive themasterpagepr operty on second page/link Master.AppID is getting me the value though i have it available on
intellisense
Would there be a better design or solution for this..
Create 5link/jobpage. Do the jobs on those pages for that ID..
Since this is secondlink secondpage, I dont have the ViewState
information on secondpage
view state is no good- Hide quoted text -
- Show quoted text -
Appricate the help. I try to keep it in xml and carry it over the
request. Since i have been asked to hide the query sting..
// Submit this search term to google...
profile overview site:msdn2.micr osoft.com
--
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee. com
URL http://clintongallagher.metromilwaukee.com/
"Matt" <me*******@Hotm ail.comwrote in message
news:11******** *************@y 80g2000hsf.goog legroups.com...
On Apr 7, 3:02 am, "Ben Rush" <kwen...@yahoo. comwrote:
>Okay, well, I can only assume I'm following what's going on/what you're trying to do.
Remember that pages are rebuilt each time by the ASP.Net runtime you make apagerequest - that means that if you go to anotherpage, even if it uses the "same"masterpag e, it's really a completely seperate instance of thatmasterpage class - so you're really doing no good by setting property values on that class because the second time everything will have been recreated for you by scratch.
I haven't done much server farm development so someone else might offer a better solution, but maybe store something in your query string?
Again, I'm not totally following every inch of what your'e trying to do. I'm not as good when the code isn't right in front of me....
-- ~~~~~~~~~~~ Ben Rushhttp://www.ben-rush.net/blog
"Matt" <meteha...@Hotm ail.comwrote in message
news:11******* *************** @q75g2000hsh.go oglegroups.com. ..
On Apr 7, 2:44 am, "Matt" <meteha...@Hotm ail.comwrote: They might move the application on farm later so i did not wanted deal with session or cookies. Though i will try view state.. Thanks for that. I am confuse that i cant receive themasterpagepr operty on second page/link Master.AppI D is getting me the value though i have it available on intellisense
>Would there be a better design or solution for this.. Create 5link/jobpage. Do the jobs on those pages for that ID..
Since this is secondlink secondpage, I dont have the ViewState
information on secondpage
view state is no good- Hide quoted text -
- Show quoted text -
Appricate the help. I try to keep it in xml and carry it over the
request. Since i have been asked to hide the query sting.. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: rachel |
last post by:
Hi all,
I am new in ASP.Net. I have a question on link multiple web forms together.
Here is the scenario:
I create an Index.aspx WebForm which consists of a banner and three navigator buttons as well as a body to load the content. It is exactly like a normal HTML page where there are banner, menu bar, and body to load content. In my case, there are three .aspx WebForms which I have to link them together in the Index.aspx page. So that...
|
by: Andreas Prilop |
last post by:
What exactly are Chapters and Sections in the <LINK REL=...>
tag? I have put some <LINK REL="Chapter"> tags into
http://www.unics.uni-hannover.de/nhtcapri/bidirectional-text.html
Is this the intended use? If not - how are Chapters and Sections
supposed to be used? Are there any good examples?
|
by: Miguel Dias Moura |
last post by:
Hello,
I created a datalist in an ASP.Net / VB page.
I display the image and price of a few products.
When a user clicks an image I want to load the page
"detail.aspx?number=id" and send the value of the "id" field of that
record as a URL parameter.
Can someone tell me how to do this.
|
by: Sisnaz |
last post by:
I'm working with 2005 Beta 2 and I'm sure this is a trivial question but for
the life of me I can't figure out.
I placed a menu navigation componet on my master page and defined the
navigation url for each menu item. I then created a new page and selected my
master page.
The menu control has a booled "Selected" property. As long as I don't set a
navigation url, the menu item selected is set to true and highlighted. If I
specify a...
|
by: Bart |
last post by:
Hi,
I have a menu on my master page.
When I click on a menu item the state is reset after the page is redirected
to the NavigateURL.
How can fix this?
Thanks
Bart
| |
by: tfsmag |
last post by:
Has anyone had a problem with putting a menu control into a master page
in .net 2.0? I have a problem where if i just drop a menu control on a
regular page the menu works fine, the submenus work perfect. But if I
put that exact same code inside a master page, when i go to view one of
the files that use that master page, all of the submenus are out of
wack and instead of being hidden, they are at the bottom of the menu,
and only go back in...
|
by: Ben Fidge |
last post by:
Hi
I've just created a new Master Page for my site and it uses the native Menu
control. Strange behaviour is happening on page that use the master page.
For some reason, the menu controls rendering is totally out. Instead of nice
"fly-out" menu's, the menus are all dumped underneath the static level menu
items when the page first loads. Hovering the mouse over one of the static
items re-renders the menu as it should look, but then the...
|
by: Bon |
last post by:
Dear all
I create a master page with image buttons on the left-hand side for
navigation. When a user clicks the student button, the content (i.e.
ContentPlaceholder) in masterpage will be changed from default.aspx to
students.aspx.
I tried to create a subroutine in MasterPage.master.vb to do it. The
code is as following. But, the default.aspx's content is shown in
MasterPage even I clicked the student button.
|
by: Keith G Hicks |
last post by:
I'm confused about how to code a link button to go to the page I need
(asp.net 2.0)
My root is "Website1"
Here's the layout for the purposes of this question:
Website1 (folder)
masterpage.master (in the root)
|
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: 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: 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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| | |