Get current page name in ASP.NET
In order to get current page name , we need to get it from server variables of “ScriptName” but that’s not enough since it will bring up the whole path. you need to use System.IO in…
In order to get current page name , we need to get it from server variables of “ScriptName” but that’s not enough since it will bring up the whole path. you need to use System.IO in…
I believe this will be useful for everyone who wants to implement AJAX manually and make it compatible cross browser. // cross-browser method to retrieve an XMLHttp object for asynchronous requests & responses function GetHTTPRequest() {…
I tried to implement AJAX on my website by using AJAX extension on visual studio .NET. I tried to drag update panel to my page and I’ve put my button event handler to the trigger collection…
this is a very simple trick on how to select an item in pre binding/pre populated dropdown list from database in asp.net, you can use “FindByValue” method from dropdown list to return you a list item…
I found this tip is very useful for me in my day to day coding. Sometimes you create a table adapter in dataset in Data layer project, everything works fine but you will start wondering how…
I’ve got a problem when i tried to read some file in asp.net which is like 35mb large over the network. I also need this to be reliable since the file will be growing quickly within…
Let’s say you have some file that allow people to download it but you don’t want to expose the actual path for security reason. Here is the way of doing it, You need to read the…
This is the function in SQL server to get the last day for each month until the day that you define in a variable which is in this case is “@genDate”. I used this function to…