Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 5th, 2009, 01:36 PM
Registered User
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Master Page PostbacURL property

Ive made a page application.aspx which inherits trader.master... Now in the trader.master masterpage file Ive added a menu control which compulsarily needs a form to run... Now I cannot add a form in application.aspx as it gives me an error

Page can have only one server-side form element.

So im stuck with using the form on the master page... but when I use the postbackURL="~/applicaationprint.aspx"... I suppose it should postback the data to applicationprint.aspx

now in my applicationprint code behind file:

Code:
        string appno = Request.Form["ApplicationNummberTextBox"].ToString();
        ResultApplicationNumber.Text = appno;
Gives me a

System.NullReferenceException

all the time.. It does not pass variables at all....

It works fine if I remove the masterpage.

Please Help
 
Old February 6th, 2009, 06:29 AM
Authorized User
 
Join Date: Jan 2009
Posts: 43
Thanks: 0
Thanked 2 Times in 2 Posts
Default from dinesh

hi,
remove the form in ur menu and add the properties like action,method,etc in the menu form to the form in master page. It will work...





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in using styleshhet in master page CodeBest ASP.NET 2.0 Basics 3 February 7th, 2009 06:26 AM
Problem loading graphics with master page fh84 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 January 18th, 2009 10:52 AM
Master Page and Content Page with Java script Harjinder ASP.NET 2.0 Professional 1 February 1st, 2008 10:31 AM
problem with master page rendering in ch02 MM BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 December 5th, 2006 08:22 PM
Session Not available Problem in Master Page cbe_seenu ASP.NET 2.0 Professional 0 July 31st, 2006 08:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.