Skip to main content

Posts

Showing posts from February, 2013

DNN 7 Won't go into edit mode or not working with control bar

Dear All, Today when i install the DNN 7 then i found and issue in edit mode after installation. The problem is when i go to edit mode the page refresh with out enabling the edit mode, after a short research on Google i found the solution. I hppe it save your time 1. backup your web.config 2. Open your web.config in a text editor 3. within the web.config file, find the <system.webserver><modules> section. 4.  If the <modules> section says <modules runAllManagedModulesForAllRequests="false"> change it to <modules runAllManagedModulesForAllRequests="true"> OR  if it just says <modules>, change it to <modules runAllManagedModulesForAllRequests="true"> 5. Save the config file. 6. Retry by refreshing the page and trying again.  You can also test this out by trying to a do a journal post (which also uses the services framework in an authenticated way. If some how its will not work then, you must chang

Javascript not working when enable the AJAX in DNN or .net

Dear All, Today i found a solution finally to rebind the Javascript issue with support partially run with DNN Here is the key <script type="text/javascript">     function BindControlEvents() {         //jQuery is wrapped in BindEvents function so it can be re-bound after each callback.         //Your code would replace the following line:             $('#<%= TextProtocolDrugInstructions.ClientID %>').limit('100', '#charsLeft_Instructions');             }     //Initial bind     $(document).ready(function () {         BindControlEvents();     });     //Re-bind for callbacks (This is a key)     var prm = Sys.WebForms.PageRequestManager.getInstance();     prm.add_endRequest(function() {         BindControlEvents();     }); </script> Regards Rashid Imran Bilgrami  http://www.bestvisualization.com

Update Panel not working after converting an application to 1.1 to 3.5

Dear Friend We have a project which was previousely in asp.net 1.1. I converted that into .net 3.5.Everything is working fine except Update Panel. We add the update panel in my form and put some controls in contenttemplate. when we click the button inside the update panel make post back so other controls out side update panel also get refresh. We tested the same code in new asp.net 3.5 website.There it is working fine.is there any issue while we convert the project The solution is very simple Open you web.config file delete this line <xhtmlConformance mode="Legacy"/> or Rename the old web.config file and create new one the problem will resolve Regards Rashid Imran Bigrami http://www.bestvisualization.com

C# Generate All Dates between starting and ending date

Dear Readers This code  will return a generic list of DateTime containing the dates between a starting date and ending date:  //Here is the function private List<DateTime> GetDateRange(DateTime StartingDate, DateTime EndingDate) {     if (StartingDate > EndingDate)     {         return null;     }     List<DateTime> rv = new List<DateTime>();     DateTime tmpDate = StartingDate;     do     {         rv.Add(tmpDate);         tmpDate = tmpDate.AddDays(1);     } while (tmpDate <= EndingDate);     return rv; } //Here you call this function DateTime StartingDate = DateTime.Parse("02/25/2007"); DateTime EndingDate = DateTime.Parse("03/06/2007"); foreach (DateTime date in GetDateRange(StartingDate,EndingDate)) {    Response.Write(date.ToShortDateString()); } And it will return as result: 2/25/2007 2/26/2007 2/27/2007 2/28/2007 3/1/2007 3/2/2007 3/3/2007 3/4/2007 3/5/2007 3/6/2007 Regards Rashid Imran Bil