Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Permission issue with gridview_rowcommand?Permission issue with gridview_rowcommand?
Previous
 
Next
New Post
1/12/2009 6:10 AM
 

I have a module with one gridview.  The grid has four columns and one command field, the select command.  It is a grid that displays information on a basic search page.  The user types in some criteria in a text box, selects some values on a few drop downs, and the grid displays the result.

This module is for public search purposes, hence, should NOT have any permissions restricting use of the module to the general public.

I want to perform an action when the user selects a row in the grid.  I have added some code to the rowcommand event handler, however, when I'm not logged in as a registerd user on the site, the rowcommand event does not fire each time you click on the select command in the grid.

To reproduce the problem:

<table>
    <tr>
        <td>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="odsMain">
                <Columns>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:BoundField DataField="Field1" HeaderText="Field1" SortExpression="Field1" />
                </Columns>
            </asp:GridView>
        </td>
    </tr>
</table>

   <asp:ObjectDataSource ID="odsMain"
            runat="server"
            SelectMethod="SelectMethodMain"
            TypeName="PracticalComforts.Modules.LSTResults.LSTResultsController"
            OldValuesParameterformatString="original_{0}">
            </asp:ObjectDataSource>

Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand

MsgBox("row")

End Sub

This is what I have found out with my testing:

  • When I logged in as a registered user (either host or any user), I can click on any row in the grid and the msgbox pops up (i.e. rowcommand fired)
  • When I'm not logged in, the rowcommand does fire after about one minute.... Yes, I was staring at the screen trying to figure it out, randomly clicking around in the grid when the msgbox eventually did pop up.  I then proceeded to get a stop watch and timed the msgbox coming up whilst clicking around in the grid.  The times differed from 60 to 150 seconds.

This has to be a permission/security issue because the behaviour is 100% predictable when I'm logged in.

Any ideas?

Thanks

Michelle

 
New Post
1/12/2009 9:04 AM
 

In the module's settings, set the Cache Time to 0. You may also want to set the Default Cache Time to -1 in the module's definition (Host --> Module Definitions) to prevent the Cache Time of any new instances of the module from being set to any value other than 0. Module ouptput caching interfeers with normal post backs and therefore must be disabled as above for any interactive module.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
1/13/2009 12:13 AM
 

Thanks William!

Issue resolved!

Michelle

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Permission issue with gridview_rowcommand?Permission issue with gridview_rowcommand?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out