473,938 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SqlDataSource and DataSet question

Hi,
I would like to know what the DataSet name is and where the DataSet is for
a SqlDataSource like this:

<asp:SqlDataSou rce ID="SqlDataSour ceA" runat="server" ConnectionStrin g="<%$
ConnectionStrin gs:ServiceConne ctionStringA %>"
SelectCommand=" SELECT TestNo, AcceptDate, status FROM TestForm ORDER BY
TestNo">
</asp:SqlDataSour ce>

where the connectionStrin gs in te Web.Config is as:
<connectionStri ngs>
<add name="ETCServic eTestConnection StringA" connectionStrin g="Data
Source=172.16.1 0.1;Initial Catalog=Service ;User
ID=service;Pass word=mypwd"
providerName="S ystem.Data.SqlC lient" />
</connectionStrin gs>

Thanks for help.
Jason

May 23 '07 #1
2 4853
Hi,
There is no dataset their !

Husam Al-aáraj

"Jason Huang" wrote:
Hi,
I would like to know what the DataSet name is and where the DataSet is for
a SqlDataSource like this:

<asp:SqlDataSou rce ID="SqlDataSour ceA" runat="server" ConnectionStrin g="<%$
ConnectionStrin gs:ServiceConne ctionStringA %>"
SelectCommand=" SELECT TestNo, AcceptDate, status FROM TestForm ORDER BY
TestNo">
</asp:SqlDataSour ce>

where the connectionStrin gs in te Web.Config is as:
<connectionStri ngs>
<add name="ETCServic eTestConnection StringA" connectionStrin g="Data
Source=172.16.1 0.1;Initial Catalog=Service ;User
ID=service;Pass word=mypwd"
providerName="S ystem.Data.SqlC lient" />
</connectionStrin gs>

Thanks for help.
Jason

May 23 '07 #2

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

Similar topics

0
1225
by: Jason Shohet | last post by:
I'm using the new SqlDataSource with the beta. Below I have 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>
1
1639
by: Neil | last post by:
Is it possible to reference the dataset of a sqldatasource from code? I've looked at the properties for the sqldatasource but don't see anything obvious. In particular, I have a bit field in the dataset that identifies if the user is permitted to make changes to the record. I have what I term "system defined items" for lookup purposes and these can never be changed even by the administrator. I would normally display a bit field as a...
1
2658
by: bcornett | last post by:
I am needing a way to extract a dataset from a sqldatsource. I am doing this to create a Generic Printing page. I will pass the dataset and an arraylist of grid_view propeties to this Generic Page to populate a generic grid_view. I have tried several approaches but to no avail. As from what I have read, I may not be able to peform the tasks that I am wanting to do. If the article that I was reading is correct, the sqldatasource stores...
0
3393
by: cyberbless | last post by:
I would like to dynamically assign a Select Statment to a a SqlDataSource. Problem is the SqlDataSource.Select() Command requires a "dataSourceSelectArgument" as one of its arguments. 1. What if I don't have an argument to give to out our the Select Statement. Or if the arguments are pre-assigned. Take the following lines of code for example. --------------------------------------------------------- SqlDataSource.InsertCommand =...
7
1768
by: | last post by:
I'm using ASP.NET 2.0, C#, SQL Server 2005, and databound controls like the DataList and the GridView. Right now I'm using SqlDataSource as part of very quick and dirty site; I'm not looking to tier things. I want the topmost/first data element in a particular control to NOT be displayed. This should be possible by either telling the renderer to hide the first element programmatically, or by deleting it from the data store that it has...
6
2175
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)
6
2062
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...
2
3475
by: John Kotuby | last post by:
Hi all, I am relatively new to ASP.NET 2.0 programming. I have some experience with classic ASP and VB6. In Visual Web Developer (VS 2005) there a numerous ways to work with data. In my application I am using a number of them, including the SQLDataAdapter, DataTables, etc. On one page I have chosen to use the SQLDatasource in conjunction with an ASP Repeater control, because it was by far the quickest implementation for my needs....
1
4669
by: Jason Huang | last post by:
Hi, I would like to know what the DataSet name is and where the DataSet is for a SqlDataSource like this: <asp:SqlDataSource ID="SqlDataSourceA" runat="server" ConnectionString="<%$ ConnectionStrings:ServiceConnectionStringA %>" SelectCommand="SELECT TestNo, AcceptDate, status FROM TestForm ORDER BY TestNo">
0
10134
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
11524
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11106
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
9857
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
8218
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
7381
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
6295
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4904
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
4446
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.