Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I don't want to retrive data from SQL using DataControls (Gridview,...)
How i can retrieve it in another way?
Posted
Updated 14-Jun-12 20:33pm
v2

What i understood from your question is that you need to access database and you don't want to do that using in built controls. perhaps because you need more fine grained control or some custom functionality.

The answer to this would be using ADO.NET. Please find this link below which could help.

A Beginner's Tutorial for Understanding ADO.NET[^]

also, if you dont want to put in a lot of code yourself you can any ORM like Entity framework too

An Introduction to Entity Framework for Absolute Beginners[^]
 
Share this answer
 
v2
In html, any control which is part of the form posts a value back using the name of the element as the key. All post back mechanisms in ASP.Net use this at the core of how they work.

So for the following input:

XML
<input type="text" name="txtTest" value="myValue" />


You can also find the value on the server side here after the post back:

C#
Request.Form["txtTest"] == "myValue"


This is how every control uses the postback to send data from the html form to the server.

Beyond this you'll have to provide more detail in your question about what you're trying to achieve.
 
Share this answer
 
Thx 4 info.. what i mean exactly: that i wanna to retrieve data from database in anotherway,,i don't want to use ASP.NET data conrol(Gridview,listview,..)??
 
Share this answer
 
Comments
Rahul Rajat Singh 14-Jun-12 22:28pm    
THis is not a solution. please use questions and comments section for such communication.
Thanks Alot ..It's working well with Me :)
 
Share this answer
 
Comments
vino2012 15-Jun-12 13:03pm    
This is also not a solution. Use comments section for such communication.
SQL
When answering a question please:
Read the question carefully.
Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900