Quantcast
Channel: Developer's Alley - ASP .Net
Browsing all 12 articles
Browse latest View live

Page_Load Is Called Twice

 TODO:You have an Application Page, or regular ASPX page, .Net 3.5 and you notice that each Postback is happening twice, for no apparent reason. SOLUTION:If you have an IMG SRC="" tag, or a placeholder...

View Article



Causes And Fixes For "Error: Sys.ArgumentNullException: Value cannot be...

TODO:You make some changes the ASP.net controls on your form, and possible your JQuery.  You run your application and you end up with "Error: Sys.ArgumentNullException: Value cannot be null."...

View Article

How To Cancel And Remove Certain Files When Using Telerik RadAsyncUpload

TODO:Have you ever wanted to remove certain files, when using RadAsyncUpload control in multi select mode?  The problem is, you calling cancelUpload in the Uploading event cancels all uploads.  That is...

View Article

How To Add A Custom Filter To A RadEditor That Is An EditItem Of A RadGrid

TODO:Have you ever wanted to add a custom filter to a RadEditor that is a EditItemTemplate in a RadGrid that lives in a RadAjaxPanel?  To get this accomplished, some out of the ordinary things need to...

View Article

How To Add An Image To The Header Text Of a RadGrid Column

TODO:Have you ever wanted to add an image to the Header Text of a Telerik RadGrid? SOLUTION:/// <summary> /// Add Header Image /// </summary> /// <param...

View Article


How To Remove An Image From The Header Text Of A RadGrid Column

TODO:Have you ever wanted to remove an image from the Header Text of a Telerik RadGrid? SOLUTION:/// <summary> /// Add Header Image /// </summary> /// <param...

View Article

How To Configure Log4Net In A C# Application

TODO:Have you ever wanted to use log4net in your C# application? SOLUTION:To do so, you need to do 2 things: Step 1:  Add the following entry to the bottom of your AssemblyInfo.cs file[assembly:...

View Article

How To Display A Confirmation Dialog And Cancel The Postback When Using A...

TODO:You are using a Telerik RadButton, and you want to display a Confirm Dialog, and capture the user pressing cancel, thus canceling the Postback. SOLUTION:    <!-- Define button, and put method...

View Article


How To Disable Edit Of A Particular RadGrid Cell And Hide The Edit Control

TODO:Have you ever wanted to remove a TextBox or other Control from a particular cell in a RadGrid?  This is particularly useful when you want to conditionally allow edits based on certain data in the...

View Article


Telerik RadGrid GridEditCommandColumn Only Shows Text Rather Than Default Image

TODO:You have a RadGrid and the edit column does not show the edit button, only the "edit" text SOLUTION:In my case the following was in my web.config,<add key="Telerik.EnableEmbeddedSkins"...

View Article

How To Get The Week Of The Year By Using A Custom First Day Of The Week Value

TODO:Have  you ever wanted to get the week of the year by using a a custom first day of the week? SOLUTION:var weekOfYear = CultureInfo.CurrentCulture.Calendar.GetWeekOfYear( DateTime.Now,...

View Article

How To Fix Empty ContentEditable Not Allowing Click

TODO:Have you ever had an empty content editable element, which means the only way to get focus to it was to tab to it? SOLUTION:Enclose your element in a <div class="editableCell">.  Then track...

View Article
Browsing all 12 articles
Browse latest View live




Latest Images