Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Data from DB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shelly - 05 Sep 2007 02:51 GMT
I am coming from the world of php, so please bear with me here.

In php, we open a connection to the db server with a connect function
(passing in the parameters).  Then we select the database with another
function call.  We then query the database with the SQL values in a sql
calling function and get back a resource (like a dataset).  That resource
can be expanded to get all the column values requested for as many rows as
are pulled back.

How is it done in ASP.NET.  I will have a button to click and that will
bring me to a method to access the database.  How do I formulate the
interrogation (knowing the SQL call) so that I can then set values of
specific controls in the form from the values I get in the method?  (I know
how to set them once I get them and I know SQL).  What I am looking for is a
the set of calls (like mysql_connect, mysql_select_db, mysql_query and so on
in php).

I know about a connection control as I have used the GridView.  However,
that gives the boundfields directly.

Shelly
Mark Rae [MVP] - 05 Sep 2007 07:30 GMT
> How is it done in ASP.NET.

http://www.developerfusion.co.uk/show/4278/

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Shelly - 05 Sep 2007 12:03 GMT
Thanks.  That looks like what I was asking for.  I'll try it later and
report.
Shelly

>> How is it done in ASP.NET.
>
> http://www.developerfusion.co.uk/show/4278/
Shelly - 05 Sep 2007 22:52 GMT
I succeeded.  There were a few little things that I had to learn in the
process, such as where to put the Imports statements, but I got it going.
Thanks again.

> Thanks.  That looks like what I was asking for.  I'll try it later and
> report.
[quoted text clipped - 3 lines]
>>
>> http://www.developerfusion.co.uk/show/4278/

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.