473,480 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Master page + SqlDataSource = ?

ASF
I have a 2.0 framework page that has several texboxes, a gridview, and
a sqldatasource. The user enters criteria in the textboxes, clicks a
button, and the gridview displays the appropriate data. VERY simple.

Recently I started a new web site in VS 2005 and created a Master Page.
I took the search page above and converted it into a content page.
Suddenly it doesn't work properly. The gridview still displays data
according to user criteria BUT no longer accepts the date parameters (2
of the textboxes are "Min Date" and "Max Date"). It doesn't error out,
it just always uses the default value. Again, not for all the search
criteria JUST for the date textboxes.

The first thing I did was to take another completely different search
page and stuck it in as a content page. Same result. So I completely
wiped that web site completely and started from scratch. Same result.

I have option strict on.
The sqldatasource in Design view utilizes entered date criteria just
fine (it works!).
And once again, all the pages I've tried work wonderfully as long as
they're built as standalone aspx pages (e.g., non-content pages).

The master/content relationship is pretty straightforward, so what am I
missing here? Could someone point me in the right direction? Any ideas?

Sep 28 '06 #1
1 2867
ASF
Figured it out. Just for those poor folks in the future who stumble
across this...
For whatever reason, asp:formparameter's (in a sqldatasource) do not
apparently work within a content page. They must be changed to
asp:controlparameter's to function properly. I cannot explain this.
ASF wrote:
I have a 2.0 framework page that has several texboxes, a gridview, and
a sqldatasource. The user enters criteria in the textboxes, clicks a
button, and the gridview displays the appropriate data. VERY simple.

Recently I started a new web site in VS 2005 and created a Master Page.
I took the search page above and converted it into a content page.
Suddenly it doesn't work properly. The gridview still displays data
according to user criteria BUT no longer accepts the date parameters (2
of the textboxes are "Min Date" and "Max Date"). It doesn't error out,
it just always uses the default value. Again, not for all the search
criteria JUST for the date textboxes.

The first thing I did was to take another completely different search
page and stuck it in as a content page. Same result. So I completely
wiped that web site completely and started from scratch. Same result.

I have option strict on.
The sqldatasource in Design view utilizes entered date criteria just
fine (it works!).
And once again, all the pages I've tried work wonderfully as long as
they're built as standalone aspx pages (e.g., non-content pages).

The master/content relationship is pretty straightforward, so what am I
missing here? Could someone point me in the right direction? Any ideas?
Sep 28 '06 #2

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

Similar topics

1
1188
by: Johnny §õ«¶¿« \(Microsoft MVP for ASP.NET\) | last post by:
The following code is from the online tutorial but it doesn't run on my CTP build I've just installed. The first problem is, ImageField doesn't have a public DataField field. Ok, I removed this...
3
1369
by: Rick | last post by:
Using VWD, I am attempting to create a basic Master/Detail scenario from a SQL database table that has two primary keys. The Master control I'm using is a GridView, containing a list of records...
4
3215
by: Jon Paal | last post by:
need help trying to associate master/detail in ASP.net 2.0 with VWD2k5EE Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)...
6
5145
by: needin4mation | last post by:
I have a search box on my master page. The results are on a child page. To do this I changed the postbackurl to the childpage and on the childpage I have an asp:controlparameter matching the name...
0
2557
by: casper | last post by:
Hi, I use asp.net 2.0 and VWD (and sqlserver 2005 express) on windows 2000 sp4.. Starting from VWD, it works. Starting from the browser, the code below produces this error: CREATE DATABASE...
0
1688
by: Sam | last post by:
Folks, Attached I am sending 2 URL's from MSFT ASP.net Quick Start Tutorial Web Site. 1) Run it URL: http://www.asp.net/QuickStart/aspnet/samples/data/GridViewMasterDetailsInsertPage_vb.aspx 2)...
1
2167
by: Sam | last post by:
Attached I am sending 2 URL's from MSFT ASP.net Quick Start Tutorial Web Site. 1) Run it URL: http://www.asp.net/QuickStart/aspnet/samples/data/GridViewMasterDetai... 2) View Source URL:...
0
2078
by: Managed Code | last post by:
Hello All, Here is my issue and thanks in advance for any assistance. I have a base page with a dropdownlist that fires an event with the selected index. The content page catches the event and...
3
9231
by: Asaf | last post by:
Hi, I have SqlDataSource control that makes a "select count" to show how many rows there are in a Table and it is working fine on first page load. The problem is that when I am inserting a new...
0
7048
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,...
0
6911
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
7050
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
7091
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5344
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,...
1
4787
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
2999
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...
0
1303
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 ...
1
564
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.