OK...I understood the problem.
I will try to look into other libraries. if they satisfy other requirements then certainly I will go for it.
Thanks a lot for your valuable words.
Sharing the best from my side...
--Prashant--
Hi,
I am using Enterprise library 3.1 logging block with C# and framework 2.0. I have a listner configured for writing log to flat file. The settings for this is configured in app.config as follows:
<add fileName="D:\log\trace.log" header="----------------------------------------"...
You can get that information from sender.
Something like this:
Button btn = (Button)sender;
if (btn.Name=="B1")
// Do this
elseif(btn.Name=="B2")
// Do this ... an so on
else
// Else part
Try it out...This may help you.
Sharing the best from my side...
--Prashant--
I think you need to validate the data returned from XML file before parsing it.
You can validate the dRow["time"].ToString() by using DateTime regex as per your requirement. Then pass that validated string to convert it to DateTime.
You can have Regex pattern for this from regexlib.com...
At my side the code is working fine in text and excel. So check excel settings or any formats. I am using Excel 2k3.
Sharing the best from my side...
--Prashant--
Hi,
I have Firefox 2.0.0.5 installed on my system alongwith IE.
Initially the network connection setting were set and disabled by sysadmin team, so that no one is able to change the settings for both browsers.
Now there is a change in our domain. So all new profiles were set for all users and...
Hi,
Thanx Chrissie for your help.
As the requirement was to append a error message of "Timeout Exception" to the earlier error message, I handled that inside one catch block only, so as to minimise string operations.
Here is my solution. This solves my purpose on Oracle and SQL DB...Plz. take...
Hi,
In one of the module, we need to handle Connection Timeout exception. But there are no such exceptions available, so we are using GetType() of the exception to display appropriate message that Connection Timeout has occurred.
catch (Exception e)
{
if (e.GetType() ==...
Thanx for your reply.
But I am not getting SelectSingleNode method with XPathDoc object.
What I'm missing in this context?
Thanx...
Prashant
Sharing the best from my side...
--Prashant--
I have one XML file as:
<MenuItems>
<Menu>
<Caption>&Set Field Identifier Prefix</Caption>
<Action>SetFieldIdentifierPrefix</Action>
</Menu>
<Menu>
<Caption>&Remove Field Identifier Prefix</Caption>
<Action>RemoveFieldIdentifierPrefix</Action>
</Menu>...
As a test, if I add one more file as "filename.UK.qry" to the same project. It creates a "UK" folder inside the "Bin" with a .dll file.
This is happening automatically as we haven't done any sort of settings like this in VS.NET environment.
How to set the options for compiler in VS.NET...
Hi,
We have few query files in C# project and those are added as embedded resource files. Due to recent changes in DB structures for US and Canada, there are 2 changes in query files. So we separated those 2 files by different extensions. For Canada we are referring the file as...
Console.WriteLine("{0)---------Invalid entry!\n", Signal);
should be...
Console.WriteLine("{0}---------Invalid entry!\n", Signal);
It's missing a }...
Sharing the best from my side...
--Prashant--
Hi,
There are two different Oracle servers on different systems with different schema's. I want to copy data(only) from ORA1-Schema1-table1 to ORA2-Schema2-table2. The table structure is same.
Do I need to follow IMP-EXP or is there any other way like insert query in above situation.
Sharing...
Replace the code from:
else
Console.WriteLine(dirs[0]);
to
else
Console.WriteLine(dirs[i])
and check whether u get expected output.
Sharing the best from my side...
--Prashant--
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.