Skip to main content


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">
 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 change the control pane…

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 () {

    //Re-bind for callbacks (This is a key)
    var prm = Sys.WebForms.PageRequestManager.getInstance();

    prm.add_endRequest(function() {


Rashid Imran Bilgrami

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

Dear Friend

We have a project which was previousely in 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 3.5 website.There it is working there any issue while we convert the project

The solution is very simple

Open you web.config file
delete this line <xhtmlConformance mode="Legacy"/>


Rename the old web.config file and create new one the problem will resolve

Rashid Imran Bigrami

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;
        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))

And it will return as result:

Rashid Imran Bilgrami