Dear Expert,
Please i used ComboBox with services ,in my local machine its work fine also when i publish it to IIS7 .
now when i put the site one the server and access it the services not working and give me The Server Method " " Failed.
Please Help
Best Regards
Ab Abulubbad
My code IS :
Please i used ComboBox with services ,in my local machine its work fine also when i publish it to IIS7 .
now when i put the site one the server and access it the services not working and give me The Server Method " " Failed.
Please Help
Best Regards
Ab Abulubbad
My code IS :
<
tel:RadComboBox
ID
=
"rcbFileNo"
runat
=
"server"
Skin
=
"Web20"
Width
=
"80px"
AutoPostBack
=
"True"
AllowCustomText
=
"True"
MarkFirstMatch
=
"True"
EnableLoadOnDemand
=
"True"
EnableItemCaching
=
"True"
ShowMoreResultsBox
=
"True"
OnClientItemsRequesting
=
"OnClientItemsRequesting"
EmptyMessage
=
"رقم الملف"
OnSelectedIndexChanged
=
"rcbFileNo_SelectedIndexChanged"
meta:resourcekey
=
"rcbFileNoResource1"
>
<
WebServiceSettings
Method
=
"SearchFileNo"
Path
=
"~/Services/asmx/Search.asmx"
/>
</
tel:RadComboBox
>
<
asp:ObjectDataSource
ID
=
"odsGetFileNosList"
runat
=
"server"
SelectMethod
=
"GetFileNosList"
TypeName
=
"SMASIP.DataAccess.DBA.SMASServicesOldDB.LookupsServices"
></
asp:ObjectDataSource
>
using System.Collections;
using System.Web.Services;
using System.Data.SqlClient;
using SMASIP.WebApplication.Base;
using SMASIP.DataAccess.DAL;
using Telerik.Web.UI;
using System.Web.Script.Services;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ScriptService]
public class WebService : System.Web.Services.WebService
{
SqlParameterCollection par = null;
public WebService()
{
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod(EnableSession = true)]
public IEnumerable SearchFileNo(RadComboBoxContext context)
{
par = new SqlCommand().Parameters;
par.AddWithValue("@SearchPar", context.Text);
par.AddWithValue("@cmd", "GetFileNosList");
return DataProcess.GetIEnumerableList(Abstract.getDataTable("p_OldSMASIPServicesProcedure", par));
}
[WebMethod(EnableSession = true)]
public IEnumerable SearchClassNo(RadComboBoxContext context)
{
par = new SqlCommand().Parameters;
par.AddWithValue("@SearchPar", context.Text);
par.AddWithValue("@cmd", "SearchClassNo");
return DataProcess.GetIEnumerableList(Abstract.getDataTable("p_OldSMASIPServicesProcedure", par));
}
}