February 2006 Entries
I came across a msdn page today which is about transforming the code to 64-bit programming. I was wondering how native code based applications can be ported to 64-bit computing. I know 32 bit .NET code can be executed with out any modifications in the 64 bit environment, read below the excerpt, In most cases, applications developed using the 32-bit .NET Framework can be ported to the 64-bit version of the .NET Framework and executed as 64-bit native applications without any source code modifications....
In .NET 2.0 i had a serious bug and screwed my head, for me the below code looks fine, try{ if (retVal == 0) Response.Redirect("Success.... if (retVal == -2) //Email-Id is already present Response.Redirect("Success.... if (retVal == -1) //Some error occured Response.Redirect("Success.... } catch(Exception error) { Response.Redirect("Success.... } finally{}I sware there is no bug in this code, when tried to execute this code it creates an exceptionUnable to...
I recently wrote an article about how to load the assemblies dynamically in the runtime more effectively. Check this article http://geekswithblogs.net/v
Calling a WebService thru a XmlHttpRequest call for consuming Xml data is very simpler rather than using WSDL etc., I was fighting for couple of hours but the callback functions doesn't seems to get the data from the server.When i run the same code in the localhost it worked fine and the XmlHttpRequest gets the data. But, once after i uploaded into the website (a public domain) the same started getting no values.The solution for the problem was enabling the webservices calls thru the web.config file...
I have came across a site built using AJAX techniques which is more slick and nice to work. Most of the sites are started using AJAX mechanism to update the data and retrieving the data. Check this ( http://www.jotlive.com ) site and it is really cool
I was ever wondered how to escape from System.Web.Mail namespace, since it uses CDO libraries to send the mail. The main problem in CDO libraries is version conflicts it creates while installing ASP.NET application in other machines.(CDONT.dll, CDOSYS etc., lot of versions huh!!?) In ASP.NET 2.0, after i found the proper implementation of total mailing solutions, I was happy to use and it works very smoothely. Lot new features like Async. handling of mail sending process, sending mails thru secured...
Today, I was trying to add a newly compiled (rc) dll file with another project as a reference. Huh!? Intellisense couldn't display any of the class names, public members etc., in the project. But when i tried to compile the project it compiled properly. The only way i can see the Intellisense to reflect on the dll is after i closed and opened the solution again. It shows the coloured syntax and drop down menus after reloaded the solution. But, one catchy point is it is not happening all the time....
I was trying to restart the ASP.NET application, without manually opening and saving the web.config file. The reason was iam updating some values in web.config file in certain case, and there is no problem that ASP.NET will automatically refresh the dll files so the settings will come into effect. But, my case is different here i want to fake the ASP.NET to refresh the dll files, without writing code for opening and saving the web.config file There is solution to do this in ASP.NET 2.0, ConfigurationManager.Refres...