Showing posts with label everybody. Show all posts
Showing posts with label everybody. Show all posts

Monday, March 26, 2012

Access ClearMaskOnLostfocus value in Javascript

Hi, everybody

I want to access ClearMaskOnLostfocus value in javascript, is it possile??

Thanks in advance...

Type.registerNamespace('AjaxControlToolkit');

AjaxControlToolkit.MaskedEditBehavior =function(element)

{

// **************************************************

// Properties

// **************************************************

this._ClearMaskOnLostfocus =true;

Yes, you can set this property via javascript.

1. Get a reference to the component via $find method

2. Call set_ClearMaskOnLostFocus method on this component

For instance, say you have a MaskedEditExtender as following:

<ajaxToolkit:MaskedEditExtender ID="meeGrossSalesNCRPerStop"BehaviorID="mee" .... />


function change()
{
var mee = $find("mee");
mee. set_ClearMaskOnLostFocus(false);
}

Hope this helps.

Saturday, March 24, 2012

Accents with ASP.NET AJAX

Hi Everybody, I'm starting study ASP.Net AJAX, and i have a problem!

I create an application with DataBase and GridView, and accents in mine language is not functioning! (portuguese-Brazil) !!!!

What do i must do?

Sorry, I'm Brasilian, My english isn't good!!!

hello.

well, you should take a look at the globalization element:

http://msdn2.microsoft.com/en-us/library/hy4kkhe0.aspx


I tried this, but it does not function exactly, places invalid characters!!!

Tanks

(Portugues)

Eu ja tentei isso, mais ainda n?o funciona! Ele coloca caracteres invalidos!!!

Obrigado


Hi,

In the gridview, there's a property calledHtmlEncode which allows me todisplay the text as I whished, even if the thare accents (I'm doing it with french), and also I have declared in my globalization enviroment the french (<globalizationrequestEncoding="utf-8"responseEncoding="utf-8"culture="fr-FR"/>)... I suppose that should be enough...

I once had a similar issue during display of some text from the database and I was able to solved with the statement:

Server.HtmlDecode(MyString)

About Sys.WebForms.PageRequestManagerParserErrorException error

Hello everybody,

My ajax powered web site throws an error when pressing a button or linkbutton inside an UpdatePanel.

I've searched for a solution. All of the blogposts, solutions etc is about the "common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled." suggestion written in the error text itself.

But in my scenario, only IE6 (and may be below) users see this error. I am using IE7, and my site works like a charm. (all my friends using IE7 doesn't have problems with the site)

I've searched my code for response.write stuff but there isn't any. I've removed some custom controls (msn like popup win, flash container controls etc.) but it's the same with IE6 users. The error is :

--------
Microsoft Internet Explorer
--------
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

Details: Error parsing near 'eTitle||Favorilerim|

0

'.
--------
Tamam (OK)
--------

Anybody have suggestions?

Hi bsarica,

Maybe this article is useful for you:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312496

Regards,


I forgot to mention smthng.

It is not working on firefox too.


Any other suggestions? :(


I had a very similar error when I encountered code where the asynchronous call back was making a call to Server.Transfer(). I'm not sure whether or not this helps you or not, but doing a Server.Redirect() fixed the problem for me.

About Rating Control , palcing in repeater control

hello everybody,

i am doing a proj. like Yahoo Questions and Answers. in this my req.is :; placing a AJAX Rating Control within a repeater Control, to rate each answer. Suggest me how 2 do this. it's very urgent...

Hi,

Please refer to this post: http://forums.asp.net/p/1131703/1801713.aspx

The sample I posted has a Rating control for each row.

Hope this helps.