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

.NET (Core and Framework)

 
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 
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 
Thanks for the quick reply, Mark. I have updated as per the "How to get an answer to your question" #7.

I have tried Helloworld.asmx, works fine. I can use the results in xcelsius.

<pre>

<%@ 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";
}
}
}

</pre>

I have tried the below code and got the "This web service does not conform to WS-I Basic Profile v1.1." error.

<pre>

<%@ WebService Language="C#"
Class="csbook.ch15.Example15_3" %>


using System.Web.Services;
using System;
using System.Data;
using System.Data.SqlClient;


namespace csbook.ch15 {

class Example15_3 {
static void Main(string[] args) {
// create an open the connection
SqlConnection conn =
new SqlConnection("Data Source=philshiv;"
+ "Initial Catalog=AdventureWorks;"
+ "User ID=sa;Password=changeme");

conn.Open();

// create a SqlCommand object for this connection
SqlCommand command = conn.CreateCommand();
command.CommandText = "Select * from Person.Contact";
command.CommandType = CommandType.Text;

// execute the command that returns a SqlDataReader
SqlDataReader reader = command.ExecuteReader();

// display the results
while (reader.Read()) {
string output = reader["CompanyName"].ToString();
Console.WriteLine(output);
}

// close the connection
reader.Close();
conn.Close();
}
}
}

</pre>

Thanks for your time. Could you please help me to resolve the issue. Cry | :((

Thanks

modified on Monday, July 19, 2010 3:45 PM

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 
GeneralRe: convert to shortname Pin
vijiajai18-Jul-10 21:15
vijiajai18-Jul-10 21:15 
Answer[Repost] Re: convert to shortname Pin
Peace ON18-Jul-10 22:30
Peace ON18-Jul-10 22:30 

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.