Telerik Controls – CSS Lost on Page Postback

Author posted by Jitendra on Posted on under category Categories ASP.NET and tagged as Tags , , with 1 Comment on Telerik Controls – CSS Lost on Page Postback

Telerik Controls – CSS Lost on Page Postback in Chrome and Mozilla firefox

After long time i am writing this tips on my blog.
This is very small but usefull trick about telerik controls.

Telerik controls like “Tree View”, runs fine in Internet explorer but it fails loading CSS in Mozilla or chrome. To overcome this, use below line of code in Page_Load method.

protected void Page_Load(object sender, EventArgs e)
{
RadTreeView1.EnableAjaxSkinRendering = true;
}

I hope this would help. 🙂

DataGrid, GridView, DataList and Repeater Control in ASP.net

Author posted by Jitendra on Posted on under category Categories ASP.NET and tagged as Tags , with 5 Comments on DataGrid, GridView, DataList and Repeater Control in ASP.net

DataGrid, GridView, DataList and Repeater Control in ASP.net

In Previous articles, i have written article about DataGrid.

https://jitendrazaa.com/blog/microsoft/net/datagrid-example-part-1/

https://jitendrazaa.com/blog/microsoft/net/datagrid-example-sorting-%E2%80%93-part-2/

https://jitendrazaa.com/blog/microsoft/net/asp-net-datagrid-basic-questions/

DataGrid, GridView and DataList controls are derived from the WebControl class, while the Repeater control is derived from the Control class. The WebControl class contains a number of properties, such as BackColor, ForeColor, CssClass, BorderStyle and so on.
In ASP .NET basically there are four kinds of the Data Presentation Controls.

  • GridView (more options)
  • DataGrid
  • DataList
  • Repeater (less options)

List of different abilities of Repeater Control, Datalist Control and GridView Control features.

Continue reading “DataGrid, GridView, DataList and Repeater Control in ASP.net”

Logging made easy in .NET – log 4 net

Author posted by Jitendra on Posted on under category Categories c#, Microsoft and tagged as Tags , with 1 Comment on Logging made easy in .NET – log 4 net

How to use the log 4 net in .Net application. Example, demonstration and sourcecode

Logging is the part of development which is normally not included in Product / Software release but at the same time it is necessary to create the logging mechanism in your software module.

implement log4net in .net

Continue reading “Logging made easy in .NET – log 4 net”

Set Session Timeout in IIS (Internet Information Services)

Author posted by Jitendra on Posted on under category Categories ASP.NET and tagged as Tags , with Leave a comment on Set Session Timeout in IIS (Internet Information Services)

Step by step description to set the Session.Timeout in IIS(Internet Information Services) Server for ASP.NET

Open IIS (Type inetmgr in run window ) , then right click on the websites and go to the Properties window.

IIS Website PropertiesNow go to Home Directory

Continue reading “Set Session Timeout in IIS (Internet Information Services)”

How to read value from Configuration file – ( app.config or web.config )

How to read value from Configuration file – app.config or web.config in C# application or web application

One of the best practice used in .NET application is to store the constants like Database connection in app.config in case of dll or standalone application or web.config in case of websites.

To achieve this, we have to follow below steps:

add reference of System.Configuration in .NET
add reference of System.Configuration in .NET

Lets consider below code in web.config

Continue reading “How to read value from Configuration file – ( app.config or web.config )”

Create URL dynamically in ASP.NET

Author posted by Jitendra on Posted on under category Categories ASP.NET and tagged as Tags with Leave a comment on Create URL dynamically in ASP.NET

Utility program to find that current connection is secured or not, connection is http or https. Create dynamic URL in ASP.NET. Example of Page.ResolveUrl() in ASP.Net.

Hi friend,

I am writing this article after very long duration. Have lots of tips to share from my toolbox, so here few about the dynamic creation of URL in ASP.NET:

lets say, you have to register the javascript file from code behind, then you may need a full path for that js file in format “http://yourdomain/jsfolder/jsfilename”

one way to achieve this is like :

"http://" Request.ServerVariables["HTTP_HOST"] + "/jsfolder/jsfilename.js";

In above snap you can see that HTTP_HOST is used. This server variable returns the address of your domain. Still, above code is not 100% functional.protocol may be http or https.

Continue reading “Create URL dynamically in ASP.NET”

Add CSS Programatically in ASP.NET

Author posted by Jitendra on Posted on under category Categories ASP.NET, Web Technology and tagged as Tags , with Leave a comment on Add CSS Programatically in ASP.NET

Tutorial on adding the CSS file dynamically in ASP.NET and C# / VB.Net

We Can set (Register) the Javascript file in ASP.NET but there is no such method for the CSS. So i have decided to write the article on how to set the CSS path dynamically in ASP.NET and C#.

Continue reading “Add CSS Programatically in ASP.NET”

Response.Flush in ASP.NET

Author posted by Jitendra on Posted on under category Categories ASP.NET and tagged as Tags with Leave a comment on Response.Flush in ASP.NET

Usage of Response.Flush method in ASP.NET, its disadvantage and advantage of buffering in IIS.

IIS5 enables buffering by default, therefore all the output from your ASP is actually sent to the browser only when the page completes its processing. In many cases this approach improves the overall processing speed, and indirectly makes for a more scalable site.

However, buffering has two minor defects:

  1. The end user might perceive a loss in speed, because she won’t see any output until the page is complete, and
  2. Buffered output has to be maintained on the server, therefore your ASP application is going to take more memory than it would do if buffering were disabled. On server machines with an inadequate amount of memory, large HTML pages can reduce the overall performance.

Continue reading “Response.Flush in ASP.NET”

Page loads multiple times in Rad Window

Author posted by Jitendra on Posted on under category Categories ASP.NET and tagged as Tags , with Leave a comment on Page loads multiple times in Rad Window

Solution of Multiple time page load problem of Telerik Rad Window.

In Previous article, i have discussed the multiple times firing of telerik Rad Window and its solution at code side. (C#)

In this article i will provide solution of same problem in Javascript style. 🙂

How to set the problem of loading popup three time…

  1. Any page must have only one RadWindowManager, if have more than one manager then usually it sets the setting of first manager…. Ambiguity
  2. ReloadOnShow must be false. Instead of this use below technique.

Create a random javascript number and send as a URl parameter while opening from client side, in this way, it will ensure to load page with reload option. And therefore no need of this flag.

Continue reading “Page loads multiple times in Rad Window”

Google Desktop Search in Folder

Author posted by Jitendra on Posted on under category Categories Microsoft, Tech Tips and tagged as Tags , , with Leave a comment on Google Desktop Search in Folder

This article explains the basics to use Google desktop and Tips to search for file in Particular Folder

Google desktop from Google has been discontinued, so below article will not be useful.

Now days, the requirement for hard disc in personal computer is increased dramatically. And if the size increased then necessity of software to manage the files and folders also increased.

To manage the documents and easy search, you can convert your system in “Google search enabled System” by just downloading Google desktop from here.

To enable the google search any time click cntrl Key twice and you will get your own google.

Google Desktop SearchJust start typing, you will get two options:

  • Search on Desktop
  • Search on Web

Continue reading “Google Desktop Search in Folder”