Click here to Skip to main content
15,923,273 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: problem in restoring mysql dump file using C#.net Pin
Richard MacCutchan20-Jul-10 2:09
mveRichard MacCutchan20-Jul-10 2:09 
AnswerRe: problem in restoring mysql dump file using C#.net Pin
Pete O'Hanlon20-Jul-10 4:25
mvePete O'Hanlon20-Jul-10 4:25 
Generalproblem solved thnk you for all who replied to me Pin
sr15921-Jul-10 22:33
sr15921-Jul-10 22:33 
AnswerRe: problem in restoring mysql dump file using C#.net Pin
Arjun Jutur Sathyanarayana8-Aug-10 22:48
Arjun Jutur Sathyanarayana8-Aug-10 22:48 
QuestionHow to encode an extended ASCII in .NET? Pin
Venkatesh Mookkan19-Jul-10 18:44
Venkatesh Mookkan19-Jul-10 18:44 
AnswerRe: How to encode an extended ASCII in .NET? Pin
Luc Pattyn19-Jul-10 23:06
sitebuilderLuc Pattyn19-Jul-10 23:06 
GeneralRe: How to encode an extended ASCII in .NET? Pin
Venkatesh Mookkan20-Jul-10 19:51
Venkatesh Mookkan20-Jul-10 19:51 
Questionasmx web service to access SQL server database. [modified] Pin
code4wcf19-Jul-10 4:20
code4wcf19-Jul-10 4:20 
Hi,

I am new to Web service. Using ASMX web service, the live data from the database can be shown in Xcelius Dashboard. Sample helloworld.asmx as below used to show "Hello World" in xcelsius dashboard. Xcelsius only support asmx.

<%@ WebService Language="C#"
Class="ProgWS.Ch02.HelloWorldService" %>
using System.Web.Services;
namespace ProgWS.Ch02
{
public class HelloWorldService: WebService
{
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
}
}

I have tried by combining code from www.jonasjohn.de/snippets/csharp/sql-connection-example.htm with above code, I am not succeed.

I would appreciate if you could let me know the sample ASMX C# program to connect SQL Server and return data from a table (adventureworks.Person.Contact.FirstName).


Thanks.

modified on Monday, July 19, 2010 10:38 AM

AnswerRe: asmx web service to access SQL server database. Pin
Not Active19-Jul-10 5:38
mentorNot Active19-Jul-10 5:38 
GeneralRe: asmx web service to access SQL server database. [modified] Pin
code4wcf19-Jul-10 8:12
code4wcf19-Jul-10 8:12 
GeneralRe: asmx web service to access SQL server database. Pin
Not Active19-Jul-10 8:43
mentorNot Active19-Jul-10 8:43 
GeneralRe: asmx web service to access SQL server database. Pin
code4wcf19-Jul-10 9:58
code4wcf19-Jul-10 9:58 
GeneralRe: asmx web service to access SQL server database. Pin
Not Active19-Jul-10 10:16
mentorNot Active19-Jul-10 10:16 
GeneralRe: asmx web service to access SQL server database. Pin
Ennis Ray Lynch, Jr.19-Jul-10 10:30
Ennis Ray Lynch, Jr.19-Jul-10 10:30 
AnswerRe: asmx web service to access SQL server database. Pin
Luc Pattyn19-Jul-10 10:56
sitebuilderLuc Pattyn19-Jul-10 10:56 
GeneralRe: asmx web service to access SQL server database. Pin
Not Active19-Jul-10 11:32
mentorNot Active19-Jul-10 11:32 
GeneralRe: asmx web service to access SQL server database. Pin
code4wcf21-Jul-10 16:19
code4wcf21-Jul-10 16:19 
QuestionHow do i draw my "user control UI" faster and more efficient [modified] Pin
Rejnev19-Jul-10 2:14
Rejnev19-Jul-10 2:14 
AnswerRe: How i draw my "user control UI" faster and more efficient Pin
Eddy Vluggen19-Jul-10 2:38
professionalEddy Vluggen19-Jul-10 2:38 
GeneralRe: How i draw my "user control UI" faster and more efficient [modified] Pin
Rejnev19-Jul-10 3:00
Rejnev19-Jul-10 3:00 
GeneralRe: How i draw my "user control UI" faster and more efficient Pin
Eddy Vluggen19-Jul-10 5:16
professionalEddy Vluggen19-Jul-10 5:16 
Generalit's done Pin
Rejnev19-Jul-10 5:30
Rejnev19-Jul-10 5:30 
GeneralRe: it's done Pin
Eddy Vluggen19-Jul-10 5:58
professionalEddy Vluggen19-Jul-10 5:58 
Questionconvert to shortname Pin
vijiajai18-Jul-10 18:45
vijiajai18-Jul-10 18:45 
AnswerRe: convert to shortname Pin
Peace ON18-Jul-10 21:01
Peace ON18-Jul-10 21:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.