473,698 Members | 2,304 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sqlDataSource questions, anyone?

I'm using the new SqlDataSource with the beta. Below I have my code:

asp:SqlDataSour ce ID="ds" Runat="server" SelectCommand=" SELECT
employee_ssno, firstname, lastname FROM employee_temp order by lastname"

ConnectionStrin g="<%$ ConnectionStrin gs:AppConnectio nString1 %>"
ProviderName="S ystem.Data.OleD b" UpdateCommand=" UPDATE DBOWEB.EMPLOYEE _TEMP
SET firstname=?, lastname=? WHERE employee_ssno=? ">

</asp:SqlDataSour ce>

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 18 '05 #1
0 1214

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

Similar topics

3
2228
by: adam222 | last post by:
hello, i have a web-form with a GridView control, i wanted to update & delete, using the AutoGenerateEditButton. when i used it with sqlDataSource (executing SP in the DB) it works like a charm, but when i want to pass the data through the application's layers (BL etc.), it did not work. it seems that the 'AutoGenerateEditButton' is capable only with sqlDataSource...
4
3444
by: | last post by:
I'm building some user controls. I very much like how you can build custom properties to be bound to a user control, and how instances of that control will show those custom properties in the VS.NET IDE. I've made a user control -- let's call it MyUserControl.ascx -- with a DataGrid and an SqlDataSource. The SqlDataSource that loads content by categoryID. I've defined a property on MyUserControl.ascx called ContentCategoryID.
4
2338
by: msch-prv | last post by:
I use an Access db in my application. So far I have been exclusively working wtih the AccessDataSource controls to hook up to the db. I know that Access db connections can also be established with SqlDataSource. What are the trade-offs between the AccessDataSource and SqlDataSource? Also, I am confused about the connection state. What are the rules of thumb for maintaining a db connection open vs closing it?
1
7229
by: Jason Wilson | last post by:
I have two dropdownlists that are bound to the same datasource and I have a couple of questions: 1) Because they are bound to the same datasource, I am assuming that they only make 1 round trip to the DB server -- is that correct? 2) On a user's click of a button, one of the actions in the button OnClick event is to set the selectedindex of the 2nd DDL to that of the 1st. I get a runtime error here that says that the given index is...
3
9243
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 row to the database table at the same ASPX page the rows count from the SqlDataSource remain the same. To refresh the SqlDataSource I have used his Select(DataSourceSelectArguments.Empty) but no luck.
6
2160
by: djc | last post by:
I had previously (in asp.net 1.1 and asp.net web matrix) just done this to populate a listbox with data from a database: ------------ this was from the page load event ---------------- 'fill recipient address list box Dim cnn As SqlConnection cnn = New SqlConnection(Application("cnn").ToString()) Dim cmdGetAllRecipientAddresses As SqlCommand = New SqlCommand("GetAllRecipientAddresses", cnn)
2
1993
by: djc | last post by:
1) I am wondering if I should be using an sqlDataSource object for my particular scenario. I need to loop through a listbox and perform an INSERT sql operation for each item. Could be a few or several items. The reason I'm wondering if I should use an SqlDataSource object is overhead. For example, prior to learning about the sqlDataSource I would just code the ado.net procedure myself. For example, create connection object, create and...
6
2042
by: Ken Fine | last post by:
I'm using SQLDataSource, which generates some kind of dataset, and then I attach that datasource to various data display controls such as DataList and repeater which loop through to the end of the data that was retrieved by the query. At times I may want the display control only to render some items in the set of data returned by SqlDataSource. There would be several scenarios: * render the second data item or third item in to the end...
0
1253
by: staeri | last post by:
I have a dropdownlist attached to a SqlDataSource inside an Accordion. I receive the following error message when the SqlDataSource is inside the Accordion: "The DataSourceID of 'ddGroup' must be the ID of a control of type IDataSource. A control with ID 'SqlDataSourceGroup' could not be found." I've been suggested to move the SqlDataSource out of the Accordion to get rid of the error message above, but when I do so the SqlDataSource
0
8674
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9027
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7725
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4369
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
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 we have to send another system
2
2329
muto222
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.