CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2005_express Tags:
Item Type: NewsGroup Date Entered: 9/3/2007 10:32:53 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 31 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
Luppy
Asp.Net User
Get the data in the SQLDataSource object9/3/2007 10:32:53 AM

0/0

I'm Using VWD 

How can i get and show it in the textbox the data or record in my SQL using SQLDataSource?

 Please Help.

Benson Yu - MSF
Asp.Net User
Re: Get the data in the SQLDataSource object9/10/2007 2:50:24 AM

0/0

Hi Luppy,

The TextBox control cannot directly bind to SQLDataSource. For me, I will use FormView control with one TextBox control as template to achieve this goal. The client user interface is same as a single TextBox control.

For example, I have provided the following code for your reference. Hope it is helpful to you.


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:testConnectionString %>"
            SelectCommand="SELECT [Name] FROM [table1]" OnSelected="SqlDataSource1_Selected"></asp:SqlDataSource>
        <asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource1">
            <ItemTemplate>
                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("Name") %>'></asp:TextBox>
            </ItemTemplate>
        </asp:FormView>
    </div>
    </form>
</body>
</html>

 


Sincerely,
Benson Yu
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Luppy
Asp.Net User
Re: Get the data in the SQLDataSource object9/10/2007 10:45:44 AM

0/0

Hi Benson Yu,

Thanks for the help it solve my problem..

Luppy
Asp.Net User
Re: Get the data in the SQLDataSource object9/10/2007 10:55:15 AM

0/0

Hi Benson Yo,

This is diffirent problem.. how can i save the picture in the clients workstation to the server. by click in command button.

i try the filecopy it doesn't work.

But in this way it work perfectly

filecopy("c:\txt.txt", "d:\m.txt")

filecopy(\\192.168.3\c$\txt.txt, "d:\m.txt")

but when i apply in this

filecopy("c:\txt.txt",http://localhost/webprogramming/txt.text)

it showing an error.

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 2.0 Databases: From Novice to Professional Authors: Damien Foggon, Pages: 625, Published: 2006
Beginning ASP.NET 2.0 Databases: Beta Preview Authors: John Kauffman, Thiru Thangarathinam, Pages: 427, Published: 2005
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Professional ASP.NET 2.0 Databases Authors: Thiru Thangarathinam, Pages: 504, Published: 2007
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter Kit: visual web developer 2005 express edition starter kit Authors: David Sussman, Alex Homer, Pages: 312, Published: 2005
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Build Your Own ASP.NET 2.0 Web Site Using C# & VB: The Ultimate ASP.NET Begginner's Guide Authors: Cristian Darie, Zak Ruvalcaba, Pages: 689, Published: 2006
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006

Web:
Get the data in the SQLDataSource object - ASP.NET Forums Re: Get the data in the SQLDataSource object. 09-09-2007, 10:50 PM ... Re: Get the data in the SQLDataSource object. 09-10-2007, 6:45 AM ...
SqlDataSource Web Server Control Overview The SqlDataSource control can return data in two forms: as a DataSet object or as an ADO.NET data reader. You can specify which form to return by setting ...
Page 2 - Programming the ASP.NET 2.0 SqlDataSource Control Oct 30, 2007 ... We started by creating an object instance of our SqlDataSource control so we ... to know where to get the data for you and the T-SQL Select ...
How to get DataTable out of SqlDataSource - Usable Asp.Net ... The object will be loaded with the data after running the Select method. ... egoldin wrote re: How to get DataTable out of SqlDataSource. on 11-27-2007 3:48 ...
How do I retrieve data from a SqlDataSource object? : ASP.Net ... I have configured a SqlDataSource object (SqlDataSource1) with my connection string and the .... Then, we get the dataview's table, access the row we want, ...
Erik Taylor » Blog Archive » The .NET SqlDataSource and MySQL Data.MySqlClient" />. Then, when you create the SqlDataSource object, ... Get the National Hurricane Center Widget widget and many other great free widgets ...
how can I use the SQLDataSource object to retrieve data from code ... how can I use the SQLDataSource object to retrieve data from code behind? .... Select returns a DataView object, from there you can get the ...
SqlDataSource - how get first row in SELECT? NET 2.0 it seems like I'm so close to already having the data with the new SqlDataSource object. Am I missing something? <> wrote in message ...
Bind Data From a SqlDataSource to a Label If the DataSourceMode is set to DataReader, a DataReader object is returned. ... In the Page_Load method, the data returned by each of the Sql DataSource ...
Caching Data with the SqlDataSource Control Additionally, when using the SqlDataSource control with the System.Data. SqlClient provider, you can make use of the SqlCacheDependency object. ...




Search This Site:










unable to call function with default params from c#

articles area

help me please, everything works fine until yesterday !!!

menu control is displayed as block....

membership in an already existing sql table

recent projects

why is the register.apx page all out of wack?

activedirectorymembershipprovider changepassword problems 'must change password at next login'

use username in application ...

asp:menu click event not getting fired

this is a pain...login failed for user 'nt authority\network service'

encryption/decryption

file manager module

accessing labels within gridviews etc.

session sharing problem

recovering/decompiling asp.net website

unable to read data from the transport connection: net_io_connectionclosed

can i use formbuilder.net source to create a dnn module?

integrated windows authentication?

error 26 after installing webpart-framework

content problem 2.0 beta 3

passwordrecovery set focus

clientscriptmanager.registerforeventvalidation (extensive answer needed)

pull unit from database

activate user

opinion on class libraries

reporting services data access identity

javascript checkboxes and x has no properties

"remember me next time" - login control

how to redirect after login

 
All Times Are GMT