Thursday, October 27, 2005

If I TRY this..

Hi, I was working on my ASP.NET application in this I need to Fetch the Image link from Database and show the Image and if the Image is not there in Database than i need to display the NoImage... Simple.. Now, I ask my friends how to achieve this and they suggest me this.. if isdbnull(objSqlcmd.ExecuteScalar) then Image= "Noimage.gif" else Image=objSqlcmd.ExecuteScalar End if hmm.. IF image is there .. Show that one other wish show NoImage.gif good one.. But Not for me I found that it actually run the Query twice and for one thing running a query twice is not a good idea.. so, I do this... Try Image=objSqlcmd.ExecuteScalar Catch Image="NoImage.gif" End Try and this what I said.. IF I TRY this.. Sumit Gupta

Sunday, October 16, 2005

I feel proud on my Work

Hi, Today I just found this thread in one of the forum... http://www.visualbasicforum.com/showthread.php?t=239427 there is nothing special in this thread except that For the first time I have seen that one of my article is referred by someone... Thanks "Pranab" for referring me..:o) Sumit Gupta

Thursday, October 13, 2005

Custom Control In ASP.Net

Hi, Today I made Custom Controls in ASP.Net. What a pleasure it is. I have written the code for it first time but really I enjoy doing that and it makes my life much easier and my code more readable. Actually I need to Parse the Amazon API for my Project and than display data from there. One of my friend has done that in PHP as I am equally comfortable with PHP i take a look at his scripts and the code doesn't impress me much as I knew ASP.Net has better answer to that question, and Yes I am write I have written much more read able code than PHP code I saw. I wasn't too sure about the performace of my code though but thank God it runs much faster than I thought and infact it is faster than PHP code for the same purpose. I have to say this time that ASP.NET is better than PHP Bye for now Sumit Gupta

Sunday, October 09, 2005

Progress Bar In ASP.Net for Background Process

Hi, I found this Article Very useful for profressional Website developement in ASP.Net, It explain how to show Progress Bar for Background processing http://www.aspfree.com/c/a/VB.NET/Executing-LongRunning-Tasks-with-the-Progress-Bar-in-ASPNET/ Sumit Gupta