Showing posts with label http. Show all posts
Showing posts with label http. Show all posts

Saturday, March 24, 2012

about syntax error!

error: syntax error
source document :http://localhost/MyDream/AboutConten.asmx/js
line:3
source code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

my AboutConten.asmx is:

<%@dotnet.itags.org. WebService Language="C#" Class="MyDream1.AbouConten" %>

using System;
using System.Web;
using System.Data.SqlClient;
using System.Configuration;
using System.Web.Services;
using System.Web.Services.Protocols;
namespace MyDream1
{
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class AbouConten : System.Web.Services.WebService
{

[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
[WebMethod]
public string ShowContent(string myId)
{
int id = Convert.ToInt32(myId);
string connStr = ConfigurationManager.AppSettings[0].ToString();
SqlConnection conn = new SqlConnection(connStr);
string cmdStr = "select this_content from myTopic where this_id = @dotnet.itags.org.this_id";
SqlCommand comm = new SqlCommand(cmdStr, conn);
comm.Parameters.AddWithValue("@dotnet.itags.org.this_id", id);
conn.Open();
SqlDataReader dr = comm.ExecuteReader();
dr.Read();
string returnStr = dr[0].ToString();
dr.Close();
conn.Close();
return returnStr;
}

}
}

why?

please help me!

thanks!

What do you see when you navigate to the proxy directly from the browser (typehttp://localhost/MyDream/AboutConten.asmx/js in your address bar)?

about new atlass document

I found that the new atlas's document(http://atlas.asp.net/docs/Default.aspx) had used atlas's updatepanel.
Where to download the new atlas's document's source code?

You can download the latest Atlas CTP drop from this URL:http://atlas.asp.net/default.aspx?tabid=47&subtabid=471

Hope this helps,

Scott


thanks for your reply.
I had download it .But I can't find new atlas document's source code files.(I had old document's source code.)
How to get it?

I'm not sure what you mean by "old document's source code". Can you explain more? What document are you referring to?

Thanks,

Scott

A simple problem with the Tab Control.

I did my homework and researched the control failing to fire child events...

http://forums.asp.net/p/1176424/1982365.aspx#1982365

I have a TabPanel with 3 DDL's on it..(1) CardType, (2) expiration Month and (3)Year

none of the SelectedIndexChanged events fire, regardless of the property settings.

I checked the SampleWebsite and was alarmed that the sample shows most of the

common control typesEXCEPT a dropdown list..?? Comments? Solution? Tongue Tied

Thanks in advance..Cool

As of version10920 the only practical way to do it is to put them on the

page separatley and make themvisible / notvisible as you need them

in theActiveTabChanged event. The events of those DDL's will then fire.Big Smile

I thank myself for my input..Cool