473,837 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Read <customErrors > element via VB.NET Code?

Hi. Is it programatically possible in VB.NET to read the contents of
web.config's <customErrorsel ement? I looked at using
ConfigurationSe ttings.AppSetti ngs, but that doesn't work.

I need to read the value of redirect from the error statusCode 404. My
web.config looks like this:
<customErrors mode="RemoteOnl y" defaultRedirect ="Error.aspx ">
<error statusCode="404 " redirect="Error 404.aspx" />
</customErrors>

Thanks!
Feb 8 '07 #1
9 4276
Hi Mike,

using System.Web.Conf iguration;

// pass application virtual directory name
Configuration configuration =
WebConfiguratio nManager.OpenWe bConfiguration( "/TestWebsite");
CustomErrorsSec tion section =
(CustomErrorsSe ction)configura tion.GetSection ("system.web/customErrors");

foreach (CustomError error in section.Errors)
{
Response.Write( error.StatusCod e);
}
--
Milosz
"Mike" wrote:
Hi. Is it programatically possible in VB.NET to read the contents of
web.config's <customErrorsel ement? I looked at using
ConfigurationSe ttings.AppSetti ngs, but that doesn't work.

I need to read the value of redirect from the error statusCode 404. My
web.config looks like this:
<customErrors mode="RemoteOnl y" defaultRedirect ="Error.aspx ">
<error statusCode="404 " redirect="Error 404.aspx" />
</customErrors>

Thanks!
Feb 8 '07 #2
re:
Hi. Is it programatically possible in VB.NET to read the contents of web.config's <customErrorsel ement?
Sure it's possible.

See it working at : http://asp.net.do/test/readCustomErrors.aspx

Here's the source for that sample I wrote :

readCustomError s.aspx:
-----------------------------------

<%@ Page Language="VB" %>
<%@ Import Namespace="Syst em.Web.Configur ation" %>
<%@ Import Namespace="Syst em.Configuratio n" %>

<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArg s)

' Set the root path of the Web application that contains the Web.config file that you want to access.

Dim configuration As System.Configur ation.Configura tion = WebConfiguratio nManager.OpenWe bConfiguration( "/test")

' Get the section.

Dim customErrorsSec tion As CustomErrorsSec tion = CType(configura tion.GetSection ("system.web/customErrors"), CustomErrorsSec tion)

' Read the <customErrorsse ction mode.

Dim currentMode As CustomErrorsMod e = customErrorsSec tion.Mode

' Display the <customErrorsin formation.

ConfigId.Text = currentMode.ToS tring()

End Sub
</script>

<html >
<head>
<title>Read customErrors Configuration Setting</title>
</head>
<body>
<p>
This page displays the <b>value</bof the <b>customErrors </bsection of web.config.
</p>
<h3>Value:</h3>
<p>
<asp:Label ID="ConfigId" BackColor="#dcd cdc" BorderWidth="1" runat="Server" /></p>
</body>
</html>
-----------

Enjoy!

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaƱol : http://asp.net.do/foros/
=============== =============== =====
"Mike" <Mi**@discussio ns.microsoft.co mwrote in message news:5B******** *************** ***********@mic rosoft.com...
Hi. Is it programatically possible in VB.NET to read the contents of
web.config's <customErrorsel ement? I looked at using
ConfigurationSe ttings.AppSetti ngs, but that doesn't work.

I need to read the value of redirect from the error statusCode 404. My
web.config looks like this:
<customErrors mode="RemoteOnl y" defaultRedirect ="Error.aspx ">
<error statusCode="404 " redirect="Error 404.aspx" />
</customErrors>

Thanks!
Feb 8 '07 #3
That's C#, the OP wants VB.NET...

;-)

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espańol : http://asp.net.do/foros/
=============== =============== =====
"Milosz Skalecki [MCAD]" <mi*****@DONTLI KESPAMwp.plwrot e in message
news:15******** *************** ***********@mic rosoft.com...
Hi Mike,

using System.Web.Conf iguration;

// pass application virtual directory name
Configuration configuration =
WebConfiguratio nManager.OpenWe bConfiguration( "/TestWebsite");
CustomErrorsSec tion section =
(CustomErrorsSe ction)configura tion.GetSection ("system.web/customErrors");

foreach (CustomError error in section.Errors)
{
Response.Write( error.StatusCod e);
}
--
Milosz
"Mike" wrote:
>Hi. Is it programatically possible in VB.NET to read the contents of
web.config's <customErrorsel ement? I looked at using
ConfigurationS ettings.AppSett ings, but that doesn't work.

I need to read the value of redirect from the error statusCode 404. My
web.config looks like this:
<customError s mode="RemoteOnl y" defaultRedirect ="Error.aspx ">
<error statusCode="404 " redirect="Error 404.aspx" />
</customErrors>

Thanks!

Feb 8 '07 #4
I just realized you also wanted the defaultRedirect value.

Here's the modified code :
---------------------------------------
<%@ Page Language="VB" %>

<%@ Import Namespace="Syst em.Web.Configur ation" %>
<%@ Import Namespace="Syst em.Configuratio n" %>

<script runat="server">

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArg s)

' Set the root path of the Web application that contains the Web.config file that you want to access.
Dim configuration As System.Configur ation.Configura tion = WebConfiguratio nManager.OpenWe bConfiguration( "/YourAppName")

' Get the section.
Dim customErrorsSec tion As CustomErrorsSec tion = CType(configura tion.GetSection ("system.web/customErrors"), CustomErrorsSec tion)

' Read the <customErrorsse ction mode.

Dim currentMode As CustomErrorsMod e = customErrorsSec tion.Mode
Dim currentDefaultR edirect As String = customErrorsSec tion.defaultRed irect

' Display the <customErrorsan d defaultRedirect page information.

ConfigId.Text = "customErro rs is: " & currentMode.ToS tring() & ", and the defaultRedirect page is : " & currentDefaultR edirect

End Sub
</script>

<html >
<head>
<title>Read customErrors Configuration Setting</title>
</head>
<body>

<p>
This page displays the <b>values</bof the <b>customErro rs and defaultRedirect </bsections of web.config.
</p>
<h3>Values:</h3>
<p>
<asp:Label ID="ConfigId" BackColor="#dcd cdc" BorderWidth="1" runat="Server" /></p>
</body>
</html>
-------------

The modified sample is at : http://asp.net.do/test/readCustomErrors.aspx

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaƱol : http://asp.net.do/foros/
=============== =============== =====
"Juan T. Llibre" <no***********@ nowhere.comwrot e in message news:ua******** ******@TK2MSFTN GP03.phx.gbl...
re:
Hi. Is it programatically possible in VB.NET to read the contents of web.config's <customErrorsel ement?
Sure it's possible.

See it working at : http://asp.net.do/test/readCustomErrors.aspx

Here's the source for that sample I wrote :

readCustomError s.aspx:
-----------------------------------

<%@ Page Language="VB" %>
<%@ Import Namespace="Syst em.Web.Configur ation" %>
<%@ Import Namespace="Syst em.Configuratio n" %>

<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArg s)

' Set the root path of the Web application that contains the Web.config file that you want to access.

Dim configuration As System.Configur ation.Configura tion = WebConfiguratio nManager.OpenWe bConfiguration( "/test")

' Get the section.

Dim customErrorsSec tion As CustomErrorsSec tion = CType(configura tion.GetSection ("system.web/customErrors"), CustomErrorsSec tion)

' Read the <customErrorsse ction mode.

Dim currentMode As CustomErrorsMod e = customErrorsSec tion.Mode

' Display the <customErrorsin formation.

ConfigId.Text = currentMode.ToS tring()

End Sub
</script>

<html >
<head>
<title>Read customErrors Configuration Setting</title>
</head>
<body>
<p>
This page displays the <b>value</bof the <b>customErrors </bsection of web.config.
</p>
<h3>Value:</h3>
<p>
<asp:Label ID="ConfigId" BackColor="#dcd cdc" BorderWidth="1" runat="Server" /></p>
</body>
</html>
-----------

Enjoy!

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaƱol : http://asp.net.do/foros/
=============== =============== =====
"Mike" <Mi**@discussio ns.microsoft.co mwrote in message news:5B******** *************** ***********@mic rosoft.com...
Hi. Is it programatically possible in VB.NET to read the contents of
web.config's <customErrorsel ement? I looked at using
ConfigurationSe ttings.AppSetti ngs, but that doesn't work.

I need to read the value of redirect from the error statusCode 404. My
web.config looks like this:
<customErrors mode="RemoteOnl y" defaultRedirect ="Error.aspx ">
<error statusCode="404 " redirect="Error 404.aspx" />
</customErrors>

Thanks!
Feb 8 '07 #5
I know, he should be fine. Anyway:

imports System.Web.Conf iguration

'pass application virtual directory name
Dim configuration As Configuration =
WebConfiguratio nManager.OpenWe bConfiguration( "/TestWebsite")
Dim section As CustomErrorsSec tion =
CType(configura tion.GetSection ("system.web/customErrors"),
CustomErrorsSec tion)

For Each err As CustomError In section.Errors
Response.Write( err.StatusCode)
Next
--
Milosz
"Juan T. Llibre" wrote:
That's C#, the OP wants VB.NET...

;-)

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaƱol : http://asp.net.do/foros/
=============== =============== =====
"Milosz Skalecki [MCAD]" <mi*****@DONTLI KESPAMwp.plwrot e in message
news:15******** *************** ***********@mic rosoft.com...
Hi Mike,

using System.Web.Conf iguration;

// pass application virtual directory name
Configuration configuration =
WebConfiguratio nManager.OpenWe bConfiguration( "/TestWebsite");
CustomErrorsSec tion section =
(CustomErrorsSe ction)configura tion.GetSection ("system.web/customErrors");

foreach (CustomError error in section.Errors)
{
Response.Write( error.StatusCod e);
}
--
Milosz

"Mike" wrote:
Hi. Is it programatically possible in VB.NET to read the contents of
web.config's <customErrorsel ement? I looked at using
ConfigurationSe ttings.AppSetti ngs, but that doesn't work.

I need to read the value of redirect from the error statusCode 404. My
web.config looks like this:
<customErrors mode="RemoteOnl y" defaultRedirect ="Error.aspx ">
<error statusCode="404 " redirect="Error 404.aspx" />
</customErrors>

Thanks!


Feb 8 '07 #6
Hmmm...

I don't program the statusCode choices in web.config.

I program the statusCode errors in the defaultRedirect page:

errors.aspx:
----------------
<html>
<script language="VB" runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) _
Handles MyBase.Load
Dim errMessage As String = ""
Dim appException As System.Exceptio n = Server.GetLastE rror()
If (TypeOf (appException) Is HttpException) Then
Dim checkException As HttpException = CType(appExcept ion, HttpException)
Select Case checkException. GetHttpCode
Case 400
errMessage &= "Bad request. The file size is too large."
Case 401
errMessage &= "You are not authorized to view this page."
Case 403
errMessage &= "You are not allowed to view that page."
Case 404
errMessage &= "The page you have requested can't be found."
Case 408
errMessage &= "The request has timed out."
Case 500
errMessage &= "The server can't fulfill your request."
Case Else
errMessage &= "The server has experienced an error."
End Select
Else
errMessage &= "The following error occurred<BR>" & appException.To String
End If

ErrorMessage.Te xt = errMessage & "<BR>We're sorry for the inconvenience."
Server.ClearErr or()
End Sub
</script>
<body>
<hr>
<asp:label id="ErrorMessag e" font-size="12" font-bold="true" runat=server/>
<hr>
<p>Return to <a href="http://asp.net.do/"asp.net.do entry page </a>
</body>
</html>
---------------

In your view, is redirecting to multiple error pages more efficient than
redirecting to a single error page which catches all the possible errors ?

If you think so, why ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espańol : http://asp.net.do/foros/
=============== =============== =====
"Milosz Skalecki [MCAD]" <mi*****@DONTLI KESPAMwp.plwrot e in message
news:69******** *************** ***********@mic rosoft.com...
>I know, he should be fine. Anyway:

imports System.Web.Conf iguration

'pass application virtual directory name
Dim configuration As Configuration =
WebConfiguratio nManager.OpenWe bConfiguration( "/TestWebsite")
Dim section As CustomErrorsSec tion =
CType(configura tion.GetSection ("system.web/customErrors"),
CustomErrorsSec tion)

For Each err As CustomError In section.Errors
Response.Write( err.StatusCode)
Next
--
Milosz
"Juan T. Llibre" wrote:
>That's C#, the OP wants VB.NET...

;-)

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espańol : http://asp.net.do/foros/
============== =============== ======
"Milosz Skalecki [MCAD]" <mi*****@DONTLI KESPAMwp.plwrot e in message
news:15******* *************** ************@mi crosoft.com...
Hi Mike,

using System.Web.Conf iguration;

// pass application virtual directory name
Configuration configuration =
WebConfiguratio nManager.OpenWe bConfiguration( "/TestWebsite");
CustomErrorsSec tion section =
(CustomErrorsSe ction)configura tion.GetSection ("system.web/customErrors");

foreach (CustomError error in section.Errors)
{
Response.Write( error.StatusCod e);
}
--
Milosz

"Mike" wrote:
>Hi. Is it programatically possible in VB.NET to read the contents of
web.config's <customErrorsel ement? I looked at using
ConfigurationS ettings.AppSett ings, but that doesn't work.

I need to read the value of redirect from the error statusCode 404. My
web.config looks like this:
<customError s mode="RemoteOnl y" defaultRedirect ="Error.aspx ">
<error statusCode="404 " redirect="Error 404.aspx" />
</customErrors>

Thanks!



Feb 8 '07 #7
"Juan T. Llibre" <no***********@ nowhere.comwrot e in message
news:uM******** ******@TK2MSFTN GP02.phx.gbl...
I don't program the statusCode choices in web.config.

I program the statusCode errors in the defaultRedirect page:
Me too.
Feb 8 '07 #8
It was an example how to access each item properties!!! :)
--
Milosz
"Mark Rae" wrote:
"Juan T. Llibre" <no***********@ nowhere.comwrot e in message
news:uM******** ******@TK2MSFTN GP02.phx.gbl...
I don't program the statusCode choices in web.config.

I program the statusCode errors in the defaultRedirect page:

Me too.
Feb 8 '07 #9
Thank you to everyone who contributed!

Juan, Thank you for providing a perfect example & sample code of what I'm
looking for!

Thanks all!

"Juan T. Llibre" wrote:
I just realized you also wanted the defaultRedirect value.

Here's the modified code :
---------------------------------------
<%@ Page Language="VB" %>

<%@ Import Namespace="Syst em.Web.Configur ation" %>
<%@ Import Namespace="Syst em.Configuratio n" %>

<script runat="server">

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArg s)

' Set the root path of the Web application that contains the Web.config file that you want to access.
Dim configuration As System.Configur ation.Configura tion = WebConfiguratio nManager.OpenWe bConfiguration( "/YourAppName")

' Get the section.
Dim customErrorsSec tion As CustomErrorsSec tion = CType(configura tion.GetSection ("system.web/customErrors"), CustomErrorsSec tion)

' Read the <customErrorsse ction mode.

Dim currentMode As CustomErrorsMod e = customErrorsSec tion.Mode
Dim currentDefaultR edirect As String = customErrorsSec tion.defaultRed irect

' Display the <customErrorsan d defaultRedirect page information.

ConfigId.Text = "customErro rs is: " & currentMode.ToS tring() & ", and the defaultRedirect page is : " & currentDefaultR edirect

End Sub
</script>

<html >
<head>
<title>Read customErrors Configuration Setting</title>
</head>
<body>

<p>
This page displays the <b>values</bof the <b>customErro rs and defaultRedirect </bsections of web.config.
</p>
<h3>Values:</h3>
<p>
<asp:Label ID="ConfigId" BackColor="#dcd cdc" BorderWidth="1" runat="Server" /></p>
</body>
</html>
-------------

The modified sample is at : http://asp.net.do/test/readCustomErrors.aspx

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaƱol : http://asp.net.do/foros/
=============== =============== =====
"Juan T. Llibre" <no***********@ nowhere.comwrot e in message news:ua******** ******@TK2MSFTN GP03.phx.gbl...
re:
Hi. Is it programatically possible in VB.NET to read the contents of web.config's <customErrorsel ement?

Sure it's possible.

See it working at : http://asp.net.do/test/readCustomErrors.aspx

Here's the source for that sample I wrote :

readCustomError s.aspx:
-----------------------------------

<%@ Page Language="VB" %>
<%@ Import Namespace="Syst em.Web.Configur ation" %>
<%@ Import Namespace="Syst em.Configuratio n" %>

<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArg s)

' Set the root path of the Web application that contains the Web.config file that you want to access.

Dim configuration As System.Configur ation.Configura tion = WebConfiguratio nManager.OpenWe bConfiguration( "/test")

' Get the section.

Dim customErrorsSec tion As CustomErrorsSec tion = CType(configura tion.GetSection ("system.web/customErrors"), CustomErrorsSec tion)

' Read the <customErrorsse ction mode.

Dim currentMode As CustomErrorsMod e = customErrorsSec tion.Mode

' Display the <customErrorsin formation.

ConfigId.Text = currentMode.ToS tring()

End Sub
</script>

<html >
<head>
<title>Read customErrors Configuration Setting</title>
</head>
<body>
<p>
This page displays the <b>value</bof the <b>customErrors </bsection of web.config.
</p>
<h3>Value:</h3>
<p>
<asp:Label ID="ConfigId" BackColor="#dcd cdc" BorderWidth="1" runat="Server" /></p>
</body>
</html>
-----------

Enjoy!

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaƱol : http://asp.net.do/foros/
=============== =============== =====
"Mike" <Mi**@discussio ns.microsoft.co mwrote in message news:5B******** *************** ***********@mic rosoft.com...
Hi. Is it programatically possible in VB.NET to read the contents of
web.config's <customErrorsel ement? I looked at using
ConfigurationSe ttings.AppSetti ngs, but that doesn't work.

I need to read the value of redirect from the error statusCode 404. My
web.config looks like this:
<customErrors mode="RemoteOnl y" defaultRedirect ="Error.aspx ">
<error statusCode="404 " redirect="Error 404.aspx" />
</customErrors>

Thanks!
Feb 8 '07 #10

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

Similar topics

2
1482
by: Maureen | last post by:
Hi: Our ASP.NET webapplication works on our development webserver, but fails on our production webserver - I cannot get any detailed error information: -It is an application -Mode in <customErrors> is set to Off (case is correct) -Cannot get any detailed error messages -Both dev and prod servers appear to be configured identically
1
4792
by: Menno Abbink | last post by:
Hey All, I'm developing a new website and I want the customer to be able to se my work in progress so I have set up a server behind my ADSL-router. The server is using W2003. I've created a new website and uploaded some files to test the site. Anonymous access isn't allowed. After I've logged on to the site I see this message:
1
2467
by: Savas Ates | last post by:
I have a web application It works well in my local fodler.. When i upload it to my web server i got To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
5
39038
by: Savas Ates | last post by:
I have a web application It works well in my local folder.. When i upload it to my web server i got To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
1
1347
by: VB Programmer | last post by:
My 2.0 webapp works great. I added a profile section and all of a sudden I get a slew of "Could not find schema information for the element...." errors/messages. Any ideas why? Here's part of my web.config.... : <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" />
1
1089
by: Jayyde | last post by:
New to this so please bear with me... I set up the: <customErrors mode="On" defaultRedirect="~/Unavailable.aspx"> </customErrors> And what it'll do is redirect to the Unavailable.aspx page, but then bring
3
2158
by: =?Utf-8?B?bmt3?= | last post by:
I want to use <customErrors mode="Off"/in the web.config file; but I want to have custom error message for database time out error message. Is it possible?
1
1096
by: viveknaik17 | last post by:
When i upload aspx pages, it gives error of type.. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". <!-- Web.Config Configuration File --> <configuration> <system.web>
0
9833
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9682
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10867
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10562
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10617
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10263
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7803
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6989
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5666
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

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.