Crystal Report Viewer width – Visual Studio
By default Crystal report viewer width is fixed according to it toolbar, but changes due to amount of data present in the report. And the width is not editable (as it is seen). Because of this reason...
View ArticleEasy way to Export dataset in Excel
Fastest way to export dataset in excel format is: DataSet dsExport = new DataSet(); System.IO.StringWriter tw = new System.IO.StringWriter(); HTMLTextWriter hw = new HTMLTextWriter(tw); DataGrid dg =...
View ArticleDate Time string formatting in ASP.NET
With the following code you can format a DateTime within a Databind. <%# DateTime.Parse(Eval("DateModified").ToString()).ToString("MM-dd-yyyy")%> Some more format specifiers that can change...
View ArticleAdd meta data dynamically
Add meta-data dynamically to your page by adding a HtmlMeta control to your Header. In this example I dynamically add a keyword string to the page. string keyWords = “metatags, html, dynamic,...
View ArticleRetrieving domain information through ASP.NET
There are many domain checking websites available that gives all the information regarding domains. WhoIs is one of them. Following is a sample asp.net code that connects to one of WhoIs servers and...
View ArticleMultiple Web.Config in Visual Studio 2010
Previously it was a very difficult job to have configuration files for different application environments, like having config files for development and production environments. One had to manually...
View ArticleCloud Computing – ASP.NET
Following are some of pros and cons for Cloud Computing Architecture for ASP.NET: Advantages: Cost cutting More storage for Data. Mobilitiy of Data Easy Disaster Recovery Disadvantages Implementation...
View ArticleImport Google Contacts – ASP.NET
How can we download our google address book to some local DB, file etc? One of the coolest things google has provided for developers is the Google Data API for integration of user and google...
View ArticleViewBag – ViewData – TempData objects
All of them are properties of Controllers and Views, and all of them are used to transport very small amount of data between pages. ViewData: It is of dictionary type, used to store key/value pairs and...
View ArticleIntroduction to .NET Core
Microsoft began development of the .NET Framework in the late 1990s as Next Generation Windows Services, with version 1.0 officially released in February 2002. It is licensed under Microsoft’s...
View Article