Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
Help on c#.net coding
Old 07-06-2008, 09:17 AM Help on c#.net coding
Novice Talker

Posts: 5
Name: Aashish Kumar
Trades: 0
I am using VS2005.
Sir/madam,
If I wants to fetch the data(single or multiple) from database in some control(other than data controls) in windows application,then what will be the entire code. Please help me.
ashishforindia is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-06-2008, 12:48 PM Re: Help on c#.net coding
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
We don't write entire blocks of code on request. Or rather some of us do, but there is normally an invoice involved.

Someone will probably assist with your existing code should you actually have any, and are having problems.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-06-2008, 02:54 PM Re: Help on c#.net coding
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Use ado to get the data, decide which control you want to use, and then assign populate it.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 07-06-2008, 08:47 PM Re: Help on c#.net coding
icanfreelance's Avatar
Junior Talker

Posts: 2
Trades: 0
How are you trying to get the data. Is it on a mysql database where it is on an external computer or server or is the database local like an access database.
__________________

Please login or register to view this content. Registration is FREE
- Find freelance programmers, post freelance projects and find freelance programming jobs. Best of all
Please login or register to view this content. Registration is FREE
when you register a new webmaster account.
icanfreelance is offline
Reply With Quote
View Public Profile Visit icanfreelance's homepage!
 
Old 07-10-2008, 02:16 PM Re: Help on c#.net coding
RabidSniper's Avatar
Skilled Talker

Posts: 57
Name: Jesse
Location: Phoenix, AZ
Trades: 0
Quote:
Originally Posted by ashishforindia View Post
I am using VS2005.
Sir/madam,
If I wants to fetch the data(single or multiple) from database in some control(other than data controls) in windows application,then what will be the entire code. Please help me.

Write a class/Method that returns your data as something derived from one of the List object types. Personally, I use ADO.NET and often return an actual DataTable reference. There are other ways to achieve the same thing, such as using a Typed Schema object which does all of the code/guts for you and you can use the little WYSIWYG sql designer if you like. There are pros and cons of each way.

That class will then be part of your architectual "Data Access Layer" or DAL.

Then, your DAL can serve data to anything, web, windows clients, services etc. simply by including the class (or library) into a project.

Okay, its not that simple but its a fairly evolved best practice.

If you want some specific code, take a look at the Data access tutorial on the ASP.NET web site. http://www.asp.net/learn/data-access/

Its focused on doing data access stuff in ASP.NET but the first two turtorials on DAL and BLL creation are relevent to pretty much any target platform in .NET

Good luck!
__________________
The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at or repair. -Douglas Adams
RabidSniper is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help on c#.net coding
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15895 seconds with 12 queries