Posted in Techincal on September 25, 2008 | 16 Comments »
You can change App.config file runtime using C# in your windows application. Here is the code for that,
1: // Open App.Config of executable
2: System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
3: // Add an Application Setting.
4: config.AppSettings.Settings.Remove(“LastDateFeesChecked”);
5: config.AppSettings.Settings.Add(“LastDateFeesChecked”, DateTime.Now.ToShortDateString());
6: // [...]
Read Full Post »
I will discuss how to integrate youtube video in asp.net. Youtube provides the API to access the its huge database of videos. It also provides search facility and customized player for integration.
First thing you need is to get developer key for accessing youtube service. You can get it from here. Once you get the [...]
Read Full Post »
I learn about CUBE and ROLLUP function today and I found it really usefull for generating reports. Let me give you one example where we can use ROLLUP and CUBE. Lets say you are developing the E-Commerce application and administrator wants the report which shows products purchased by all user group by product and [...]
Read Full Post »
As a software developers we must have to deal with javascript every now and than. There are some scripts which is browser dependent. You need to write different functions for different browsers. To achieve this you must require to detect the browser. Below code may helps you,
1: var isIE = false;
[...]
Read Full Post »