Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update SQL Server from ASP.NET page
Message
De
01/07/2009 05:08:58
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01409449
Message ID:
01409523
Vues:
59
>Hi,
>
>I am beginning a process of moving my ASP.NET application from using VFP database to SQL Server. At this point I want to try a few things to see what I am most comfortable doing. In ASP.NET/VFP I was calling a VFP stored procedure passing an XML. I suppose with SQL Server I can/need to call SQL Server directly.
>
>I want to start with a page that allows user to enter some values in textboxes and drop down lists and the information is added to a table. I have been away from doing ASP.NET work for quite some time (as I was mainly maintaining my application). So now I need to learn from the beginning.
>
>If you know a basic article that covers this topic or are willing to provide conceptual guideline, I would appreciate very much.

Hi
A month ago I was in position to start a web app, not complicated, though.
I was a "first timer" ASP.NET and I needed a quick solution even "quick and dirty" (sort of).
I ended up using TableAdapters in a separate layer (and separate project) and functionality plugged in as modules in mojoPortal CMS (as ASCX control and ASPX pages). I used ObjectDataSource in pages from UI project with references to data layer project.
I choosed TableAdapters and typed datasets because of similarity with CursorAdapters from VFP.
Work pretty well, but one need to be careful with default functionality ( support for optimistic concurrency causes a lot of troubles, some parameters in tableadapter commands need to be changed to be without "Original_" prefix and ObjectDataSource without OldValuesParameterFormatString="original_{0}" )

You can find a tutorial here:
http://weblogs.asp.net/scottgu/archive/2006/01/15/435498.aspx
Or video tutorials here:
http://www.asp.net/LEARN/videos/

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform