473,666 Members | 2,329 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4906
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)Previo usPage.FindCont rol("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)Previo usPage.FindCont rol("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)Previo usPage.FindCont rol("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)Previo usPage.FindCont rol("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").ToSt ring()

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Atul Bahl" <At******@discu ssions.microsof t.com> wrote in message
news:FD******** *************** ***********@mic rosoft.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)Previo usPage.FindCont rol("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").ToSt ring()

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Atul Bahl" <At******@discu ssions.microsof t.com> wrote in message
news:FD******** *************** ***********@mic rosoft.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)Previo usPage.FindCont rol("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

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

Similar topics

7
2312
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 frames, where the two lower ones are within a Frameset within the master Frameset: 1111111111111111111
0
267
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
3612
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 page, where I want to pick up the contents of the search box. Trouble is, I can't see how to get at the text box on the master page. My code follows:-
1
1899
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 Page2.aspx, which doesn't use a Master Page at all - it's just a straight forward .aspx page. Problem is I can't seem to get the form field values from page1.aspx in use on page2.aspx. I've set up the PagePostBackURL attribute on the submit...
0
1515
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 pages. So far, I have had success in building the search form, and passing the values entered by the user from the form to a results page, and displaying the entire resultset using GridView. However, when I set the AllowPaging option on the...
2
1233
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 nothing and Request.HttpMethod is GET (not POST). But if I don't close the browser, try to enter the URL of source page and press the button on source page again, I see, on target page, Request.Form is source page and Request.HttpMethod is POST. I try...
2
1827
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 built the whole site (ASP.NET using VB.NET) but am having problems on the most basic thing! I have a page which querys an MS SQL database and takes url variables to query it, so it takes the value of keyword= and perpage= (eg from...
6
9147
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" %> On the Master Page I have a public property exposed: Public Property ErrorMessage() As String Get Return txtError.InnerText End Get
8
2030
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" onclick="btnSendAlert_Click" PostBackUrl="ItemUpLoadAdmin.aspx" CommandArgument="5" />
0
8440
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, 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...
0
8355
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,...
1
8550
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,...
0
8638
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 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...
0
7381
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, 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...
0
4193
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...
1
2769
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
2
2006
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1769
bsmnconsultancy
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...

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.