473,407 Members | 2,676 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,407 software developers and data experts.

Really need to solve this SQL problem to finish this web site.

Hi,

i created a dataSet in an ASP.Net page which:

1. Loads all fields from each database record.
2. Creates a new field using 2 of the existing fields: FullName = FirstName
+ ' ' + LastName
3. Loads only the record which has the same FullName as the variable Name
passed in the URL to this page.

My SQL is this:

SELECT *, FirstName + ' ' + LastName as FullName
FROM people
WHERE FirstName + ' ' + LastName = ?

and:

<Parameter Name="@FullName" Value='<%# IIf((Request.QueryString("Name") <>
Nothing), Request.QueryString("Name"), "") %>'
Type="WChar"/></Parameters></MM:DataSet>

Can you please tell me how to do this?
I know i allready asked this but until now i got no solution and i need to
solve this to finish this web site and deliver it.

I hope i was able to explain better my problem.

Thank You Very Much,
Miguel

Nov 20 '05 #1
2 884
Why are you putting the Request.Querystring in a pre-render block, should it
not be in regular code with the rest of it ? IE

Value = Request.QueryString("Name")

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Miguel Dias Moura" <we****@27NOSPAMlamps.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

i created a dataSet in an ASP.Net page which:

1. Loads all fields from each database record.
2. Creates a new field using 2 of the existing fields: FullName = FirstName + ' ' + LastName
3. Loads only the record which has the same FullName as the variable Name
passed in the URL to this page.

My SQL is this:

SELECT *, FirstName + ' ' + LastName as FullName
FROM people
WHERE FirstName + ' ' + LastName = ?

and:

<Parameter Name="@FullName" Value='<%# IIf((Request.QueryString("Name") <> Nothing), Request.QueryString("Name"), "") %>'
Type="WChar"/></Parameters></MM:DataSet>

Can you please tell me how to do this?
I know i allready asked this but until now i got no solution and i need to
solve this to finish this web site and deliver it.

I hope i was able to explain better my problem.

Thank You Very Much,
Miguel

Nov 20 '05 #2
Do you know the strange thing? I tested it and everything works fine...but
when i was testing in the Dreamweaver window where i place the SQL, i was
not getting any records...have no idea why is this...but well, at least it's
working.

Thanks for eveybody help and patiente...my code is working :-)

Thanks again for your time,
Miguel

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:Ot**************@tk2msftngp13.phx.gbl...
Why are you putting the Request.Querystring in a pre-render block, should it not be in regular code with the rest of it ? IE

Value = Request.QueryString("Name")

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Miguel Dias Moura" <we****@27NOSPAMlamps.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

i created a dataSet in an ASP.Net page which:

1. Loads all fields from each database record.
2. Creates a new field using 2 of the existing fields: FullName = FirstName
+ ' ' + LastName
3. Loads only the record which has the same FullName as the variable Name passed in the URL to this page.

My SQL is this:

SELECT *, FirstName + ' ' + LastName as FullName
FROM people
WHERE FirstName + ' ' + LastName = ?

and:

<Parameter Name="@FullName" Value='<%# IIf((Request.QueryString("Name") <>
Nothing), Request.QueryString("Name"), "") %>'
Type="WChar"/></Parameters></MM:DataSet>

Can you please tell me how to do this?
I know i allready asked this but until now i got no solution and i need

to solve this to finish this web site and deliver it.

I hope i was able to explain better my problem.

Thank You Very Much,
Miguel


Nov 20 '05 #3

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

Similar topics

72
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools...
2
by: Naresh | last post by:
I have been having a problem and I don't know where to go for help. The microsoft support is only for a fees. Can anyone at all please at least point to a site or some place where I can hope for some...
3
by: Lee Tow | last post by:
Hello all: I want to write a program using ASP,that it can finish automatically: those files can be copied each other between the server and local,and it can delete some files in server...
2
by: Uninvisible | last post by:
I have put together a db for a law firm to keep track of counterfeit activities. There are four parent tables: tblContact tblTransaction tblAction tblFile I have created a form,...
2
by: Miguel Dias Moura | last post by:
Hi, i created a dataSet in an ASP.Net page which: 1. Loads all fields from each database record. 2. Creates a new field using 2 of the existing fields: FullName = FirstName + ' ' + LastName...
7
by: Bruce D | last post by:
My program in connecting to a web site and I want to know how long it takes to connect to this site. I'm assuming I need to use some sort of timer. This is a console application. Here are the...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
18
by: Earl Anderson | last post by:
First, I feel somewhat embarrassed and apologetic that this post is lengthy, but in an effort to furnish sufficient information (as opposed to too little information) to you, I wanted to supply all...
7
by: ojsimon | last post by:
Hi I found this script on a forum and have been trying to make it work, but all it returns is a blank screen, i tried using the debug error reporting but got nothing from that either just a blank...
6
by: shapper | last post by:
Hello, I am creating a form that includes a few JQuery scripts and TinyMCE Editor: http://www.27lamps.com/Beta/Form/Form.html I am having a few problems with my CSS: 1. Restyling the Select
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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,...
0
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...

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.