473,441 Members | 1,888 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,441 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 18 '05 #1
2 1252
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 18 '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 18 '05 #3

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

Similar topics

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...
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...
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...
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
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...
1
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...

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.