Accept An Out Parameter In Ajax?

Dec 20, 2010

I have a static function in the aspx page with this signature:

public static bool UserNeedsToBeAlertedPwdReset(out DateTime dtExpires)
{
DateTime dt = DateTime.MivValue;
return true;
}

So I want to call this function from the client side, using the jQuery Ajax. How do I get a hold of the out value? Edit Alternatevly I could check for nulls if this is possible with Ajax + jQuery like that:

ublic static DateTime? UserNeedsToBeAlertedPwdReset()
{
if(blah)
return null;
return DateTime.Now;
}

View 2 Replies


Similar Messages:

Allow Sql Sp To Accept A Null Value For A Parameter (sometimes.. Not All The Time)?

Jul 28, 2010

I'm trying to write a query that will work in two situations. In some situations the value for AOL will be Null and in others there will be a vnumeric value. How do I get this procedure to accept Null if its passed in but also accept a numeric value if it's passed in?

[Code]....

View 3 Replies

DataSource Controls :: Store Procedure Accept Parameter As The Column Name?

Feb 18, 2010

i am a new bee in SQL Server 2005. I have a stored procedure that accept two parameter , variable @ColumnName as column name and @SearchText as search text.

My stored procedure is written as below:

[Code]....

but the error i get is "The 'usp_GetPlantTest' procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead."

View 4 Replies

AJAX :: How To Get FilteredTextboxExtender To Accept Non English Characters

Aug 11, 2010

We're currently using FTEs to filter input on our registration. New business model wants to explore foreign markets, and I have not been able to figure out how to get the FTEs to accept foreign language characters.

View 2 Replies

AJAX :: There Was No Channel That Could Accept The Message With Action?

Jun 22, 2010

I'm hoping that i'm posting in the right forum. Does anyone know how to recitify the following error from WCF:

[Code]....

I read an article that it has something to do with downloading MEX metadata so I disabled the mex and httpGetEnabled to false but no luck.

View 1 Replies

AJAX :: How To Configure WCF To Accept & Reply To JQuery Post

Jan 11, 2010

I have a WCF web service and jQuery AJAX implementation that appears to be working perfectly, save for a single line of code: the AJAX calls to the WCF service only have the correct HTTP header & content information if I use GET in my AJAX calls. Once I choose to use POST, the WCF service response with "Method Not Allowed". The calls are coming from domains such as sub1.domain.com, and calling svc.domain.com. How can I configure WCF to allow the cross domain AJAX POSTs?

[Code]....

Here's the relevant section of the web.config:

[Code]....

Here's the AJAX code:

[Code]....

I have indeed tried these changes to my interface:

[Code]....

View 4 Replies

AJAX :: Null Or No Value Parameter?

Feb 20, 2010

I have a simple web-service and want to invoke it from a client. this service has a parameter but when I invoke it from client and send to it a parameter , in server side service run successfully but always parameter has no value and is null ( depend on parameter's type ex if it's string , value will be string and if it's int , value will be zero ) here is server and client code:

[Code]....

there was server and cliend ( proxy class code ) but when I run it and trace in server side always parameter that I send to it has no value.

View 1 Replies

AJAX :: How To Get Parameter From Browser In WCF Web Service

Jun 24, 2010

I am new to WCF. I am tring to use extjs grid in my asp.net application. this grid will pass two parameters to my WCF for paging purpose.

My problem is that I could not read those two parameters from my WCF service.

This is my WCF:

[Code]....

In Firebug i see my extjs control post this:

Parametersapplication/x-www-form-urlencoded

View 2 Replies

AJAX :: Send A Parameter With In DataNavigateUrlFormatString?

Aug 9, 2010

I have two pages: Default.aspx and Edit.aspx.In Default.aspx, there is a tabcontainer control and there are 5 tabs in it. In each of these tabs, there is a gridview. And in each grid view there is a hyperlinkfield field called "Edit". I want that when a user clicks the "edit ", the page will redirect to Edit.aspx page with the current activetabindex of the 5. How do I write the DataNavigateUrlFormatString

View 7 Replies

MVC :: OnComplete Ajax.ActionLink Parameter Not Json In MVC 3?

Jan 27, 2011

I posted this on Stack overflow [URL] but have not had a solution, just completely different way of doing it without using the Ajax.* helpers so I'm wondering if anyone has an Ajax.* solution here?I'm using MVC 3. I have a method on the controller that returns a Json object, according to this question it should be returned to me as Json, but I am finding that is not the case[URL]
here's the code that I have:

[Code]....
And the controller:
[Code]....
The first message box displays the response text which is:{"Success":True, "objectId":"testing"}
the second message box displays undefinedSo it is coming back to the client correctly, I'm just not sure how to get it out?...Stefan

View 3 Replies

AJAX :: Recover Parameter In Callback Function

Jan 15, 2011

I'm using ajax to call a webmethod from javascript. The call is successfully made to the webmethod but I'm not able to access the parameters I passed to the webmethod inside of the "OnSucceeded" callback method. I need access to those params because I need to perform more tasks on the client side when the webmethod returns. I'm assuming that the params are returned inside "usercontext", but the value of that param is "null" How can I have access to those params?

Here my sample code:

function OnSucceeded(result, usercontext , methodName)
{
alert( result + ' The value of usercontext is: ' + usercontext);
}
function OnFailed(error, userContext, methodName)
{
alert('Attempt to delete semantic attribute from page failed!');
}
function deleteSemanticAttribute()
{
var username = 'xxxxxx';
var password = 'yyyyyy'
PageMethods.GetMyData(username, password, OnSucceeded,OnFailed);
}
[WebMethod]
public static string GetMyData(string username, string password)
{
return "This is my test application!";
}

View 2 Replies

AJAX :: Pass Two Parameter In Autocomplete Extender?

Jun 15, 2010

i need to pass two parameter in a autocomplete extender.below is my code and here i pass one parameter for autocomplete extender in web service.

[Code]....

here i pass a parameter :prefixtext.but in this query i need to pass one more parameter.i.e in that query one more condition i need like finanicial year. like where upper(reg_no) like @prefix and adm_fnyr=@fnyr.

so how can i pass and execute like this.i mean i need those reg_no which not in hreadmission table in same finanical year.

View 3 Replies

AJAX :: ContextKey Parameter Not Getting Passed To Web Service?

Jul 1, 2010

I am trying to use the Slideshowexternder control with a contextKey that I've set from a query string. I set the contextKey in the default.aspx.vb Page_Load as I've read in other posts, but I am still getting an error:

The server method 'GetSlides' failed with the following error: System.InvalidOperationException -- Invalid webservice call, missing vaule for parameter: 'ContextKey'

[Code]....

View 1 Replies

MVC :: How To Send Parameter In Query String On Ajax Call

Oct 8, 2010

I want to send selected page value on querystring while navigating through paging. URL that is generating on paging are like this

[Code]....

View 1 Replies

AJAX :: Invalid Web Service Call, Missing Value For Parameter?

Mar 2, 2010

In a web page, I call a web service (located in the sub folder WebServices) with ajax asp.netHere my aspx code:

[Code]....

My web site uses integrated windows authentication and all works fine.However, my web service doesn't need authentication and in order to not have 2 requests (because of http code 401), I've allowed anonymous access on the WebServices folder. Doing this, I get the folowing error message when I call a web method: "Invalid web service call, missing value for parameter: user"When I look at my body request with Web Development Helper, I can see {"user":"toto"}. So, I don't understand why it's not working.Another weird thing: when I run Fiddler2 instead of Web Development Helper, every thing works fine. I turn off Fiddler2, and it doesn't work any more.

View 1 Replies

AJAX :: Unknown Web Method Parameter Name Methodname Shows?

Apr 17, 2010

I'm sure question's similar to this have been asked before, but I looked all over the net, and couldn't find anything that helped me with this situation.I have a asp.net ajax webservice that is called with jQuery, its been returning the error message that I wrote in the subject of this post. This is what I have on the page other then the jQuery: A ScriptManager with a ServiceReferance to the asmx page (other then that I also have a url locator in the jQuery ajax request code). A UpdatePanel that contains a div where the processed/formatted resul

View 5 Replies

AJAX :: Pass Parameter And Trigger UpdatePanel Update?

Feb 22, 2010

I need to render a chart control inside UpdatePanel, I have done this part.

The difficult part is that now I need to pass parameter/parameters to server side and grab it in code-behind

so that I can use this information to render the chart.

The parameter/parameters can only be grab in client side by javascript since it is jQuery.data().

I am trying to work around this by saving it to a hidden field, that is not neat though.

View 4 Replies

AJAX :: Send A Parameter Value To A Datasource Within An Accordion Panel?

Oct 11, 2010

i have an accordion panel that is loading its values from a datasource, which is working fine. let's say it loads the 50 states from the states table. now inside each accordion panel, when expanded, i want to load a gridview with details of that specific state. also, i want to pull all the cities into another gridview from the cities table with stateID=@stateID.

i know this should be simple, but how do i pass the value of the stateID to the datasource of cities gridview? what is the syntax?

the abbreviated code i have so far is:

<cc1:Accordion ID="Accordion1" runat="server" DataSourceID="StatesDataSource" >
<HeaderTemplate >
<asp:Literal ID="ltrHeader" runat="server" Text='<%# Eval("name") %>'></asp:Literal>
</HeaderTemplate>

[Code]....

View 1 Replies

SQL Reporting :: MDX Query Parameter From SSRS / Setup @from And @to As Parameter But Not Working?

Aug 21, 2010

I've a MDX Query that has where clause as shown below.I'm designing report using SSRS 2008. How can i pass date as parameter? I tried to setup @from and @to as parameter but not working?

WHERE ( {[Date Central].[Calendar Date].[2010-04-01 00:00:00]:[Date Central].[Calendar Date].[2010-08-30 00:00:00]} )

need it to work as
WHERE ( {[Date Central].[Calendar Date].[@From]:[Date Central].[Calendar Date].[@To]} )

View 1 Replies

Gridview SQL Parameter Null From Javascript / Ajax Populated Dropdownlist

Sep 7, 2010

My issue is similar to [URL] how-to-use-the-value-of-a-selected-value-from-a-dropdownlist-populated-with-ajax but I am using ASP.NET, not PHP. I have a dropdownlist that is populated by another dropdownlist's current value through ajax. So if DDL A is 'NY', DDL B is populated with different data relating to 'NY'. I need that data to be posted back to the server because this affects an SQLDataSource parameter. However, as far as I can tell, the value is always null after postback resulting in the gridview to be empty.

View 1 Replies

Cleaning Strings Before Passing To JQuery Ajax Data Parameter?

Aug 2, 2010

On using jQuery ajax on ASP.Net, we are required to pass the DATA through a string-ed json on the parameters needed. My only concern with this is with strings that has single & double quotes. I tried doing a replace on these and insert escape characters but unfortunately it just doesn't work.

UPDATE

var relativeName = $('#<%= txtRelativeName.ClientID %>').val().replace("'", "'");
$.ajax({ data: "{ relativeName: '" + relativeName + "'" });

View 2 Replies

AJAX :: AutoCompete Extender Calls Web Method (in Webservice) That Have Zero Parameter?

Jun 11, 2010

I have AutocompeteExtender control in my page.it calls web method (in webservice) that have no parameter I have two web methods in webservice Method 1Geist(string PreText, int Count){....}Method 2GetList(){.......}ethod 2 calls.I want to call method 1.

View 3 Replies

MVC :: Reporting Componet Is Best With Ajax Filtering As A Parameter Other Than SSRS 2008

Mar 16, 2011

I am in a situation where i need to reserach on a reporting tool, Other than SSRS for a good interface, cool features like having parameters with AJAX like intellesence. Please advice on the toold that are available currently that could be available and worked with an MVC .net application.

the features i am looking for in a report are:

Ajax intellesence when i search the Student name...

interactive Sorting

Graphs, Pie, maps

Either or parameter passing into the report, with SSR we have to provde all the parameters or it wouldnt let us run the report

Dashboard reports......

View 1 Replies

AJAX :: Pass Session Value As Parameter To AutoComplete Extender Control

May 23, 2013

I followed below article [URL] .....

But I want to pass the value which i stored in my "int ID"  instead of dropdown selected, I am getting this error "Newline in constant"

function SetContextKey()
{
$find('<%=AutoCompleteExtender1.ClientID>%').set_contextKey($get("<%=ID.ClientID %>").value);
}

View 1 Replies

SQL Reporting :: Change Parameter Property After Selecting Another Parameter?

Oct 19, 2010

Is it possible to change a parameter's property after the uer has made a selection or filled in another parameter field? I'm using VS2005

Case:

- 3 parameter fields; Country,Station,Carrier all three are textfields and are allowed to stay 'blank'.

- When the user enters a Country-code in the 'Country' parameter field, the 'Carrier' parameter should become a required field.

I did some searching on the net, but haven't found the solution. I started to wonder if it's actually possible?

View 6 Replies







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