AJAX :: When Trying To Edit The Word Before The Delimiter The Service Method Is Not Even Called In IE

Nov 11, 2010

When trying to edit the word before the delimiter the service method is not even called in IE but works fine in Chrome.

As an example, while '$' is set as a delimiter;

$csAux.Value$csNeedsPO.Valu

Now, editting the word

csNeedsPO => the autocomplete populates as expected succesfully.

csAux.Value => doesnT trigger the method in the background.

View 1 Replies


Similar Messages:

Error While Adding Dynamic Data To An Existing Web Site - The Method 'Skip' Is Only Supported For Sorted Input In LINQ To Entities. The Method 'OrderBy' Must Be Called Before The Method 'Skip'.

Apr 13, 2010

I am creating an Asp.net web site which will support dynamic data. When I am creating a dynamic web site from Scratch (from template in VS) all is working fine. But when I am trying to add dynamic entity (.edmx) file and running the application I am getting following error

"The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must be called before the method 'Skip'. "

View 2 Replies

How To Force Web Service Base Class Method Run Before Web Service Method Start

Aug 6, 2010

My web services have base web service method called IsGood()I want to make sure every methods in my web service call IsGood() in base web service automatically without add code in each web service method, can I do that?

View 2 Replies

WCF / ASMX :: Best Way To "ensure" That A Web Service Is Only Called From AJAX On A Specific ASPX Page?

Oct 26, 2010

I have an ASPX page which hosts a Custom Control. That custom control needs to call an ASMX web service. I would use a PageMethod, if the fact that I'm calling from within a Custom Control didn't preclude that. I'm looking for some guidance on the most effective way to try and lock down the ASMX call such that it will only succeed for my users calling it from my ASPX page - and not for anyone trying to call it from elsewhere. I've seen various ideas around session variables and so on.

View 5 Replies

AJAX :: Autocomplete / Can't Get It To Hit The Method In My Service With A Signature?

Apr 9, 2010

I have a web control with a text box configured like this:

[Code]....

I am unable to get it to hit the method in my service with a signature like:

public
string[] GetOrganizationNames(string searchText,
int count)

but it does get to the method if I change the signature to:

public
string[] GetOrganizationNames()

For obvious reasons the second one will not do me any good. I have verified the data coming back from the method is good.

View 2 Replies

AJAX :: Access WCF Service Method Via URL Using JQuery

Jul 24, 2013

I have gone through your article [URL] ....

How can we access it through [URL] ....

If I do like this I get [URL] ....

Method not allowed.

View 1 Replies

AJAX :: Web Service Method With Parameter Isn't Calling With Autocomplete Text Box Extender

Feb 22, 2011

web service method(getMainHeads) with parameter is not calling with auto complete text box extender(same method with out parameter is calling fine). My Service is

[System.Web.Script.Services.
ScriptService]
public
class
InvService : System.Web.Services.WebService
{
ItemMainHeadMsts objItemMainHeadMsts;
DatabaseHelper objDataHelper;
[WebMethod]
public
string[] GetMainHeads(string value)
{
List<string>
oList = new
List<string
>();
objItemMainHeadMsts =
new
ItemMainHeadMsts
();
objDataHelper =
new
DatabaseHelper
();
objItemMainHeadMsts =
ItemMainHeadMstBase.SelectByFieldAuto("IMHDesc"
, value);
foreach (ItemMainHeadMst
mainHead in
objItemMainHeadMsts)
{
oList.Add(mainHead.IMHDesc);
}
return
oList.ToArray();..........................

View 4 Replies

AJAX :: CascadingDropDown - Method Error 500 Only For One DropDown And Service Path Is Correct

May 7, 2015

I have 3 table in database

1-state

Id state
1 USA
2 UK

2-City

Id name state
1 Canada USA
2 London UK

3-Region

Id regionname cityid
1 01 Canada
2 02 London

and I have 3 DropDownList that refer below thread [URL] ...

I use cascadingdropdown for these 3 dropdownlist below are codes:

AND

[WebMethod]
public CascadingDropDownNameValue[] GetCountries(string knownCategoryValues)
{
string query = "SELECT state FROM stateTest";
List countries = GetData(query);
return countries.ToArray();
}

[Code] ....

1-DDLstate

2-DDLcity

3-DDLregion

at first I should select Item from DDLsate then DDlcity and at the end I should select Item from DDLregion

above code work correctly for ddlstate and ddlcity but it doesn't work for ddlregion...

I mean when I select Item from ddlcity in ddlregion shows:[Metod error500]

View 1 Replies

How To Get A Listbox To Update After The Add Method Is Called

Mar 10, 2010

I am having a problem with getting a listbox to update after the add method is called. I am using an AsyncFileUpload control and as part of the AsyncFileUpload1_UploadedComplete I am creating a listItem and then adding that to the listbox. The item will not appear in the listbox. I have tried putting the listbox in an update panel and then calling the Update method on the panel from within the AsyncFileUpload1_UploadedComplete procedure and that too fails to update the listbox. I can call the Update method on the panel from a separate procedure and still the listbox will not update with the item added in the AsyncFileUpload1_UploadedComplete method.

View 6 Replies

JQuery :: AjaxStop() Method Is Not Called?

Jul 2, 2010

Below is my code, where the ajaxStop() method is not called.

[Code]....
[Code]....

View 1 Replies

Web Forms :: Why The Method LoadViewState() Is Not Called After The Postback

Sep 7, 2010

I can't understand why the method LoadViewState() is not called after the postback in my code below.After label1 cahnges its text the "__VIEWSTATE" hidden field is modified, but LoadViewState() is not called.

[Code]....

View 3 Replies

Controller Method Not Always Called From $.getJSON Request?

Mar 9, 2010

I have a controller method that returns a jSON object and in one calling situation, it works and in another calling situation, it does not work. When the URL in my browser is this:

http://localhost:65247/Client -- it works.

But, when my url looks like this:

http://localhost:65247/Client/UserAdmin?id=6 -- it DOES NOT work

In a nutshell, clients have users. From within the client, I wish to work on a specific user (this is the UserAdmin view). In this case, the client id is 6. From within the UserAdmin view that was launched with Id=6, I then wish to select a user from a dropdown. The idea was to use javascript and $.getJSON to fetch data for the specific user so as not to have to refresh the entire page. I use this approach in other parts of the app. The only difference I can see is with the URL in the browser. It would appear the presence of parameters via the '?' is futzing things up a bit.

View 1 Replies

MVC :: Initialize Method Called Multiple Times?

Jul 6, 2010

I'm overriding the Controller.Initialize method to set some stuff before each ActionResult is executed, however I'm finding that the method is being called multiple times for each request (anywhere between 2 - 10 times). I'm running in Cassini.

My hunch is that it is running for all static files (images, css etc) as well as the requested action - although I may be wrong? I thought maybe something was wrong in my web.config but it all looks right to me.

View 6 Replies

Passing Value From Action Method To View From Where It Is Called

Mar 3, 2011

In one view (view1) there is a text box and a button beside it. i click on that button, i am popping another view (Create view) as a seperate window. in create view i am entering some values and creating a record in db. out of these values one value i have to send back to "View1". how can i send this value? i am opening view2 from view1 like

<input type="button" value="Get ID"
onclick="window.open('<%=Url.Action("Create","Controller1") %>',
'','scrollbars=yes,width=800,height=800,resizable=yes');"
/>

View2 contains some fields like Name,Email etc... and I click "Create" to call HTTPPOST. there i add the values to db including a generated guid. i want to send this ID to view1.

View 2 Replies

C# - Silverlight Ria Domain Service Not Being Called?

Sep 29, 2010

Im using silverlight ria services and trying to called a domain service methodthe domain service class signature goes like this public class UserDomainService : DomainServiceand I have a simple operation to return data

public IQueryable GetUsers()
{
return userService.GetAll()
).AsQueryable();
}
[code]...

View 2 Replies

WCF / ASMX :: Service Function Getting Called Twice?

Aug 27, 2010

Service Function Getting Called Twice?

View 1 Replies

Web Forms :: Wizard.ActiveStepChanged Method Is Called Before The Page_Init?

Feb 1, 2010

I'm debugging right now and it seems the Wizard.ActiveStepChanged method is called BEFORE the Page_Init method?!?

I've tried it several times now.

If thats the case: what is called BEFORE Wizard.ActiveStepChanged?

View 3 Replies

.net - MVC LinkButton Equalization - Overloaded Index() Method Isn't Called?

Feb 4, 2010

I'm rewriting a Web Forms application as an exercise to learn some MVC skills.I have a number of LinkButtons on the original application which postback and raise a serverside event that rebinds data to a datagrid.

E.g.
Event handlers:
protected void lbtnOffset0_Click(object sender, EventArgs e)
{
[code]....

What I currently have in MVC is this:

<%= Html.ActionLink("CurrentYr", "Index", 0)%>
<%= Html.ActionLink("1", "Index", 1)%>
and

public ActionResult Index()
{
return View(MietController.GetMietByYearOffset(0);

[code]...
As the ActionLink renders an tag it doesn't postback so my overloaded Index() method isn't called. What are my options for doing this in MVC?

View 1 Replies

Web Forms :: Increment The Return Value Of Method Every Time It Is Called?

Jun 29, 2010

I want to use a function in the code file of ASP.NET such that everytime the function is called, its value increases by 1.I thought of a way but it didn't fully work out. I created a class for this and used a static variable in that but the lifetime of static variable in asp.net is till the time the app does not close.

public class Class1
{
public Class1()[code]....

View 11 Replies

Web Forms :: Code A Time Delay Before The Next Method Is Called?

Mar 13, 2011

How code a time delay before the next method is called? I have the following but I don't think it's waiting 10 seconds before calling CallMethod(). Thread.Sleep(10000); CallMethod();

View 2 Replies

C# - Silverlight Ria Domain Service Not Being Called While Making?

Sep 2, 2010

Im using silverlight ria services and trying to called a domain service method. the domain service class signature goes like this public class UserDomainService : DomainService and I have a simple operation to return data

public IQueryable GetUsers()
{
return userService.GetAll()
).AsQueryable();
}

this compiles fine an a silverlight proxy is generated on the silverlight client side. how ever when makeing calls from silverlight eg

LoadOperation op = UserDomainContext.Load(UserDomainContext.GetUsers(),UserLoadedCallback,null);
int i = op.Entities.Count();

it is always 0, the domain servcice method is never hit when i put a breakpoint.

View 1 Replies

Web Method That Accepts A List<CustomObject> Is Failing With "Web Service Method Name?

Feb 8, 2010

I want to create a web method that accepts a List of custom objects (passed in via jQuery/JSON). When I run the website locally everything seems to work. jQuery and ASP.NET and everyone is happy. But when I put it on one of our servers it blows up. jQuery gets a 500 error after the ajax request with the response being:

System.InvalidOperationException: EditCustomObjects Web Service method name is not valid.
[WebMethod]
public void EditCustomObjects(int ID, List<CustomObject> CustomObjectList)
[code]...

View 8 Replies

How Many Times Does HttpModule Init() Method Get Called During Application's Life

Jul 30, 2010

Web application initialization is as follows:

As we know when IIS receives the first request for a particular Asp.net application resource, IIS creates an instance of a HttpApplication (defined in global.asax codebehind).When this new instance is created it's initialization happens that also checks all configured HTTP modules.All modules are then instantiated and put in the application's Modules collection (of type HttpModuleCollection)modules are looped through and their Init() method is called (when they register for request events)

As far as I understand it the above scenario happens when a web application is started/initialized (hence application start event).What happens with modules?

Are they (re)instatiated on each request or reused from the Modules property on each consecutive request while the web application is alive? As I understand IIS and Asp.net they are reused through the whole life of a web application.

If they are reused, can we assume that their Init() method is actually a pseudo event handler for application start event? The thing is we can't attach to application level events within http modules. But if they are being reused we could use Init() as application start event and do whatever we'd put in global.asax instead.

Question,Can we assume that module's Init() method is called only on application start event? Could we use this assumption to i.e. register routes for applications whose global.asax codebehind we can't change? web.config is usually accessible and we can change it the way we want.Would this actually work?

Additional info,We can check HttpApplication code and check its InitModulesCommon() method. This one actually calls Init() of each registered HTTP module. What is more interesting is that this method is only used by InitIntegratedModules() and InitModules() methods. Which are both used only in HttpApplication.InitInternal() method. This is the basis of my assumptions, but I would like to know whether someone has abused IHttpModule.Init() for application start event.

View 3 Replies

MVC :: Can't Reach Controller - Javascript Library And Method Called From View

Jul 23, 2010

I have a javascript library and in there i have a method that is called from my view. Here it is:

<li><a href="javascript:void 0" onclick="deleteAll('image', '<%= ViewData["FileGroupId"]%>')"><div><%=GetGlobalResourceObject("default", "Delete_all") %></div><div></div></a></li>
and here is my js code in the javascript library:
var deleteAll = function(module, groupId) {
jConfirm(_deleteConfirmAll, _deleteAll, function(r) {
if (r) {
showProgress();
$.ajax({
cache: false,
type: "POST",
url: _baseUrl + "/" + module + "/deleteall/" + groupId,
success: function(msg) {
if (msg == '0') {
location.href = _baseUrl + '/' + module;
}
else {
jAlert(msg, _errorTitle);
}
hideProgress();
}
});
}
});
}
My problem is that i cant reach my controller. Here is my controller code:
#region common methods
List<.CMS.Core.File> GetList(int groupId)
{
List<CMS.Core.File> list = new List<CMS.Core.File>();
CMS.Core.FileFilter filter = new CMS.Core.FileFilter();
filter.GroupId = groupId;
int res = CMS.Core.File.Search(_connection, filter, ref list);
return list;
}
#endregion
public ActionResult DeleteAll(int groupId)
{
List<CMS.Core.File> list = GetList(groupId);
foreach (File item in list)
{
item.Delete();
}
return Json(list);
}
And at last her is my Index method
public ActionResult Index(int? id)
{
if (Request.IsAjaxRequest())
{
JsonPaging paging = new JsonPaging();
int offset = 0;
int page = 0;
if (!String.IsNullOrEmpty(Request.QueryString["page"]))
{
Int32.TryParse(Request.QueryString["page"], out page);
}
if (page > 0)
{
offset = (page * paging.PageSize) - paging.PageSize;
}
FileFilter filter = new FileFilter();
filter.Deleted = false;
filter.MaxRecords = paging.PageSize;
filter.Offset = offset;
if (!String.IsNullOrEmpty(Request.QueryString["keywords"]))
{
filter.FilterType = FilterTypes.AND;
filter.Name = Request.QueryString["keywords"].ToString();
}
if (!String.IsNullOrEmpty(Request.QueryString["sort"]))
{
filter.OrderBy = Request.QueryString["sort"].ToString();
if (!String.IsNullOrEmpty(Request.QueryString["direction"]))
{
filter.OrderBy = filter.OrderBy + " " + Request.QueryString["direction"].ToString();
}
}
if (id > 0)
{
filter.GroupId = id.Value;
}
List<CMS.Core.File> items = new List<CMS.Core.File>();
int results = CMS.Core.File.Search(_connection, filter, ref items);
foreach (CMS.Core.File current in items)
{
JsonItem item = new JsonItem();
item.Id = current.Id;
item.Name = current.Name;
item.ImageText = current.ImageText;
item.Aperture = current.Aperture;
item.TakenOn = current.TakenOn;
item.Camera = current.Camera;
item.ExposureTime = current.ExposureTime;
item.FocalLenght = current.FocalLenght;
item.Tags = current.Tags;
item.Url = current.Url;
item["Active"] = current.Active.ToString();
item["Created"] = current.Created.ToString();
paging.Items.Add(item);
}
return Json(paging, JsonRequestBehavior.AllowGet);
}
else
{
ViewData["FileGroupId"] = id;
return View();
}
}

View 2 Replies

C# - Why Does Silverlight Reference To Wcf Service Blow Up When Add Method To The Wcf Service That Returns Generic List

Aug 17, 2010

I have built a WCF Service that is being consumed by a Silverlight app. At first I created one method that was very simple:

public String SfTest()
{
return "SF Test";
}

No poblem. My silverlight app references my service and displays "SF Test" in a textbox. Now I add a method to my wcf service like this:

public List<String> GetTest()
{
List<String> list = new List<string>();
String a = "a";
list.Add(a);
String b = "b";
list.Add(b);
return list;
}

I update the reference to the service in my Silverlight app and the using statement in my xaml cs page throws an error like the service doesn't even exist although it is there. I am assuming the problem has to do with datatypes or serialization or something like that but it is driving me up the wall. Why can't I consume a simple generic list in my Silverlight app through the WCF service.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved