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

anyone trying out the beta? I have a few questions

I'm using the new SqlDataSource successfully. Just for reference, here's my
code:

asp:SqlDataSource ID="ds" Runat="server" SelectCommand="SELECT
employee_ssno, firstname, lastname FROM employee_temp order by lastname"
ConnectionString="<%$ ConnectionStrings:AppConnectionString1 %>"
ProviderName="System.Data.OleDb" UpdateCommand="UPDATE DBOWEB.EMPLOYEE_TEMP
SET firstname=?, lastname=? WHERE employee_ssno=?"> </asp:SqlDataSource>

Q1: That 1 updatecommand above takes care of the select, the update, the
delete... everything it seems. Anyhow, I can't figure out how to specify
that the firstname & lastname fields above be lowercase. Its not like its a
regular Oracle query where i can use the Lower function in the select
statement. This is a parameterized query using OLEDB. Any ideas how to
get a field to display lower case?

Q2: dumb question. I'd like web services to handle a lot of the querying,
that way they can be used across multiple applications etc. I assume that
you can NOT use sqlDataSource in a web service? We've tried it, but can't
get it to work. In asp.net 1.0 we have a web service return a dataset and
have a datagrid use that dataset as its source. In asp.net 2.0, whats the
way to go in regards to passing a result set back from a web service, and
having the gridview consume it? I'm not sure what to do.

Q3: the dumbest question. Is the .net 2.0 framework available so I can put
it on our test deployment server? I mean, I'm ready to go live with an
application and I'm not sure where to get the framework to put on the
windows2003 server. Right now it only has 1.1, which comes w/ 2003.

TY! Jason Shohet

Nov 16 '05 #1
4 1419
Jason,

Why not? Why can't you do this:

<asp:SqlDataSource ID="ds" Runat="server" SelectCommand="SELECT
employee_ssno, lower(firstname) as firstname, lower(lastname) as
lastname
FROM employee_temp order by lastname"
ConnectionString="<%$ ConnectionStrings:AppConnectionString1 %>"
ProviderName="System.Data.OleDb" UpdateCommand="UPDATE
DBOWEB.EMPLOYEE_TEMP
SET firstname=lower(?), lastname=lower(?) WHERE employee_ssno=?">
</asp:SqlDataSource>

If the back end is SQL server (or a language that supports it), then it
should be just fine. You might have to specify an insert and a delete
statement as well so the SqlDataSource doesn't guess at what those commands
should be (and would probably be thrown off because of the call to lower as
well). The provider for OLEDB is just going to do substitution, not change
the syntax of your query.

As for #2, you can do it using the SqlDataSource. Just create a new
instance, and set the appropriate properties. You might find it easier to
just use the classes in the System.Data namespace though. The reason for
the SqlDataSource in .NET is so that you can declare your data source in the
markup for ASP.NET.

.NET 2.0 is in beta right now, so you are assuming a degree of risk in
placing it into production on an application server. You have to decide if
it works for you. If you have a MSDN universal subscription, then you
should have access to the betas, otherwise, I'm not sure how you can get a
hold of them.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Jason Shohet" <__******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I'm using the new SqlDataSource successfully. Just for reference, here's
my code:

asp:SqlDataSource ID="ds" Runat="server" SelectCommand="SELECT
employee_ssno, firstname, lastname FROM employee_temp order by lastname"
ConnectionString="<%$ ConnectionStrings:AppConnectionString1 %>"
ProviderName="System.Data.OleDb" UpdateCommand="UPDATE
DBOWEB.EMPLOYEE_TEMP SET firstname=?, lastname=? WHERE employee_ssno=?">
</asp:SqlDataSource>

Q1: That 1 updatecommand above takes care of the select, the update, the
delete... everything it seems. Anyhow, I can't figure out how to specify
that the firstname & lastname fields above be lowercase. Its not like its
a regular Oracle query where i can use the Lower function in the select
statement. This is a parameterized query using OLEDB. Any ideas how to
get a field to display lower case?

Q2: dumb question. I'd like web services to handle a lot of the
querying, that way they can be used across multiple applications etc. I
assume that you can NOT use sqlDataSource in a web service? We've tried
it, but can't get it to work. In asp.net 1.0 we have a web service return
a dataset and have a datagrid use that dataset as its source. In asp.net
2.0, whats the way to go in regards to passing a result set back from a
web service, and having the gridview consume it? I'm not sure what to do.

Q3: the dumbest question. Is the .net 2.0 framework available so I can
put it on our test deployment server? I mean, I'm ready to go live with
an application and I'm not sure where to get the framework to put on the
windows2003 server. Right now it only has 1.1, which comes w/ 2003.

TY! Jason Shohet

Nov 16 '05 #2
Please use microsoft.private.whidbey newsgroups you to post v2.0 Beta
questions.
Your question relates to both - microsoft.private.whidbey.aspnet.general and
microsoft.private.whidbey.adodotnet.

Willy.
"Jason Shohet" <__******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I'm using the new SqlDataSource successfully. Just for reference, here's
my code:

asp:SqlDataSource ID="ds" Runat="server" SelectCommand="SELECT
employee_ssno, firstname, lastname FROM employee_temp order by lastname"
ConnectionString="<%$ ConnectionStrings:AppConnectionString1 %>"
ProviderName="System.Data.OleDb" UpdateCommand="UPDATE
DBOWEB.EMPLOYEE_TEMP SET firstname=?, lastname=? WHERE employee_ssno=?">
</asp:SqlDataSource>

Q1: That 1 updatecommand above takes care of the select, the update, the
delete... everything it seems. Anyhow, I can't figure out how to specify
that the firstname & lastname fields above be lowercase. Its not like its
a regular Oracle query where i can use the Lower function in the select
statement. This is a parameterized query using OLEDB. Any ideas how to
get a field to display lower case?

Q2: dumb question. I'd like web services to handle a lot of the
querying, that way they can be used across multiple applications etc. I
assume that you can NOT use sqlDataSource in a web service? We've tried
it, but can't get it to work. In asp.net 1.0 we have a web service return
a dataset and have a datagrid use that dataset as its source. In asp.net
2.0, whats the way to go in regards to passing a result set back from a
web service, and having the gridview consume it? I'm not sure what to do.

Q3: the dumbest question. Is the .net 2.0 framework available so I can
put it on our test deployment server? I mean, I'm ready to go live with
an application and I'm not sure where to get the framework to put on the
windows2003 server. Right now it only has 1.1, which comes w/ 2003.

TY! Jason Shohet

Nov 16 '05 #3
Willy maybe you could help me access that ng. I tried to add a server
called 'microsoft.private.whidbey' but no such server exists.... Right now
the server I'm accessing is msnews.microsoft.com

TY
Nov 16 '05 #4
Check this:
http://communities.microsoft.com/new...y&amp;slcid=us

here you will find all info needed to access the whidbey NG's.

Willy.
"Jason Shohet" <__******@yahoo.com> wrote in message
news:eL**************@TK2MSFTNGP14.phx.gbl...
Willy maybe you could help me access that ng. I tried to add a server
called 'microsoft.private.whidbey' but no such server exists.... Right
now the server I'm accessing is msnews.microsoft.com

TY

Nov 16 '05 #5

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

Similar topics

0
by: Corrie Meyer | last post by:
Announcement: SwiftReports standard edition beta 1 for Visual Studio ..NET 2003 released by UniSwift. We are pleased to announce the beta release of a fully-managed reporting tool for the...
0
by: dhoward99 | last post by:
We are holding a beta program for Corel Smart Graphics Studio 2.0 - a development platform for generating XSLT, XML, and SVG to create rich, data-driven graphics bound to enterprise systems (such...
48
by: ik | last post by:
ERROR after uninstalling SQL Server 2005 Express I get this message, SQLDMO has not been registered. Please re-run your setupand contact your system administrator. GREAT!!! ReInstalled SQL...
11
by: JDeats | last post by:
1. Will there be different 64-bit .NET implementations for Intel and AMD 64-bit processors or will they share a common 64-bit CLR? 2. Will .NET managed code compiled for the 32-bit CLR be binary...
1
by: Eric Sassaman [MS] | last post by:
Online Chat: Visual C++ 2005 Beta Join the Visual C++ team to discuss your questions and comments on the Beta release of Visual C++ 2005. Whether you are a first-time user of the Visual C++...
10
by: Flare | last post by:
Hi We are starting our implementation of a medium scale web application. The delivery is set to last february so it is "close" the release of Net 2.0. Would it be both legal and wise to develope...
5
by: Arjen | last post by:
Hi, The login control (<asp:Login) generates a HTML table. I have used my own template without table's. The control generates <table> ... my design(template) ... </table>. I don't like the...
8
by: Terry Olsen | last post by:
I'm trying to use the RS232 class that was in the Platform SDK (i think). Has anyone else used this with events successfully? Here's what i've got: ====================== Public WithEvents...
1
by: trdonavan | last post by:
I was working on a VB Add-In in VS 2005 Beta 1 and after installing Beta 2 the Add-In disappeared from the IDE that is invoked to debug the Add-In. In other words, in Beta 1 when I started...
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
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
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
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...

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.