Category Archives: ASP.NET

TIP: Placing “Search” message in ASP.NET textbox using JavaScript

Hello,   I would like to have an ASP.NET textbox with a message "Search" in it.  If it receives focus, "Search" should be erased.  If the focus is lost, "Search" should be back.  If the user types anything other than … Continue reading

Posted in ASP.NET | Tagged , | 4 Comments

Part 1:Programming Crystal Reports with ASP.NET 2.0

Hello, My new article focusing on "Programming Crystal Reports With ASP.NET 2.0" got published here: http://www.aspfree.com/c/a/ASP.NET/Programming-Crystal-Reports-with-ASP-NET-2-0/ Enjoy. Thanks Jag

Posted in ASP.NET | Tagged , | 6 Comments

TIP: File download using ASP.NET

The following is a method to send a file to browser using ASP.NET   Dim fs As FileStreamDim strPath = "C:\DownloadableFilePath\"Dim strFileName As String = "Filename.pdf"fs = File.Open(strPath & strFileName, FileMode.Open)Dim bytBytes(fs.Length) As Bytefs.Read(bytBytes, 0, fs.Length)fs.Close()Response.AddHeader("Content-disposition", "attachment; filename=" & strFileName)Response.ContentType … Continue reading

Posted in ASP.NET | Tagged , | Leave a comment

TIP: Developing ASP.NET 2.0 applications simultaneously with both C# and VB.NET

If the code (say some classes) is written in C# and if the application is being developed in Visual Basic.NET, you can create a separate folder under the App_Code folder. The folder must be added as a code subdirectory in … Continue reading

Posted in ASP.NET | Tagged , | 7 Comments

Extending ASP.NET TextField User Control

Hello guys,   I Added few more features to the already contributed ASP.NET TexField User Control.  New version is here http://www.aspfree.com/c/a/MS-SQL-Server/Extending-the-ASPNET-TextField-User-Control/   First contribution is here  http://www.aspfree.com/c/a/ASP.NET/Developing-a-Wonderful-ASPNET-TextField-Control/   Enjoy, Jag

Posted in ASP.NET | Tagged | 2 Comments

TIP: Open a new browser window using ASP.NET button (server control)

New browser windows are generally opened using hyperlink with "target" attribute set to "_blank".  Sometime, it may be necessary to process something at server and then open a new window (which cannot be accomplished using hyperlinks).    To solve such … Continue reading

Posted in ASP.NET | Tagged , | Leave a comment

Enhancing the features of ASP.NET 2.0 TextBox control

Hello guys,   I contributed a new article which focuses mainly on the following:   Introduction to User controls in ASP.NET 2.0 Developing a composite user control Enhancing the existing ASP.NET 2.0 TextBox control with more flexible features. The article … Continue reading

Posted in ASP.NET | Tagged | 13 Comments

Database Independent Development with ASP.NET 2.0: dealing with stored procedures

Hello,   This is second in series focusing on Database Independent Development using ASP.NET 2.0.  You can find it here http://www.aspfree.com/c/a/ASP.NET/Database-Independent-Development-using-ASPNET-20-Dealing-with-Stored-Procedures/   Your feedback on this is well appreciated. thanks Jag

Posted in ASP.NET | Tagged | 12 Comments

Database independent development using ASP.NET 2.0

Hello,   My new series on "Database Independent Development using ASP.NET 2.0" has just started.  The first is here http://www.aspfree.com/c/a/ASP.NET/Database-Independent-Development-using-ASP-NET-2-0/   Your feedback is well appreciated. thanks Jag

Posted in ASP.NET | Tagged | 27 Comments

Attributes and Elements in XPATH

Hello guys,   Another contribution of mine got published at http://www.aspfree.com/c/a/ASP.NET/Dealing-with-Attributes-and-Elements-in-XPath-with-XSLT-using-ASPNET-20/   It explains about attributes and elements in XPATH. enjoy 🙂   Jag

Posted in ASP.NET | Tagged , , | 4 Comments