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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Variable passed from edit section of module does not reach sqldataproviderVariable passed from edit section of module does not reach sqldataprovider
Previous
 
Next
New Post
11/12/2009 12:01 PM
 

Hi all. I've made a module to display certain blog entries on my website depending on an option selected in the edit content section. The problem is that the module only displays one category of entries, and the input (a boolean variable) does not seem to reach my sqldataprovider.vb file. Here is the code in my cmdUpdate_Click function:

 

objNewsandEventsSideBar.IsNews = Convert.ToBoolean(RadioButtonList1.SelectedItem.Value)

 

Where the value of one radio button is "True" and the other "False".

 

Here is the code from my sqldataprovider.vb file:

Public Overrides Function GetNewsorEventsLatest(ByVal IsNews As Boolean) As System.Data.IDataReader
          If IsNews = True Then
                Return CType(SqlHelper.ExecuteReader(ConnectionString, "dbo.NewsArticlesSelectLatest"), IDataReader)
            ElseIf IsNews = False Then
                Return CType(SqlHelper.ExecuteReader(ConnectionString, "dbo.EventsArticlesSelectLatest"), IDataReader)
            End If
End Function

 

If I manually change the value of IsNews within this function, then the module will display news items (it usually only displays events items).

 

I guess what I really want to know is where the functions from within sqldataprovider.vb are called from, and how that is linked to the Edit<modulename>.ascx file.

 

I really hope this makes sense!

 
New Post
11/12/2009 1:05 PM
 

you need to call BCL getNewsorEvent yourself on postback in codebehind and this method of your business layer calls abstract database method.

To get a full trace, turn on "debug" in web.config, attach VS debugger to aspnet_WP process and place a breakpoint on your stored procedure call.

You are now able to trace the call stack.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/16/2009 5:59 AM
 

Sorry, BCL? I'm not sure what that is. I'm really new to dnn modules.

 
New Post
11/16/2009 6:58 AM
 

BCL: business control language, methods from your business layer objects.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Variable passed from edit section of module does not reach sqldataproviderVariable passed from edit section of module does not reach sqldataprovider


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