473,563 Members | 2,504 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Enterprise Library and ASP.NET AJAX

Hi misters,

I have an application web ASP.NET 2.0 using ASP.NET AJAX and Ajax Control
Toolkit. Too, we have Enterprise Library (Exception Handling, Logging)

We need handles errors of AJAX,

Any code sample for use Enterprise Library (Exception Handling) and ASP.NET
AJAX ?
void ScriptManager1_ AsyncPostBackEr ror(object sender,
AsyncPostBackEr rorEventArgs e)
{
string retError = "Ooops...er ror ocurrido: " +
"\nsender: " +
((System.Web.UI .ScriptManager) (sender)).Async PostBackSourceE lementID +
"\nExceptio n Name: " + e.Exception.Get Type().FullName +
"\nMessage: " + e.Exception.Mes sage;

ScriptManager.G etCurrent(this. Page).AsyncPost BackErrorMessag e =
retError;
bool rethrow = ExceptionPolicy .HandleExceptio n(exception,
TINSA.Servicios .Base.Excepcion es.Politicas.Po liticasUtil.NOM BRE_POLITICA_PR ESENTACION_WEB) ;

if (rethrow)
{
//throw exception;
}

}

I define my Policy like this:

Exception IExceptionHandl er.HandleExcept ion(Exception exception, Guid
handlingInstanc eId)
{

HttpContext contexto = HttpContext.Cur rent;
if (contexto != null)
{
Page page = contexto.Handle r as Page;
if (page != null)
{
// do something
RegisterStartup Script(page, "jsPoliticaExce pcionIU",
"alert('Err or Politica IU: " + exception.Messa ge.Replace("'", " ") + "');");
}
}
return exception;
}
Is it possible register script in my policy and the
AsyncPostBackEr rorMessage message not appears (AJAX Client not show the
default alert with the AsyncPostBackEr rorMessage value, like I cancel show
that message) ?.
Any help will be appreciated, and I'll be very grateful. Thanks in advance.
Greetings, regards.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

Nov 14 '07 #1
0 1001

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
4082
by: poifull | last post by:
Is anyone using the Microsoft Enterprise Library? If yes, do you like it or not? Any feedback will be appreciated.
3
3948
by: veera sekhar kota | last post by:
hi, im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked me to implement DAAB in enterprise library. I said DAAB 2.0 having more performance(data accessing) compare to enterprise library DAAB. And we not...
0
1563
by: veera sekhar kota | last post by:
im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked me to implement DAAB in enterprise library. I said DAAB 2.0 having more performance(data accessing) compare to enterprise library DAAB. And we not using...
0
1433
by: veera sekhar kota | last post by:
im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked me to implement DAAB in enterprise library. I said DAAB 2.0 having more performance(data accessing) compare to enterprise library DAAB. And we not using...
2
2082
by: bjhogan | last post by:
Hi, I have built an c# asp.net application on my laptop, it uses the Enterprise Library blocks - Data Access Application Block, Configuration Application Block. I now want to deploy my application on a server. It does not have the Enterprise Library installed.
7
1895
by: galico | last post by:
Hi All, We are having a very strange problem with the above. We have designed an application in ASP.NET 2.0 that uses the enterprise library data application blocks amongst others. We seem to be maxing out the number of connections allowed to the sql server 7 server after running a few large queries through the application? There are less...
7
2694
by: rockdale | last post by:
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to integrate it into my asp.net application. As i am going to connect to mySQL database, I need to include the source code in my project so that I can debug better. But I all those examples I found are reference the compiled dll only. What are the steps to include the...
2
4247
by: Nathan Sokalski | last post by:
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously functioning as desired when I test it on my machine using Visual Studio 2005. From what I have determined, the files I am forgetting are the JavaScript...
1
1555
by: GaryDean | last post by:
I now have installed (from the same install) Enterprise Library - January 2006 and Enterprise Library - June 2005. The install for these two was called Enterprise Library for .Net 2.0. (not Enterprise Library 2.0). I then discovered that there is an Enterprise Library 3.1 - May 2007. So I want to install that because it is the latest. ...
0
7658
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7631
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7943
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5479
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5204
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2077
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
912
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.