Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binidng dataset created in VS.Net to a DataGrid control
Message
From
06/11/2002 19:08:31
 
 
To
06/11/2002 19:05:12
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00719524
Message ID:
00719637
Views:
14
Doesn't look like I helped much, James ... but glad you got it figured out!!

~~Bonnie



>Hi Bonnie,
>
>Thanks for trying to help with my problem. I finally figured it out. I tried to add a reference like you described, but I guess since the project I was working on was not compiled to a .dll, .exe or the like it wouldn't allow me to do that. I decieded to follow the MSDN Walkthrough I was following literally (not replacing my own values for the example values), I expected to get the same error but it WORKED! Huh...???
>
>It turned out that the problem was in the fact that I used the same name for both the project and the .aspx page ("Schedule"). I think it got confused... I changed the name of the .aspx page to View.aspx and changed the page class name to View and it worked like a charm.
>
>I really appreciated your help.
>
>Aloha,
>
>James
>
>>James,
>>
>>In the Solution Explorer, right-click on the References object under your Project and choose Add Reference. In the Dialog that comes up, choose the Projects tab and then choose the Project that contains your DataSet.
>>
>>~~Bonnie
>>
>>
>>
>>>Hi Bonnie,
>>>
>>>Thanks for answering. Just one more question... How do I do that?
>>>
>>>Aloha,
>>>
>>>James
>>>
>>>>James,
>>>>
>>>>Sounds like you haven't added the Reference to your DataSet under References in your Project.
>>>>
>>>>~~Bonnie
>>>>
>>>>>Hi All,
>>>>>
>>>>>I'm trying to get a DataGrid to show the result DataSet of a SQL query. I drop the SQLAdapter object onto my page and go through the configuration of the Connection and Adapter and that seems to be okay. I go about generating a DataSet from the Data item on VS.Net's menu and that seems to be okay. I adjust the DataSouce, DataMember and DataKeyField in the DataGrid and the grid assumes the columns from the DataSet... okay, fine. When I try to test run the page I get an error:
>>>>>
>>>>>
D:\My Webs\DataCraft\Schedule\Schedule.aspx.cs(28): The type or
>>>>>namespace name 'MyDataSet' does not exist in the class or
>>>>>namespace 'Schedule.Schedule' (are you missing an assembly reference?)
>>>>>
>>>>>
>>>>>Apparently a line of code:
>>>>>
>>>>>
protected Schedule.MyDataSet myDataSet1;
>>>>>
>>>>>is created in the code-behind section that is causing the error.
>>>>>
>>>>>Does anyone have any idea what else I need to do to get this to work. It seems that what I've done so far should be very trivial in VS.Net.
>>>>>
>>>>>Aloha,
>>>>>
>>>>>James
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform