Omgili - forum search, search forums  
  

Discussions about unknown method

Displaying 1 - 10 out of 33,280 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
I use System.Web.Services.WebMethodAttribute to make a public static method of an ASP.NET page callable from a client-side script: test.aspx.cs [System.Web.Services.WebMethod] public static string GetResult() { return "result"; } test.aspx <asp:ScriptManager...
Started by on , 6 posts by 5 people.  
There's a lot of info about this problem here: http....
I suspect you'll find it's asking the original page to respond, rather than test.aspx .
Where do you receive the error - server or client? If it's on the client, have a look at what it's trying to do .
I have a page with this method in CreateTicket.aspx.cs: [WebMethod()] public static string Categories() { var business = new CategoryBusiness(); var categories = business.ListRootCategories(); return categories.Json(); } And the javascript/jquery code...
Started by on , 4 posts by 3 people.  
Note: This only applies to non-WCF web services....
Does CreateTicket.aspx inherit from WebService? Even if it does, your class should also have the ScriptService attribute on it, so that .NET generates additional classes to assist in calling it from JavaScript .
I have lots of object defined in the system, perhaps 1000 objects, and some of them have this method: public Date getDate(); Is there anyway I can do something like this: Object o = getFromSomeWhere ; Method m = o.getMethod("getDate"); Date date = (Date...
Started by on , 6 posts by 6 people.  
However, reflection will also work, and your code was nearly there: Object o = getFromSomeWhere ; Method m Test(); Method m = o.getClass....
If there is an interface requiring a getDate() method you can check using the following code: if (o.
Ask your Facebook Friends
This is my first time attempting to call an ASP.NET page method from jQuery. I am getting a status 500 error with the responseText message that the web method cannot be found. Here is my jQuery $.ajax call: function callCancelPlan(activePlanId, ntLogin...
Started by on , 4 posts by 4 people.  
Restart your iis Restart your IIS or close virtual port VS .
Your web method needs to be public.
This seems like basic problem, but I'm struggling with it (maybe because of tiredness). E.g. - if i create instance of repository like this => var repositoryType = typeof(Repository<>).MakeGenericType(entityType); // repository type==object :...
Started by on , 3 posts by 3 people.  
If it does ,....
If not, you have to use reflection.
It depends whether Repository<> exposes some non-generic interface (like ITable compared to Table<T> in LINQ-to-SQL) .
In .Net 3.5, it is not possible to do this without reflection or worse .
Easiest way to explain what I mean is with a code sample. This doesn't compile, but is there any way to achieve this effect: foreach(Type someType in listOfTypes) { SomeMethod<someType>(); } Would be really convenient if that would work, but it ...
Started by on , 4 posts by 4 people.  
In particular, dynamic method invocation will enable you to invoke methods that may not be known.
Assuming the current object contains the SomeMethod() method, the code to do so.
Can use reflection.
Hey guys, I've removed some of the complexities of my needs to the core of what I need to know. I want to send a collection of Values to a method, and inside that method I want to test the Value against, say, a property of an Entity. The property will...
Started by on , 4 posts by 4 people.  
} You can optionally use a generic....
The interface method can ..
Your class then calls a method on that interface passing itself.
Create a method on your Entities (can be done using partial classes) that takes in an interface.
Generics).
Analytical method validation for unknown degradation products Dear everybody, I have a question about unknown degradation products. Which tests do you perform for unknown degradation products which calculated over the main peak and how to determine LOD...
Started by on , 4 posts by 4 people.  
Which tests do you perform for unknown degradation products which calculated method by the Industry....
Originally Posted by nill Dear everybody, I have a question about unknown degradation products.
Of statistically by 3.3Sigma/slope.
(N is unknown) $controller->$action($params); must be $controller->$action($param1, $param2, $param3... $paramN);
Started by on , 3 posts by 3 people.  
) ?> Not really sure what you want, but if you want to call a method with an unknown number.
I'm wondering if it's possible to make a method which behaves differently when called as a class method than when called as an instance method. For example, as a skills-improvement project, I'm writing a Matrix class (yes, I know there are perfectly good...
Started by on , 6 posts by 6 people.  
@classmethod def create(cls, baz comment by John Fouhy] You can use a descriptor to do what you want: class cls_or_inst_method(object): def __init__(self, class_....
To think of unique names for your classmethod and instance method.
Page: 1   2   3   4   5   6   7   8   9   10  

Related Message Boards & Forums

  • Stack Overflow
  • PROCESS VALIDATION
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost