I want to suppress blank lines in an address on a web page.
At the moment, I am displaying the data like this:
<asp:Label ID="Address1Lab el" runat="server" Text='<%#
Eval("Address1" )%>'></asp:Label><br />
<asp:Label ID="Address2Lab el" runat="server" Text='<%#
Eval("Address2" )%>'></asp:Label><br />
<asp:Label ID="Address3Lab el" runat="server" Text='<%# Eval("Address3" )
%>'></asp:Label><br />
<asp:Label ID="TownLabel" runat="server" Text='<%#
Eval("Town")%>' ></asp:Label><br />
<asp:Label ID="LocationLab el" runat="server" Text='<%# Eval("Location" )
%>'></asp:Label><br />
<asp:Label ID="PostcodeLab el" runat="server" Text='<%# Eval("Postcode" )
%>'></asp:Label><br />
<asp:Label ID="TelephoneLa bel" runat="server" Text='<%# Eval("Telephone ")
%>'></asp:Label><br />
<asp:Label ID="FaxLabel" runat="server" Text='<%#
Eval("Fax")%>'> </asp:Label><br />
<asp:Label ID="WebLabel" runat="server" Text='<%#
Eval("Web")%>'> </asp:Label><br />
This of course creates blank lines on the page if a line is empty.
I created a method that checks to see if there was anything in the field and
then builds a string including the field, or excluding it depending on the
result:
public static string FormatAddress(s tring ad1, string ad2, string ad3,
string town, string county, string post)
{
string FormattedAddres s ="";
if (ad1 != "")
{ FormattedAddres s = ad1 + "<br />"; }
if (ad2 != "")
{ FormattedAddres s += ad2 + "<br />"; }
if (ad3 != "")
{ FormattedAddres s += ad3 + "<br />"; }
if (town != "")
{ FormattedAddres s += town + "<br />"; }
if (county != "")
{ FormattedAddres s += county + "<br />"; }
if (post != "")
{ FormattedAddres s += post + "<br />"; }
return FormattedAddres s;
}
Then I tried to pass this into it:
<asp:Label ID="FormatAddre ssLabel" runat="server" Text='<%#
MyUtilityClass. FormatAddress(( string)Eval("Ad dress1"),
(string)Eval("A ddress2"), (string)Eval("A ddress3")...%>' ></asp:Label>
but it fell over with an "Unable to cast object of type 'System.DBNull' to
type 'System.String' " exception. I realise what this means, in that at
least one of the fields is null, and this type of casting won't work.
Now I'm stuck. Has anyone got any suggestions?
Thanks
Mike 7 1207
Hi,
Mike wrote:
I want to suppress blank lines in an address on a web page.
<snip>
but it fell over with an "Unable to cast object of type 'System.DBNull' to
type 'System.String' " exception. I realise what this means, in that at
least one of the fields is null, and this type of casting won't work.
Now I'm stuck. Has anyone got any suggestions?
Thanks
Mike
You must test the field value against System.DbNull.V alue to check if it
exists in the DB. You must do this *before* you call your method,
because the method expects string parameters. DbNull is not equivalent
to null and can also not be casted to a string.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Thanks Laurent,
I kind of guessed that was what I had to do, but I'm not sure how to
proceed. I'm thinking of scrapping the standalone method, but using
something similar to accomplish this task in the FormView's DataBinding
event to intercept the values coming from the datareader - test whether they
are DBNulls or not, then doing my thing with them. Does this sound
sensible?
"Laurent Bugnion" <ga*********@bl uewin.chwrote in message
news:uM******** ******@TK2MSFTN GP03.phx.gbl...
Hi,
Mike wrote:
>I want to suppress blank lines in an address on a web page.
<snip>
>but it fell over with an "Unable to cast object of type 'System.DBNull' to type 'System.String' " exception. I realise what this means, in that at least one of the fields is null, and this type of casting won't work.
Now I'm stuck. Has anyone got any suggestions?
Thanks
Mike
You must test the field value against System.DbNull.V alue to check if it
exists in the DB. You must do this *before* you call your method, because
the method expects string parameters. DbNull is not equivalent to null and
can also not be casted to a string.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
I've worked this out now. The clue was in the exception message I first
got: "Unable to cast Object...." so I worked out that Eval("SomeValue ")
produces an object.
All I did then was change the method parameters from "string" to "object",
then within the method body, test if the value of <object>.ToStri ng != null.
Works beautifully :-)
Mike
"Mike" <xx*@xxx.xxxwro te in message
news:O3******** *****@TK2MSFTNG P06.phx.gbl...
Thanks Laurent,
I kind of guessed that was what I had to do, but I'm not sure how to
proceed. I'm thinking of scrapping the standalone method, but using
something similar to accomplish this task in the FormView's DataBinding
event to intercept the values coming from the datareader - test whether
they are DBNulls or not, then doing my thing with them. Does this sound
sensible?
"Laurent Bugnion" <ga*********@bl uewin.chwrote in message
news:uM******** ******@TK2MSFTN GP03.phx.gbl...
>Hi,
Mike wrote:
>>I want to suppress blank lines in an address on a web page.
<snip>
>>but it fell over with an "Unable to cast object of type 'System.DBNull' to type 'System.String' " exception. I realise what this means, in that at least one of the fields is null, and this type of casting won't work.
Now I'm stuck. Has anyone got any suggestions?
Thanks
Mike
You must test the field value against System.DbNull.V alue to check if it exists in the DB. You must do this *before* you call your method, because the method expects string parameters. DbNull is not equivalent to null and can also not be casted to a string.
HTH, Laurent -- Laurent Bugnion, GalaSoft Software engineering: http://www.galasoft-LB.ch PhotoAlbum: http://www.galasoft-LB.ch/pictures Support children in Calcutta: http://www.calcutta-espoir.ch
Change
<asp:Label ID="Address1Lab el" runat="server" Text='<%#
Eval("Address1" )%>'></asp:Label><br />
by :
<asp:Label ID="Address1Lab el" runat="server" Text='<%# Eval("Address1" ,
"{0}<br>")% >'></asp:Label>
Repeat this to all of your lines...
It's quite easier that having to test the value...
"Mike" <xx*@xxx.xxxa écrit dans le message de news:
%2************* ***@TK2MSFTNGP0 3.phx.gbl...
>I want to suppress blank lines in an address on a web page.
At the moment, I am displaying the data like this:
<asp:Label ID="Address1Lab el" runat="server" Text='<%#
Eval("Address1" )%>'></asp:Label><br />
<asp:Label ID="Address2Lab el" runat="server" Text='<%#
Eval("Address2" )%>'></asp:Label><br />
<asp:Label ID="Address3Lab el" runat="server" Text='<%# Eval("Address3" )
%>'></asp:Label><br />
<asp:Label ID="TownLabel" runat="server" Text='<%#
Eval("Town")%>' ></asp:Label><br />
<asp:Label ID="LocationLab el" runat="server" Text='<%# Eval("Location" )
%>'></asp:Label><br />
<asp:Label ID="PostcodeLab el" runat="server" Text='<%# Eval("Postcode" )
%>'></asp:Label><br />
<asp:Label ID="TelephoneLa bel" runat="server" Text='<%# Eval("Telephone ")
%>'></asp:Label><br />
<asp:Label ID="FaxLabel" runat="server" Text='<%#
Eval("Fax")%>'> </asp:Label><br />
<asp:Label ID="WebLabel" runat="server" Text='<%#
Eval("Web")%>'> </asp:Label><br />
This of course creates blank lines on the page if a line is empty.
I created a method that checks to see if there was anything in the field
and then builds a string including the field, or excluding it depending on
the result:
public static string FormatAddress(s tring ad1, string ad2, string ad3,
string town, string county, string post)
{
string FormattedAddres s ="";
if (ad1 != "")
{ FormattedAddres s = ad1 + "<br />"; }
if (ad2 != "")
{ FormattedAddres s += ad2 + "<br />"; }
if (ad3 != "")
{ FormattedAddres s += ad3 + "<br />"; }
if (town != "")
{ FormattedAddres s += town + "<br />"; }
if (county != "")
{ FormattedAddres s += county + "<br />"; }
if (post != "")
{ FormattedAddres s += post + "<br />"; }
return FormattedAddres s;
}
Then I tried to pass this into it:
<asp:Label ID="FormatAddre ssLabel" runat="server" Text='<%#
MyUtilityClass. FormatAddress(( string)Eval("Ad dress1"),
(string)Eval("A ddress2"), (string)Eval("A ddress3")...%>' ></asp:Label>
but it fell over with an "Unable to cast object of type 'System.DBNull' to
type 'System.String' " exception. I realise what this means, in that at
least one of the fields is null, and this type of casting won't work.
Now I'm stuck. Has anyone got any suggestions?
Thanks
Mike
Great! Thanks - that's two more things I've learned today!
"Steve B." <st**********@c om.msn_swap_msn _and_comwrote in message
news:uC******** ******@TK2MSFTN GP06.phx.gbl...
Change
<asp:Label ID="Address1Lab el" runat="server" Text='<%#
Eval("Address1" )%>'></asp:Label><br />
by :
<asp:Label ID="Address1Lab el" runat="server" Text='<%# Eval("Address1" ,
"{0}<br>")% >'></asp:Label>
Repeat this to all of your lines...
It's quite easier that having to test the value...
"Mike" <xx*@xxx.xxxa écrit dans le message de news:
%2************* ***@TK2MSFTNGP0 3.phx.gbl...
>>I want to suppress blank lines in an address on a web page.
At the moment, I am displaying the data like this:
<asp:Label ID="Address1Lab el" runat="server" Text='<%# Eval("Address1 ")%>'></asp:Label><br /> <asp:Label ID="Address2Lab el" runat="server" Text='<%# Eval("Address2 ")%>'></asp:Label><br /> <asp:Label ID="Address3Lab el" runat="server" Text='<%# Eval("Address3" ) %>'></asp:Label><br /> <asp:Label ID="TownLabel" runat="server" Text='<%# Eval("Town")%> '></asp:Label><br /> <asp:Label ID="LocationLab el" runat="server" Text='<%# Eval("Location" ) %>'></asp:Label><br /> <asp:Label ID="PostcodeLab el" runat="server" Text='<%# Eval("Postcode" ) %>'></asp:Label><br /> <asp:Label ID="TelephoneLa bel" runat="server" Text='<%# Eval("Telephone ") %>'></asp:Label><br /> <asp:Label ID="FaxLabel" runat="server" Text='<%# Eval("Fax")%>' ></asp:Label><br /> <asp:Label ID="WebLabel" runat="server" Text='<%# Eval("Web")%>' ></asp:Label><br />
This of course creates blank lines on the page if a line is empty.
I created a method that checks to see if there was anything in the field and then builds a string including the field, or excluding it depending on the result:
public static string FormatAddress(s tring ad1, string ad2, string ad3, string town, string county, string post) { string FormattedAddres s =""; if (ad1 != "") { FormattedAddres s = ad1 + "<br />"; } if (ad2 != "") { FormattedAddres s += ad2 + "<br />"; } if (ad3 != "") { FormattedAddres s += ad3 + "<br />"; } if (town != "") { FormattedAddres s += town + "<br />"; } if (county != "") { FormattedAddres s += county + "<br />"; } if (post != "") { FormattedAddres s += post + "<br />"; } return FormattedAddres s; }
Then I tried to pass this into it:
<asp:Label ID="FormatAddre ssLabel" runat="server" Text='<%# MyUtilityClass .FormatAddress( (string)Eval("A ddress1"), (string)Eval(" Address2"), (string)Eval("A ddress3")...%>' ></asp:Label>
but it fell over with an "Unable to cast object of type 'System.DBNull' to type 'System.String' " exception. I realise what this means, in that at least one of the fields is null, and this type of casting won't work.
Now I'm stuck. Has anyone got any suggestions?
Thanks
Mike
Well, now that I've tried your suggestion, I've found that it doesn't
suppress blank lines if the filed is empty. Nevertheless, I wasn't aware
that you could apply custom formatting in the way you have demonstrated, so
that, together with my improved method is useful.
"Mike" <xx*@xxx.xxxwro te in message
news:%2******** **********@TK2M SFTNGP04.phx.gb l...
Great! Thanks - that's two more things I've learned today!
"Steve B." <st**********@c om.msn_swap_msn _and_comwrote in message
news:uC******** ******@TK2MSFTN GP06.phx.gbl...
>Change
<asp:Label ID="Address1Lab el" runat="server" Text='<%# Eval("Address1 ")%>'></asp:Label><br />
by :
<asp:Label ID="Address1Lab el" runat="server" Text='<%# Eval("Address1" , "{0}<br>")%>'> </asp:Label>
Repeat this to all of your lines...
It's quite easier that having to test the value... "Mike" <xx*@xxx.xxxa écrit dans le message de news: %2************ ****@TK2MSFTNGP 03.phx.gbl...
>>>I want to suppress blank lines in an address on a web page.
At the moment, I am displaying the data like this:
<asp:Label ID="Address1Lab el" runat="server" Text='<%# Eval("Address 1")%>'></asp:Label><br /> <asp:Label ID="Address2Lab el" runat="server" Text='<%# Eval("Address 2")%>'></asp:Label><br /> <asp:Label ID="Address3Lab el" runat="server" Text='<%# Eval("Address3" ) %>'></asp:Label><br /> <asp:Label ID="TownLabel" runat="server" Text='<%# Eval("Town")% >'></asp:Label><br /> <asp:Label ID="LocationLab el" runat="server" Text='<%# Eval("Location" ) %>'></asp:Label><br /> <asp:Label ID="PostcodeLab el" runat="server" Text='<%# Eval("Postcode" ) %>'></asp:Label><br /> <asp:Label ID="TelephoneLa bel" runat="server" Text='<%# Eval("Telepho ne") %>'></asp:Label><br /> <asp:Label ID="FaxLabel" runat="server" Text='<%# Eval("Fax")%> '></asp:Label><br /> <asp:Label ID="WebLabel" runat="server" Text='<%# Eval("Web")%> '></asp:Label><br />
This of course creates blank lines on the page if a line is empty.
I created a method that checks to see if there was anything in the field and then builds a string including the field, or excluding it depending on the result:
public static string FormatAddress(s tring ad1, string ad2, string ad3, string town, string county, string post) { string FormattedAddres s =""; if (ad1 != "") { FormattedAddres s = ad1 + "<br />"; } if (ad2 != "") { FormattedAddres s += ad2 + "<br />"; } if (ad3 != "") { FormattedAddres s += ad3 + "<br />"; } if (town != "") { FormattedAddres s += town + "<br />"; } if (county != "") { FormattedAddres s += county + "<br />"; } if (post != "") { FormattedAddres s += post + "<br />"; } return FormattedAddres s; }
Then I tried to pass this into it:
<asp:Label ID="FormatAddre ssLabel" runat="server" Text='<%# MyUtilityClas s.FormatAddress ((string)Eval(" Address1"), (string)Eval( "Address2") , (string)Eval("A ddress3")...%>' ></asp:Label>
but it fell over with an "Unable to cast object of type 'System.DBNull' to type 'System.String' " exception. I realise what this means, in that at least one of the fields is null, and this type of casting won't work.
Now I'm stuck. Has anyone got any suggestions?
Thanks
Mike
Ok sorry for the error..
you can try this :
<asp:Label ID="Address1Lab el" runat="server" Text='<%# Eval("Address1" ,
"{0}<br>")% >'
visible='<%# Eval("Address1" ) != System.Data.DBN ull.Value %>'
></asp:Label>
"Mike" <xx*@xxx.xxxa écrit dans le message de news:
er************* **@TK2MSFTNGP06 .phx.gbl...
Well, now that I've tried your suggestion, I've found that it doesn't
suppress blank lines if the filed is empty. Nevertheless, I wasn't aware
that you could apply custom formatting in the way you have demonstrated,
so that, together with my improved method is useful.
"Mike" <xx*@xxx.xxxwro te in message
news:%2******** **********@TK2M SFTNGP04.phx.gb l...
>Great! Thanks - that's two more things I've learned today!
"Steve B." <st**********@c om.msn_swap_msn _and_comwrote in message news:uC******* *******@TK2MSFT NGP06.phx.gbl.. .
>>Change
<asp:Label ID="Address1Lab el" runat="server" Text='<%# Eval("Address 1")%>'></asp:Label><br />
by :
<asp:Label ID="Address1Lab el" runat="server" Text='<%# Eval("Address1" , "{0}<br>")%>' ></asp:Label>
Repeat this to all of your lines...
It's quite easier that having to test the value... "Mike" <xx*@xxx.xxxa écrit dans le message de news: %2*********** *****@TK2MSFTNG P03.phx.gbl... I want to suppress blank lines in an address on a web page.
At the moment, I am displaying the data like this:
<asp:Label ID="Address1Lab el" runat="server" Text='<%# Eval("Addres s1")%>'></asp:Label><br /> <asp:Label ID="Address2Lab el" runat="server" Text='<%# Eval("Addres s2")%>'></asp:Label><br /> <asp:Label ID="Address3Lab el" runat="server" Text='<%# Eval("Address3" ) %>'></asp:Label><br /> <asp:Label ID="TownLabel" runat="server" Text='<%# Eval("Town") %>'></asp:Label><br /> <asp:Label ID="LocationLab el" runat="server" Text='<%# Eval("Location" ) %>'></asp:Label><br /> <asp:Label ID="PostcodeLab el" runat="server" Text='<%# Eval("Postcode" ) %>'></asp:Label><br /> <asp:Label ID="TelephoneLa bel" runat="server" Text='<%# Eval("Teleph one") %>'></asp:Label><br /> <asp:Label ID="FaxLabel" runat="server" Text='<%# Eval("Fax")% >'></asp:Label><br /> <asp:Label ID="WebLabel" runat="server" Text='<%# Eval("Web")% >'></asp:Label><br />
This of course creates blank lines on the page if a line is empty.
I created a method that checks to see if there was anything in the field and then builds a string including the field, or excluding it depending on the result:
public static string FormatAddress(s tring ad1, string ad2, string ad3, string town, string county, string post) { string FormattedAddres s =""; if (ad1 != "") { FormattedAddres s = ad1 + "<br />"; } if (ad2 != "") { FormattedAddres s += ad2 + "<br />"; } if (ad3 != "") { FormattedAddres s += ad3 + "<br />"; } if (town != "") { FormattedAddres s += town + "<br />"; } if (county != "") { FormattedAddres s += county + "<br />"; } if (post != "") { FormattedAddres s += post + "<br />"; } return FormattedAddres s; }
Then I tried to pass this into it:
<asp:Label ID="FormatAddre ssLabel" runat="server" Text='<%# MyUtilityCla ss.FormatAddres s((string)Eval( "Address1") , (string)Eval ("Address2") , (string)Eval("A ddress3")...%>' ></asp:Label>
but it fell over with an "Unable to cast object of type 'System.DBNull' to type 'System.String' " exception. I realise what this means, in that at least one of the fields is null, and this type of casting won't work.
Now I'm stuck. Has anyone got any suggestions?
Thanks
Mike This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Joe |
last post by:
I want to use mail() to send a message to a group of addresses in a mysql
table. I¹ve got my mail script and my sql query, but I don¹t know how to
format the query results to fit into the mail() function.
Does anyone have a simple script that will format a list of email addresses
(from a mysql query) then dump them into a variable that I can use in a
mail() function?
Here¹s what I got so far:
|
by: dave |
last post by:
Hello,
I'm creating a site that has several contact email addresses. These are
vlid addresses, i'm wondering if i can use php to alter these addresses so
that spam harvesters can't get them, yet a normal user clicking on them can?
Thanks.
Dave.
|
by: Rob Meade |
last post by:
Hi all,
Ok - this leads on from speaking to a couple here and in the SQL server
group...
I've an application which allows the user to type in their text into a form,
they add 'happy' tags around their words, the app then replaces these with
the html equivalent and saves it to the database...
Thus far this has been working very well.
|
by: Grytpype-Thynne |
last post by:
Can anyone point me in the direction of a cross browser way of displaying
two addresses side by side after some preliminary text? I have tried a
containing box and floating two further boxes inside, one left and one
right and also just floating the two boxes without the container but I
can't seem to get it to work in all the browsers.
The site at the moment uses a table but I would like to get rid of it.
Sorry no URL as I am not able...
|
by: hope |
last post by:
Hi,
How can I format a string field using Data Formatting Expression property in
datagrid?
For example: format last name from BROWN to Brown.
Thanks
| |
by: sck10 |
last post by:
Hello,
I have a page with an ImageButton that is used to redirect to another page.
When the page first opens, everything looks as expected. However, when I
click on the image, the new page opens as expected. However, when I go back
to the original page, all the font sizes are larger. Its as if by clicking
on the ImageButton, my CSS formatting was discarded.
When I look at the source for the following code, this is what I get:
|
by: Hendrik Maryns |
last post by:
Hi,
Since I was so pleased to discover how to enable my keyboard to type
symbols like … directly, I made a howto-page about it:
http://tcl.sfs.uni-tuebingen.de/~hendrik/keyboard.shtml.
I tried to follow the advice from
http://xhtml.com/en/xhtml/reference/pre/ to not use the <pretag, but I
am not satisfied with it, since tabs are not preserved (see bottom
part). This is not essential here, but would be nice. Can I do that
|
by: =?Utf-8?B?U2VyZ2Vp?= |
last post by:
Dear staff
Can I get your assistance with \3GB (LARGEADDRESSAWARE) switch in mixed mode
process built by VS 2008, please?
I have a mixed mode application: C# GUI calling native C++ DLL through
managed C++ wrapper. And I want to give the native C++ code access to large
(>2G) addresses; but (if it’s possible) I do not want the managed code to use
this extra GB of virtual memory.
Questions are:
|
by: =?Utf-8?B?b24tbGluZSBqb3VybmFsIGVkaXRvcg==?= |
last post by:
I can't seem to cut-and-paste text, with either .doc or .html formatting,
into my .asp web-pages --all the formatting is lost. Is there some code that
needs to be added to the page that will tell.asp to leave the formatting the
way it is? I thought that the fact that .asp is a MicroSoft product, there
would be complete compatibility with "word.doc" text formatting --perhaps I'm
wrong about that. Thanks.
|
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...
|
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,...
| |
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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();...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |