473,404 Members | 2,174 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,404 software developers and data experts.

Cross page posting with Master page

I am not able to reference values by using cross page postings when using
master page.

Currently I am runing on beta 2 of CLR.

Any ideas...

Thanks

Atul
Nov 19 '05 #1
10 4886
What problem are you having?

-Brock
DevelopMentor
http://staff.develop.com/ballen
I am not able to reference values by using cross page postings when
using master page.

Currently I am runing on beta 2 of CLR.

Any ideas...

Thanks

Atul


Nov 19 '05 #2
Many thanks Brock for responding back, I am actually stuck.

K my problem is that I am using cross page posting from one page to another.
It seems to work fine if I do not use Master page but the moment I use master
page the code reference does not work on the second page.

TextBox textbox1;
textbox1= (TextBox)PreviousPage.FindControl("TextBox1");

on the second page textbox1 shows null with master page.

I do have form tag in master page so I am thinking whether that is the
problem or what is the work around.

Thanks in advance.

Atul


"Brock Allen" wrote:
What problem are you having?

-Brock
DevelopMentor
http://staff.develop.com/ballen
I am not able to reference values by using cross page postings when
using master page.

Currently I am runing on beta 2 of CLR.

Any ideas...

Thanks

Atul


Nov 19 '05 #3
What problem are you having?

-Brock
DevelopMentor
http://staff.develop.com/ballen
I am not able to reference values by using cross page postings when
using master page.

Currently I am runing on beta 2 of CLR.

Any ideas...

Thanks

Atul


Nov 19 '05 #4
Many thanks Brock for responding back, I am actually stuck.

K my problem is that I am using cross page posting from one page to another.
It seems to work fine if I do not use Master page but the moment I use master
page the code reference does not work on the second page.

TextBox textbox1;
textbox1= (TextBox)PreviousPage.FindControl("TextBox1");

on the second page textbox1 shows null with master page.

I do have form tag in master page so I am thinking whether that is the
problem or what is the work around.

Thanks in advance.

Atul


"Brock Allen" wrote:
What problem are you having?

-Brock
DevelopMentor
http://staff.develop.com/ballen
I am not able to reference values by using cross page postings when
using master page.

Currently I am runing on beta 2 of CLR.

Any ideas...

Thanks

Atul


Nov 19 '05 #5
I'd suggest not using FindControl and use the strongly typed PreviousPage.
I posted about this a while back:

http://staff.develop.com/ballen/blog...c-d3b8b4f29eaf

-Brock
DevelopMentor
http://staff.develop.com/ballen
Many thanks Brock for responding back, I am actually stuck.

K my problem is that I am using cross page posting from one page to
another. It seems to work fine if I do not use Master page but the
moment I use master page the code reference does not work on the
second page.

TextBox textbox1;
textbox1= (TextBox)PreviousPage.FindControl("TextBox1");
on the second page textbox1 shows null with master page.

I do have form tag in master page so I am thinking whether that is the
problem or what is the work around.

Thanks in advance.

Atul

"Brock Allen" wrote:
What problem are you having?

-Brock
DevelopMentor
http://staff.develop.com/ballen
I am not able to reference values by using cross page postings when
using master page.

Currently I am runing on beta 2 of CLR.

Any ideas...

Thanks

Atul


Nov 19 '05 #6
I'd suggest not using FindControl and use the strongly typed PreviousPage.
I posted about this a while back:

http://staff.develop.com/ballen/blog...c-d3b8b4f29eaf

-Brock
DevelopMentor
http://staff.develop.com/ballen
Many thanks Brock for responding back, I am actually stuck.

K my problem is that I am using cross page posting from one page to
another. It seems to work fine if I do not use Master page but the
moment I use master page the code reference does not work on the
second page.

TextBox textbox1;
textbox1= (TextBox)PreviousPage.FindControl("TextBox1");
on the second page textbox1 shows null with master page.

I do have form tag in master page so I am thinking whether that is the
problem or what is the work around.

Thanks in advance.

Atul

"Brock Allen" wrote:
What problem are you having?

-Brock
DevelopMentor
http://staff.develop.com/ballen
I am not able to reference values by using cross page postings when
using master page.

Currently I am runing on beta 2 of CLR.

Any ideas...

Thanks

Atul


Nov 19 '05 #7
You should be able to get the value with code like this:

MyString = Request.Forms("TextBox1").ToString()

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Atul Bahl" <At******@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
Many thanks Brock for responding back, I am actually stuck.

K my problem is that I am using cross page posting from one page to
another.
It seems to work fine if I do not use Master page but the moment I use
master
page the code reference does not work on the second page.

TextBox textbox1;
textbox1= (TextBox)PreviousPage.FindControl("TextBox1");

on the second page textbox1 shows null with master page.

I do have form tag in master page so I am thinking whether that is the
problem or what is the work around.

Thanks in advance.

Atul


"Brock Allen" wrote:
What problem are you having?

-Brock
DevelopMentor
http://staff.develop.com/ballen
> I am not able to reference values by using cross page postings when
> using master page.
>
> Currently I am runing on beta 2 of CLR.
>
> Any ideas...
>
> Thanks
>
> Atul
>


Nov 19 '05 #8
You should be able to get the value with code like this:

MyString = Request.Forms("TextBox1").ToString()

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Atul Bahl" <At******@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
Many thanks Brock for responding back, I am actually stuck.

K my problem is that I am using cross page posting from one page to
another.
It seems to work fine if I do not use Master page but the moment I use
master
page the code reference does not work on the second page.

TextBox textbox1;
textbox1= (TextBox)PreviousPage.FindControl("TextBox1");

on the second page textbox1 shows null with master page.

I do have form tag in master page so I am thinking whether that is the
problem or what is the work around.

Thanks in advance.

Atul


"Brock Allen" wrote:
What problem are you having?

-Brock
DevelopMentor
http://staff.develop.com/ballen
> I am not able to reference values by using cross page postings when
> using master page.
>
> Currently I am runing on beta 2 of CLR.
>
> Any ideas...
>
> Thanks
>
> Atul
>


Nov 19 '05 #9
Ah, posts like this always bring a smile to my face.

All I can see is a bright future full of consulting work to clean up
after this new crop of web developers who don't even realize that they
are submitting forms from HTML pages. Yessir, we're set for life,
fellas!

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #10
Ah, posts like this always bring a smile to my face.

All I can see is a bright future full of consulting work to clean up
after this new crop of web developers who don't even realize that they
are submitting forms from HTML pages. Yessir, we're set for life,
fellas!

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #11

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

Similar topics

7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
0
by: Atul Bahl | last post by:
I am not able to reference values by using cross page postings when using master page. Currently I am runing on beta 2 of CLR. Any ideas... Thanks Atul
4
by: Alan Silver | last post by:
Hello, I would like to add a search text box to the master page, so that it appears on every page of the site. I then want the button next to the search box to do a cross page post to the search...
1
by: Jason | last post by:
I have page1.aspx that a user enters data in some form fields. Page1.aspx's form fields are placed within a Content Place Holder on the page and the page is using a Master Page. Page1.aspx posts to...
0
by: steve.craver | last post by:
I am working with a multi-field search form which, when the form is submitted, queries a database and returns the results into a paginated GridView object. The site is being developed with master...
2
by: Vu Truong | last post by:
Hello, I try to use PostBackUrl to cross post between 2 pages on difference application. At the first time, I press the button on source page. Check on target page, I see Request.Form is...
2
by: deshg | last post by:
Hey everyone, I am a php programmer originally and am just helping a friend of mine update their website that they paid a designer (well that's what he called himself!) to do ages ago. I have...
6
by: =?Utf-8?B?SmF5IFBvbmR5?= | last post by:
I am trying to access a Public property on a Master Page from a Base Page. On the content pages I have the MasterType Directive set up as follows: <%@ MasterType virtualpath="~/Master.master" %>...
8
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I the page knows there was a cross post back. but i can not find the control. (asp.net 3.5) calling page has a master calling control: <asp:Button ID="btnSendAlert" runat="server" Text="Go"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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,...
0
jinu1996
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...
0
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...
0
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,...
0
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...

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.