Click here to Skip to main content
12,634,407 members (25,173 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET SQL
I don't want to retrive data from SQL using DataControls (Gridview,...)
How i can retrieve it in another way?
Posted 14-Jun-12 6:33am
Lotus90317
Updated 14-Jun-12 21:33pm
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

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[^]
  Permalink  
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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:

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


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

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.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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,..)??
  Permalink  
Comments
Rahul Rajat Singh 14-Jun-12 22:28pm
   
THis is not a solution. please use questions and comments section for such communication.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

Thanks Alot ..It's working well with Me :)
  Permalink  
Comments
vino2012 15-Jun-12 13:03pm
   
This is also not a solution. Use comments section for such communication.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 5

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 19 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100