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

Q: how would you declare this dataset

Hello,

I had an aspx page working fine. I have added another web form and trying to
copy all the code I had in my web form to this new web form and change the
table names and fields.

Here are the definitions created automatically when I add dataadapter to my
application.

protected System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1;
protected System.Data.SqlClient.SqlConnection sqlConnection1;
protected myAppName.DataSet1 dataSet11;
protected System.Data.SqlClient.SqlCommand sqlSelectCommand1;
protected System.Data.SqlClient.SqlCommand sqlInsertCommand1;
protected System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
protected System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
protected System.Web.UI.WebControls.DataGrid DataGrid1;

I have problem to fill dataSet11 through sqlDataAdapter1. I am able to fill
any other new dataset I declare locally but not dataSet11. I think since
dataSet11 is defined as myAppName.DataSet1 it somehow related itself to my
other aspx page and tables.
How should I define a new dataset and make it valid in the aspx page for all
functions.

Thanks,
Jim.

Nov 19 '05 #1
0 793

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

Similar topics

2
by: CajunCoiler \(http://www.cajuncoiler.tk\) | last post by:
By any chance, would there happen to be an API function available that would allow me to terminate a process by name (as it appears in the task manager list) ?
3
by: James | last post by:
Hi I'm James Newbie I'm going to use some xml from a previous posters because it's similiar to mine <Store> <Name> My Book Store</Name> <Phone> 555-555-5555 </Phone> <Book id="1" >...
1
by: | last post by:
Consider the following: I have a socket server that converts the incoming data to astring. Each reception of data is to be stored in a new row ofa dataset. Is it cheaper (in the sense of...
2
by: Boris Zakharin | last post by:
I have the following code upon which I receive the error "Must declare the variable '@job_id'". --Begin Code -- OleDbConnection conDetail = new OleDbConnection("Provider=SQLOLEDB.1;Integrated...
41
by: Miguel Dias Moura | last post by:
Hello, I am working on an ASP.NET / VB page and I created a variable "query": Sub Page_Load(sender As Object, e As System.EventArgs) Dim query as String = String.Empty ... query =...
5
by: Steven Blair | last post by:
Would this DataSet be cleaned up? void Main() { DataSet ds = null; //Imagine this returns some tables ReturnData(out ds); //Grab a handle to the first row in the Configuration Table.
2
by: darrel | last post by:
We have a home grown web site. We store page information, including a time-stamp as to when it was last updated in a database table. We also store the site architecture (navigation) in an XML...
1
by: Tony M | last post by:
vs 2005 - vb .net - web forms - xp pro Can't figure out why I keep getting the error Must declare the scalar variable "@CheckUser". The error happens on SqlDA.Fill(SqlDS). Just trying to make...
1
by: Sh0eshineboy | last post by:
System.Data.SqlClient.SqlException: Divide by zero error encountered System.Data.SqlClient.SqlDataReader.Read() +176 System.Data.Common.DbDataAdapter.FillLoadDataRow(SchemaMapping mapping)...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.