473,382 Members | 1,302 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,382 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 4885
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"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.