CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

Declaring the SqlConnection and SqlCommand objects in a webform without CodeBehind topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2010, 03:30 PM
Junior Member
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
bgryderclock is on a distinguished road
| More
Declaring the SqlConnection and SqlCommand objects in a webform without CodeBehind

I am trying to query data from a MS SQL server with a C# web form without “CodeBehind”. I want to write the information to a table in the web form’s body.
I am having trouble declaring the SqlConnection and SqlCommand objects that connect to the server.

How do you use “using System;”, “using System.Data;”, “using System.Data.SqlClient” inside of script element of as .aspx file?


I know how to do it with JavaScript and ADO. (code below)






Any suggestions, links to articles or tutorials would be greatly appreciated.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Timers on many objects markyoung1984 C# Programming 0 09-10-2010 12:01 PM
C# objects AxeSlash C# Programming 0 08-28-2010 03:00 AM
Creating Objects inspiration C Programming 4 03-27-2010 09:23 PM
Typecasting objects to doubles Rocket452 C# Programming 1 09-08-2008 02:45 AM
Why .NEt objects in Heap coderzone C# Programming 0 06-04-2007 11:23 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:36 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board