CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 4/22/2007 9:31:58 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 63 Favorited: 0 Favorite
4 Items, 1 Pages 1 |< << Go >> >|
ChoKamir
Asp.Net User
PreviousPage of MasterPage alway null4/22/2007 9:31:58 AM

0/0

Hello,

 

I want to access the PreviousPage property of a page in a masterpage, but even if it is a cross-page postback the value in the masterpage is always null, while in the inheriting page it is set correctly. Am i doing something wrong? Or is there a work around?

 

Thanks,

Jelmer Hoogendoorn

vivek_iit
Asp.Net User
Re: PreviousPage of MasterPage alway null4/22/2007 2:55:06 PM

0/0

Hi Jelmer,

Are you setting the PreviousPage directive correctly in the destination page like:

<%@ PreviousPageType VirtualPath="~/FirstPage.aspx"  %>

Let me know if this does not work for you.

Hope this helps,

Vivek

 


MVP, ASP.NET || My Website || Blog || Articles

Please mark the most helpful reply/replies as "Answer".
ChoKamir
Asp.Net User
Re: PreviousPage of MasterPage alway null4/22/2007 8:10:17 PM

0/0

I don't think the PreviousPageType directive is the solution. To answer your question, i don't set it because i don't know what the previous page will be. And as far as I understood is the previouspagetype directive only used to make the PreviousPage property of Page typed instead.

 

Thanks for helping anyway,

Jelmer Hoogendoorn

Zhao Ji Ma - MS
Asp.Net User
Re: PreviousPage of MasterPage alway null4/25/2007 8:22:42 AM

0/0

Hi Jelmer,

Based on my understanding, the PreviousPage is set only when the postback page is in the same web application. And please do check if the property is null before proceeding. Hope it helps.

  if (PreviousPage != null &&

      PreviousPage.IsCrossPagePostBack &&

      PreviousPage.IsValid)

 


Zhao Ji Ma
Sincerely,
Microsoft Online Community Support

?Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
ASP.NET 2.0 PreviousPage + child page with Master page + always null PreviousPage + child page with Master page + always null. prat Rani posted at 19 -Aug-08 01:04. Hi All,. I am using asp.net 2.0 with c#. ...
PreviousPage of MasterPage alway null - ASP.NET Forums
PreviousPage always null - ASP.NET Forums I have a problem using MasterPage. I always return a "PreviousPage" null. This is the code:. In the PreviousPage, I have the following: ...
Why?! My website has a masterpage and 2 pages (Start.aspx and Button.aspx) ... PreviousPage is always null . Also strange thing for me is that ...
Why?! - bytes Jul 31, 2006 ... My website has a masterpage and 2 pages (Start.aspx and Button.aspx) connected with this masterpage. ... PreviousPage is always null :|. ...
Cross page posting with Master page - bytes Nov 19, 2005 ... TextBox textbox1; textbox1= (TextBox)PreviousPage.FindControl("TextBox1"); on the second page textbox1 shows null with master page. ...
Cross-Page Posting and MasterPage(s) - MSDN Forums PreviousPage.FindControl works fine if the above mentioned pages are not using a ... my controls on the CrossPost2.aspx page always return empty(null). ...
ASP.NET 2.0 MasterPages and FindControl() - Rick Strahl's Web Log PreviousPage к MasterPage by ASP.NET | Обсуждения @ GotDotNet.ru February 14, ... So the fact that I am always getting 0ms results really means that it is ...
Visual Studio Magazine Online | Practical ASP.NET: Using ... May 16, 2008 ... The page uses a master page too. No matter what I try I always end up with a null return value from FindControl. Can you explain how to find ...
K. Scott Allen : Adapter Patterns and Cross Page Post Backs PreviousPage; SearchControl sc = (SearchControl)poster.FindControl(" SearchControl1"); sc is always null and whatever NamingContainer I use doesn't work ...




Search This Site:










how to use msde 2000 to install notnetnuke 3.0.8

can't log out?

dotnetnuke.com modules displaying duplicated content

unable to build the solution

3.0.11 javascript error "scrolltop' is null or not an object.

server 2003 - <add assembly="*"/> errors, not indexing service

php nuke to dotnetnuke

getting started with dnn ... can i use mysql

problems with sql server

forum

dnn 2.0 question

dnn 2.1.2 updating problem

help with the dnn forums

arrrrghhh what do i need to do to be able to get the host tabs?

where can i download the user defined table pa please?

login problems...

upgraded but content is gone

anouncements updating calendar

odd faq module behavior

failure to log in as administrator

question about dnn skin

dotnetnuke 3.0 for a large organisation

unique domain names to child portals?

help! site upgrade ver2 to ver3 needs emergency attention!

help needed, problems uploading a skin. (urgent need)

ie displays "operation aborted" error while browsing site in dnn 3.0.10

attempted trademarking of "dotnetnuke" and "dnn"

bandwidth restrictions per portal (on a dedicated server) ?

asp.net timeout issue

dotnetnuke.com user login problem

  Privacy | Contact Us
All Times Are GMT