CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: NewsGroup Date Entered: 1/11/2006 11:38:21 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 46 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
dgorman
Asp.Net User
new at module creation :: simple issue with a datagrid postback1/11/2006 11:38:21 PM

0/0

I have a datagrid displaying detail records and want to be embed a checkbox that will allow users to select which detail they want to print. I have this working in a non-dnn aspx page fine but when I move it into my module the postback && hookup OnCheckedChange event I am getting a 'dotnetnuke Min Max persistence type of cookie requires a Module Id' error and have no idea what to do with it - it seems to be related to this call but am at a loss.

I know I could probably roll through the whole collection on some final post rather than postback on each selection but that is not my main concern (though if you have an idea I am interested). Note: dgItem.Cells[0].Text is my table key.

Thanks in advance.

Here is the column from the aspx page and the method that is called.

  <asp:TemplateColumn HeaderText="Print Select" ItemStyle-HorizontalAlign="Center">
   <ItemTemplate>
    <asp:CheckBox ID="cbPrint" Runat="server" Enabled="true"   OnCheckedChanged="Check_Clicked" AutoPostBack="true"/>
   </ItemTemplate>
  </asp:TemplateColumn>

 

    public void Check_Clicked(Object sender, EventArgs e)
    {
     CheckBox ck1 = (CheckBox) sender;
     DataGridItem dgItem = (DataGridItem)ck1.NamingContainer;
     if (ck1.Checked)
     {
        //set print flag on
        updatePrintStatus(dgItem.Cells[0].Text, true);
     }
     else
     {
        //set print flag off
         updatePrintStatus(dgItem.Cells[0].Text, false);
     }
    }

 

thecrispy1
Asp.Net User
Re: new at module creation :: simple issue with a datagrid postback1/12/2006 1:29:36 AM

0/0

This error is a cover up for what is going on.  I am not sure how this happend in the webcontrols project, but you either need to guess the error or you can use some Try/Catch w/ LogException to get the proper error to log to the log viewer.

 


Chris Paterra


2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Dynamically controls creation asp.net/ event fire twice / event ... I tried adding a button in the event.. and they surely will see a new text box but of course it will lose its viewstate in the next postback.. at which ...
dnn 4 module - ng.asp-net-forum.dotnetnuke-custom_modules - fix ... Super-Simple DotNetNuke 4 module - Tutorial Are you Ready to Create the ... I have found a couple of useful starting points for DNN 4 module creation. ...
VB.Net for Developers Part 2 - VBN2 Automatic PostBack Handling. Creating ASP.NET App. Create New Project Web Form Layout ... NET DataGrid Custom Commands Add Parameters Source Version ...
.NET ASP Page 109 - Bytes Site Map Selectedindexchanged of a radiobuttonlist inside a datagrid? datagrid design question .... Looping over a DataGrid after postback; questions ...
ASP.NET [Archive] - Xtreme .NET Talk Button Click Causes PostBack = True · Log on exception in asp.net?? ImageLabel Free Server Control · Datagrid with hyperlink column problem ...
Snowcovered.com: Forms Drag and Drop Forms Designer, Ajax, Table Creation, Automatic Form Generation, ... (25% discount If purchased now) This new module enables you to enlist job ...
APNSoft DataGrid It allows to update page content without postback and loss of scroll position! ... PanoModules is a kit of modules to create and manage interactive virtual ...
Dynamically add rows in datagrid - ASP.NET Dec 5, 2007 ... This will still do it-- that's why you put the controls in the footer row of the datagrid. That way, there will always be a new row. ...
TheMSsForum.com >> VB >> Datagrid Checkbox Column - The Microsoft ... yeah I dropped the 3 letter notation for simple types years ago) with some ..... (in the 'new' routine) I want to break off the creation of the classObject, ...
Cutting Edge: DHTML-Enabled ASP.NET Controls Simple server controls such as TextBox map directly to HTML elements; more complex controls like the DataGrid map to a subtree of HTML elements, ...




Search This Site:










best practice document storage

rss sydnication in b2

checking relationships in one table

focus in asp.net for ppc

cannot find page error on upload

asp.net 2: using look and feel of templates(createuserwizard) in my web app?

how to programmatically change module title?

storing or pointing -> images

correct way to call data

impliment masterpage

4 and 5 level tiers

object reference not set to an instance of an object.

deploying a web developer express project to a web hosting provider

line wrapping

can not view all web pages

membershipuser

validators probs (c#)

why do some people think that url re-writing is important?

does this module exist

re-use code help

i'm not having much luck converting a wsp to wap

how can i access the protect web service (with form authentication)?

server application unavailable

the 'type' attribute must be set to a valid type name (format: <typename>[,<assemblyname>]) membership provider

creating a custom dropdownlist

where to add the transaction code?????

controlling of dns using asp.net programming

problems with position of modules when they have "visible in all tabs" active

dynamic event handling

upload file to subfolder using urlcontrol

 
All Times Are GMT