DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Posts
    19

    howto access html sqldatasource info from code

    Is there any way of accessing the information selected by a sqldatasource control in the html area from the codebehind area?

    so for example i have an sqldatasource setup as so:

    <asp:SqlDataSource ID="SqlLocations" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT [id], [companyname], [address], [city], [province], [postalcode], [contact], [phonenumber], [faxnumber], [contactemail] FROM [locations] WHERE [id] = 1">

    and from the code area i want to access what information was selected for [companyname] or [address]

    anybody know of how to accomplish this?

    Thanks!

  2. #2
    Join Date
    Dec 2004
    Posts
    717
    How about SqlLocations.SelectCommand in code??
    Best Regards,
    Michael Sync
    http://michaelsync.net

    The more you share,The more you get

Similar Threads

  1. VB App read html code
    By Dralion in forum VB Classic
    Replies: 6
    Last Post: 02-01-2006, 04:06 PM
  2. Microsoft's C++ bigotry
    By Phil Weber in forum .NET
    Replies: 632
    Last Post: 10-01-2003, 12:00 AM
  3. Code Access Security
    By awhaley in forum .NET
    Replies: 1
    Last Post: 09-26-2002, 08:48 PM
  4. Replies: 60
    Last Post: 09-13-2002, 05:41 PM
  5. Access 97 to 2000 Conversion Error
    By Michelle in forum VB Classic
    Replies: 8
    Last Post: 04-19-2002, 05:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links