guyS's WebLog

IShare, My DotNet Fingerprint

Browse by Tags

All Tags » Tips (RSS)
Using VB.NET its easy when you have the right tools and docs (but also when don't)
I got an assignment that should be done using VB.NET. Well, to be honest I don't like the syntax of this language and I guess my reasons were raise by other here and then so I will not raise it again. Anyway, I look for few tools and documents that will...
Posted: Sep 17 2005, 02:04 PM by guyS | with no comments
Filed under:
Calling web pages using HttpWebRequest
I use the following method when I had to call an Asp web page which return to me the result as Xml, from my Web Services. It was done in order to externalize the services from an existing DNA application to a Smart Client. public static string GetABHttpRequest...
Control your IDbTransaction provider on thread level
I wrote a transaction simple provider a month ago and I so it can be improved by making it safely available at a thread level using ThreadStatic attribute. Here is a nice article , showing just that. ThreadStatic attribute is usefull especially when you...
Posted: Jun 17 2005, 01:11 AM by guyS | with no comments
Filed under:
Using TryParse is good!!
I always like the double.TryParse for getting a numeric value from a given input string. I avoid a try/catch block with Parse or casting in order to get my numeric input and thus avoid un necessary exceptions when my input is not valid number. Minimize...
Posted: Jun 12 2005, 05:01 PM by guyS | with no comments
Filed under:
Handling CrLf before displaying JS Alert during parsing in code behind
Otherwise its not working... string sMessage = MyApplication.Texts.GetString(ExceptionKeys.ErrUnexpected); string[] msgParts = sMessage.Split(Environment.NewLine.ToCharArray()); string formatMessage = string.Empty; //format the error message using new...
Posted: Jun 12 2005, 04:35 PM by guyS | with no comments
Filed under:
Keep the company Infrastructure assemblies in a dedicate virtual disk/folder
This is something which being done in lots of projects and companies. We create a virtual disk that point to a physical folder in our physical disk and we copy our compiled assemblies to this folder. We compile our re-usable assemblies with strong name...
Posted: Jun 12 2005, 02:25 PM by guyS | with no comments
Filed under:
Format a printing document over the web
printing solutions over our web applications using Html's is not trivial. Its getting harder when we need to calculate the printing output number of pages and when we need to add an header and footer in each page at the exact position. Microsoft enhance...
Posted: May 20 2005, 02:38 PM by guyS | with no comments
Filed under: ,
Handling Exceptions in Dal
I like this recommendation text I attached, about the way we should consider to handle our Dal exception/s because its very clear, simple and convincing. The following attach text is from a one of the architecture guide within the Microsoft architecture...
Adding entLib DAAB User/Password keys using the entLib admin console
I might have skept it while passing over the documentation but I saw it in the entLib message board in this thread While looking for it using google I also find this interesting post that explain how to dynamically set the sql connection within the data...
Posted: May 04 2005, 05:14 PM by guyS | with no comments
Filed under:
Tip for optimizing IIS6 memory usage
Our server/s memory is not endless and we need to divide it between our OS and our applications wisely in order to achieve better performance. In order to optimize the use of our server memory we should be familiar with three terms: Page File The memory...
Posted: Apr 30 2005, 12:37 AM by guyS | with 1 comment(s)
Filed under: ,
More Posts Next page »