473,778 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data Sources for ASP.Net

I just read an interesting article on Data Sources in Visual Studio 2005:
http://msdn.microsoft.com/vbasic/def...wdtastvs05.asp

It was an eye opener on the new way of filling data into datasets!
The article says it is the same idea for WebForms as for WinForms.
But when I try to apply the same idea on a new Web project I get a bit
confused. My impression is that there are several differences, making it
harder to apply in WebForms ....

For a start I didn't find the Data Sources menu/window so I created a typed
dataset myself and configured it with relevant Fill and GetData methods.

In the WinForms example the idea was to drag resources from the Data Sources
window into the form and then all necessary objects were created on the fly.
Is it possible to handle it in a similar way in WebForms or should I go back
to the old style and do all coding manually?
Jan 6 '06 #1
4 1734
"old style"?

My personal opinion is that the design time tools and wizards are good for
learning and starting to code in .NET in the beginning. But they are not
good or practical for writing applications or application architectures.
There is also this code that gets generated that you don't see so it all
looks like magic. A good programmer is going to write much cleaner, much
more efficient, and much more reusable code.

"Jakob Lithner" <ja******@newsg roup.nospam> wrote in message
news:78******** *************** ***********@mic rosoft.com...
I just read an interesting article on Data Sources in Visual Studio 2005:
http://msdn.microsoft.com/vbasic/def...wdtastvs05.asp

It was an eye opener on the new way of filling data into datasets!
The article says it is the same idea for WebForms as for WinForms.
But when I try to apply the same idea on a new Web project I get a bit
confused. My impression is that there are several differences, making it
harder to apply in WebForms ....

For a start I didn't find the Data Sources menu/window so I created a
typed
dataset myself and configured it with relevant Fill and GetData methods.

In the WinForms example the idea was to drag resources from the Data
Sources
window into the form and then all necessary objects were created on the
fly.
Is it possible to handle it in a similar way in WebForms or should I go
back
to the old style and do all coding manually?

Jan 6 '06 #2
I guess you are right.
Most "modern inventions" are just not robust enough for real business.

But still it looked nice to use in those cases where you just want a quick
and working application for personal use ....
Jan 6 '06 #3

You need to distinquish between

"Rapid Development" vs. "Good Development"

The new 2005 tools have put in alot (and I mean alot) of rapid
development tools.

There has also been a huge effort to make it more VB6 friendly, to make
the transition for VB6 developers over to .Net.
I would strongly suggest
http://froogle.google.com/froogle?hl...ch&sa=N&tab=wf
ASP.NET 2.0 Advanced Application Design

and
http://froogle.google.com/froogle?q=...&lmode=unknown
Effective C#: 50 Specific Ways to Improve Your C# ...
as resources.

The first one especially gives some info about how to distinquish
between Rapid vs Serious software development.

Its all about what you want to be. If speed is the only priority, then
use those wizards.

If things like good tiered development mean something, then you should
perhaps avoid the wizards.

...
Jakob Lithner wrote:
I just read an interesting article on Data Sources in Visual Studio 2005:
http://msdn.microsoft.com/vbasic/def...wdtastvs05.asp

It was an eye opener on the new way of filling data into datasets!
The article says it is the same idea for WebForms as for WinForms.
But when I try to apply the same idea on a new Web project I get a bit
confused. My impression is that there are several differences, making it
harder to apply in WebForms ....

For a start I didn't find the Data Sources menu/window so I created a typed
dataset myself and configured it with relevant Fill and GetData methods.

In the WinForms example the idea was to drag resources from the Data Sources
window into the form and then all necessary objects were created on the fly.
Is it possible to handle it in a similar way in WebForms or should I go back
to the old style and do all coding manually?


Jan 7 '06 #4
Thanks, I definitely consider buying the first one!
Jan 7 '06 #5

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

Similar topics

1
1866
by: Dinesh | last post by:
Hi, my existing web application(vb,asp) takes data from diff sources and populates a sql server which is in turn used as the data source for the application. this population of data happens by a nightly process(once in a day) . now the requirement is that we need the real data all of the times . now if i use merging of Data Sets into single
9
3313
by: Tony Lee | last post by:
Some time a ago, on this newsgroup the following comments were made in recommending good references for Access (2003) >I used to recommend Dr. Rick Dobson's, "Programming Access <version>" for >people moving from power user to developer, but now I suggest you browse >it, >too. It strongly emphasizes ADO, which knowledgeable Microsoft insiders no >longer recommend, and the Access ADP client to SQL Server. He writes well, >and is a good...
13
5257
by: Leszek Taratuta | last post by:
Hello, I have several drop-down lists on my ASP.NET page. I need to keep data sources of these lists in Session State. What would be the most effective method to serialize this kind of data structures? Thanks for any hints, Leszek Taratuta
0
1152
by: Mafuba | last post by:
I'm trying to use data sources with data bound controls on one of my pages that's using a master page. The master page has 2 ContentPlaceHolders, and in my page the data sources are in the first content area, and the data bound controls are in the second. The data bound controls are having a problem seeing the data sources at run time (even though everything is picked up by the visual studio at design time). I get an error message...
5
2885
by: rogsonl | last post by:
My computer was moved last week, and the company changed the network groups we work on. As a result, one of the main benefits from Whidbey (database connectivity) no longer works. Situation: 1. I open a new project based on a windows form 2. I click on "data" and then "Add New Data Source" then I click on next within the wizard 3. I have 3 choices Database, Local Database, Web service and Object. 4. I choose Database, click next and get...
1
2753
by: dbuchanan | last post by:
Hello, A section in Data Sources window is mystifying to me. In the case of my code the Data Sources window shows my references to the data access layer. First here is what I see in my Data Sources window ... ( means expandable, means expanded, is a checked checkbox, "QmsDataLayer" is the name of the referenced data layer.)
0
1406
by: GS | last post by:
Documentation states that there supposed to be a "Data Sources" windows in VS 2005. See below. I can not find Data menu in VS 2005 anywhere. Anybody sees that menu? Opening the Data Sources Window You display the Data Sources window by clicking Show Data Sources on the Data menu. The Data menu is only available when a project is open in Visual Studio.
10
1540
by: David Lee Conley | last post by:
When I open the Data Sources window and create a new data source, everything works fine. But if I have a form showing in the IDE, the Data Sources window becomes disabled and doesn't display any of the database components. Yet, when I switch to code view, I can see everything just fine. Does anyone have any idea why the Data Sources window becomes disabled when I'm viewing forms? TIA.
0
3129
by: BillE | last post by:
I am using Visual Studio 2005 to create a web site which includes reports. The web site has several sub-folders. When working with reports I can't get the website data sources (classes and datasets in App_Code folders throughout the project) to behave consistently. Sometimes data source are displayed, sometimes not. Sometimes I can add new data sources, sometimes I can't. Some classes are displayed, some aren't. I can't figure...
3
7724
by: =?Utf-8?B?V2FsaWQ=?= | last post by:
Hello: I have migrated a site from IIS5 to IIS6. The site is configured and the we app is installed on the new IIS site. I can get to the web page but when I try to login, this is what I get the following error below. I would appreciate any insight, direction or help regarding this. Thank-you!! Walid
0
10298
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
10127
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...
1
10069
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9923
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7475
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
6723
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
5500
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2865
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.