473,399 Members | 3,038 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,399 software developers and data experts.

Master Pages for .NET 1.1 Question

Hi all,

I've written a simple test program using both the ASP.NET team's Master
Pages implementation for .NET 1.1 as well as Andy Smith's improved version
at the MetaBuilders web site. Each of my pages stores the information
entered on the web form into a SQL Server database. Worked fine before I
converted to the Master Pages scheme.

After the conversion, the pages still operate as expected BUT the only thing
saved to the database are NULL strings! It appears as if I cannot retrieve
the data from the form fields after PostBack - everything comes back as an
empty string.

Any ideas????? Thanks in advance!
Nov 18 '05 #1
3 888
I can't be of any immediate help but thhis is an area I have an
interest in and have been wondering what the fundamental differences
will be between what some have developed using 1.1 and what
the 2.0 offering will provide.

Have you any ideas or comments?
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"Warren J. Hairston" <wh*******@logicaloperators.com> wrote in message
news:e7*************@TK2MSFTNGP10.phx.gbl...
Hi all,

I've written a simple test program using both the ASP.NET team's Master Pages implementation for .NET 1.1 as well as Andy Smith's improved version at the MetaBuilders web site. Each of my pages stores the information
entered on the web form into a SQL Server database. Worked fine before I converted to the Master Pages scheme.

After the conversion, the pages still operate as expected BUT the only thing saved to the database are NULL strings! It appears as if I cannot retrieve the data from the form fields after PostBack - everything comes back as an empty string.

Any ideas????? Thanks in advance!

Nov 18 '05 #2
Hi,

I didn't saw such a behavior in 1.1 or in 2.0 versions but I never used
Andy Smith's improved version. If you try a page that behave as you
mention without Andy Smith's improved version I'll be happy if you
e-mail it to me : natty(at)Dao2com(dot)com.
Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
I think I may have figured out what's happening...

Some of my code references

MyValue = Request.Form["ControlName"];

on PostBack to retrieve the values. If I change this to something like

MyValue = ControlName.Text;

to retrieve the values then things seem to work. Evidentally the names of
the controls are being placed inside a new naming container under the
MasterPages for .NET 1.1 scheme, making their "real" names into something
more lengthy. By referencing them directly instead of through their assumed
naming container, the compiler can find them correctly.

Appreciate the offers for help!
"Natty Gur" <na***@dao2com.com> wrote in message
news:ei*************@TK2MSFTNGP09.phx.gbl...
Hi,

I didn't saw such a behavior in 1.1 or in 2.0 versions but I never used
Andy Smith's improved version. If you try a page that behave as you
mention without Andy Smith's improved version I'll be happy if you
e-mail it to me : natty(at)Dao2com(dot)com.
Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4

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

Similar topics

5
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
1
by: Fred Nelson | last post by:
I have a question regarding page caching in a C# Web App that I'm developing. I have used page caching successfully in VS2003 at the page level - and it also works the same in VS2005. I have...
5
by: Kevin | last post by:
We currently have a 1.1 class library which houses the look and feel of our website by creating the html form dynamically in a base class. We then distribute our assembly to other application...
3
by: Rolf Welskes | last post by:
Hello, for a large web site project we would like to use nested Master Pages. Unfortunely VS2005 is not able to show pages in design mode when nested Master pages are used. This has the...
2
by: shapper | last post by:
Hello, I have 2 pages: Page1.aspx and Page2.aspx. The two pages have common design parts but also not common design parts. Is it possible to create something like this: MasterPageA |
2
by: n# | last post by:
I have an old existing website with a Header/ Left Hand Menu and a iframe as the main body content, adjacent to the menu. So for every click on the menu item, I used to load a aspx page on the...
7
by: Dwight Johnson | last post by:
I am attempting to use Master Pages in a new website, and finding it troublesome. I also do not see a lot of entries in this group regarding them or their components, such as ContentPlaceHolders. ...
8
by: Cirene | last post by:
I have 1 master page in the root of my website that I would like to share with all pages, even those in my /admin and /client directories. But when pages in the subdir's are viewed the img, css,...
5
by: Murray | last post by:
Forgive me if this question is too basic, but I'm new to ASP.NET programming, and I can't locate a simple answer to this question. I have a web page that consists of a Master Page and a single...
6
by: Mickey | last post by:
Coming from a Dreamweaver/ASP/PHP background. Planning to use Visual Studio 2008 for a website. Complete newbie question here (please be gentle!): Do master pages work similar to Dreamweaver...
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: 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:
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...
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
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...
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,...

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.