Access A CheckBoxList Control In A DotNetNuke Module?

Mar 17, 2010

I have a dynamically created CheckBoxList in a DotNetNuke module I'm building. When DNN creates the page, it prepends the control name with the moduleID and moduleName.

So, when I have "AddLicenseCheckBoxList" on the page, it becomes:

"dnn_ctr949_addRateGroup_AddLicenseCheckBoxList" depending on what the ModuleID and page name is (in this instance it's 949 and addRateGroup respectively). Now, I don't know what the name of the page or moduleID will be when this module is finished, so I need to make sure I am accessing the control my whateer name DNN gives it, and getElementById or getElementByName do not work even when using '<%= %>'.

So what I need to do is use Javascript or some VB to retrieve the checked values of the dynamically created CheckBoxList so that I can run an update on the database with those selected values. [code]...

View 2 Replies


ADVERTISEMENT

Asp.net - Updating DotNetNuke Module From Another App

Aug 25, 2009

I have several DNN modules that I wish to update silently, using the portal's built-in module upgrade facilities called from a separate application, in this case a Windows service. I was able to make it all work with version 4.3 of the portal by modifying the DNN source in key areas to allow DotNetNuke.dll to function outside of a web application. I'm now trying to do the same thing with the 4.9.0 source code and I'm having problems.

Everything works fine until DNN tries to read from the database. I have my Windows service project, the DNN library project, and several other related projects loaded in one VS solution (the additional projects are the same ones that are in the main solution file provided with the DNN source). I call PaInstaller.Install in my service to update each module. Execution gets to reflection.vb and then it tries to create a DotNetNuke.Data.SqlDataProvider object based on the type name. It raises an exception when calling System.Web.Compilation.BuildManager.GetType. The exception says:

Could not load type 'DotNetNuke.Data.SqlDataProvider' from assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I read this to mean it simply couldn't locate the DotNetNuke.SqlDataProvider.dll assembly. What's strange is that assembly is in the Bin folder for the DNN library project, and I also have it in the folder where my Windows service is running. The actual SqlDataProvider project is also loaded in the solution. I can't for the life of me understand why the runtime environment can't locate the assembly.

Has anyone tried something like this before, or know what could cause an assembly not to be found while stepping through the DNN source? Am I better off using something other than BuildManager.GetType to get an instance of the SQL provider type?

View 1 Replies

Create A Simple Dotnetnuke Module Without DAL?

Jun 25, 2010

I want to create a new module in DNN (VB) ... that;

1. does not use DAL or DAL+

2. has only one view.ascx control

3. It has to be a compiled module

I do not need DB connectivity and any bells and whistles just one view control. I thought it would be simple but googling for a day now and it seems very complicated.

View 1 Replies

Custom Class In DotNetNuke Module?

Mar 21, 2011

I know this can be done as there are other modules out there that have this, but I'm just not getting it to work.

I have created a custom module for a DotNetNuke site. I want to be able to create a class object within the module to hold the information about that object. I can create the object and everything complies. But when I go to use the object in the code-behind it states that the object is not defined. I'm not really sure where to go from here.

This is the beginning of the View.ascx.vb :

Namespace Modules.VacationForms
Public MustInherit Class View
Inherits PortalModuleBase

[Code].....

I'm really not sure why this is not working. I did download another module code to compare and as far as I can tell everything is the same.

View 2 Replies

DotNetNuke Module Page Load Fires Twice

Jul 11, 2011

My module's Page_Load event is firing twice for each "actual" load. On the initial load both loads' Page.IsPostBack property is false.I've renamed Page_Load to Module_Load to verify the name wasn't an issue. I've made sure the method isn't handling both Me.Load and MyBase.Load, which has been the case in the past.The only thing I'm doing out of the ordinary is that my module is inheriting from an intermediate base class. Could this be the culprit? [code]I had an Image without an ImageUrl. Presumably this is set by my CollapsiblePanelExtender but rendered with a blank src.

View 1 Replies

How To Access WebBrowser Control In Forms From Module

Jan 3, 2012

I am trying to access a browser control in one of my forms from a module but keep getting an error. I attached a screen capture showing the code and the error balloon. The subroutine is public, and I am addressing the browser correctly. If I copy that same code into the "Main" form, and it works perfectly.

View 3 Replies

Preselected Checkbox Using Checkboxlist Control In Asp.net Using VB?

Nov 10, 2011

How do I make one of the items in my checkboxlist automatically selected upon page load? The items in my checkboxlist come from a SQL DB and I want one of the fields to be automatically selected. I have found simple solutions to this question if I was not retrieving my checkboxlist items from a Database?Here is my code for my 2 relevant pages:

ALCounties.aspx.vb
Imports System.Collections.Generic
Partial Class ALCounties
Inherits System.Web.UI.Page

[code]....

View 1 Replies

.net Module For Data Access?

Jun 2, 2009

I've inherited some code that has a Public Module for data access:

[Code]...

And all the pages call GetDataSet(sql). Am I correct is assuming that this is a bad idea? Worst case is that concurrent callers could get each others data?

View 4 Replies

Access Form Controls From Module?

Apr 23, 2011

How do I do something like this.[code]...

This is inside the Module separate from Form1 class as you can see right off the bat it's not a class and there is no reference to Form1.. how do I access Form1 without passing reference to make factory modules work like this.

View 1 Replies

Executing A Module Created In Access In VB?

Dec 2, 2009

I created a module procedure in a access database, but I am having trouble trying to execute it in VB. I thought perhaps I should create a similar module in VB, but that didn't workThen I tried a few obj codes, but hitting a brick wall left and right. Should I create a new class? or is there some other way?

View 1 Replies

How To Access Variable In A Different Form Using A Module

Dec 15, 2011

I tried to access a variable using a module with this code:

Module DataModule
Public x As Integer = form1.trackbar.value
nd Module

View 11 Replies

Module Cannot Access FORM Controls

Sep 16, 2011

I have a form called form1 which has a thread that runs a sub from a module.[code]...

Well from the module, there's a part where I have to update controls on the form1. Whenever I try doing it, it updates the value, but not the design. For example I write a delegate which makes label1.text = "111", while debugging, label1.text becomes 111, but it does not show it updated on the form design, it just stays at its default value.

View 4 Replies

VS 2005 Creating Module In Access .mde?

Jun 27, 2010

with vb.net05 + access03 .mde file is it possible to create a module ( function ) in side a password protected access .mde file from ado.net?

View 2 Replies

Control Form From Module?

Jun 20, 2012

I recently have convert my project from VB6 to VB.NET2008,after the convert here is a sub that control form from a module that i create,the error was something like

"cmdAdd is not a member of System.Windows.Forms.Form"
Public Sub ButtonSet(ByRef frmObj As System.Windows.Forms.Form)
frmObj.cmdAdd.Visible = True
frmObj.cmdCopy.Visible = True
frmObj.cmdEdit.Visible = True

[Code]...

View 1 Replies

Create A Control Class Rather Than Use A Module For MVC?

Mar 20, 2012

I'm trying to use it in writing VB.NET Windows Form code.So I'm thinking, instead of using a VB.NET module, or having code embedded in the forms, I should create my own "Control" Class, to handle all operations and "application" level variables.Is this the right approach?Ex:

Private Sub frmLogin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
goControl = New MyControlClass()
goControl.sUserID = txtUser.text[code]....

View 1 Replies

Database - Reference A Control From A Module?

Jan 30, 2010

I have a MS Access database set up, with a Period field that has either values 1, 2, 3, 4 or 5. I retrieve these values using a database connection and I would like to reference a particular control based on what period was grabbed from the database.

Here's example code, pseudo of course.

TextBox(dr(3)).Text = dr(0)

dr(3) contains the period, and dr(0) contains the content I would like to put into the text box. I have these text boxes on my form: TextBox1, TextBox2, TextBox3, TextBox4 and TextBox5.So if dr(3) contained 2 then I would want to reference TextBox2.

View 2 Replies

Define Control Within A Tab Page From A Module?

Dec 1, 2009

i am currently building a MDI application. Both my Add and Edit screen use a form called frmStaffDetails.

On load, this form is redefined as 'AddStaffChild' and 'EditStaffChild' dependant on which menu item is selected. I've defined the CurrentForm as Form.ActiveForm.ActiveMdiChild.

Within a module I am checking the text within certain textboxes. So for example here I am checking a name has been inputted. If it has, then I will allow the record to be saved.

[Code]...

The problem I am having is that this code works perfectly if the textbox control is not within a Tab Control. As soon as I put it in a tab page I get the error.

"Referenced object item has a value of Nothing" Also if I reference it directly for example

If Not AddStaffChildForm.txtFirstName.Text this works fine too, but i want it to be more genric so I can use it for my edit screen as well. How can I define a control within a Tab Control from a module (or any other way to declare a public sub).

View 3 Replies

Forms Control For Availability Module?

Apr 12, 2012

I'm building a apps that which allow to check the room availability for a hostel.I am looking some controls which is similiar to the following which allowed me to change the color of the box during runtime.

View 10 Replies

Best Wiki For Dotnetnuke

Sep 30, 2009

I've tried the wiki that comes with DotNetNuke and we don't like it at all. Can anyone suggest a better wiki that we could use with DNN 5?

View 3 Replies

Office Automation :: To Access A Function Of A Class From A Module?

Nov 5, 2010

I failed at the title: it should be "access a function of a class from a module"Edit by Moderator: I've amended the title for you.I got a huge VBA program which opns an excel workbook.I want that if i press crtl + s excel dont calls his save function but my own written save-function.

The code looks like this:
Code:
Namespace Test

[code]......

View 8 Replies

Addressing And Reading A Control On A Form From A Module

May 7, 2012

I simply cannot refer to a control on a form from module code as in all other versions of VB. Here is the code that I mean:[code]The fact that this cannot seemingly be done without getting into looping through an array of controls, assigning the control to a general control variable etc. and much more guff is puzzling and is in my opinion an added complexity to Visual Basic. There must be a simple way to do this - I just want to refer to the value in a control, on a form, from a module.

View 13 Replies

Can't Find A Media Player Control Or Module

Oct 29, 2009

I can't find a media player control or module. I'm using the Express Edition does it even have one?

View 8 Replies

Update A WPF Control From A Background Thread From A Module?

Jul 2, 2011

My application has a total of 1 form. I have several modules, one of which is a module that handles a background worker dynamically. But what I need to be able to do is update a textbox from the background worker thread. Again, this code is contained within a module, not directly on the main form, so I am totally clueless as to how to make a reference to it. It's easy in WinForms, but I can't for the life of me figure out how to do it in WPF...

View 4 Replies

.net - Localization Of A DotNetNuke Website?

Apr 13, 2009

I am working on a website in dnn. I want to change the language of website or particular page. So I download the language package for spanish(es-es),chinese(zh-cn) and install them from host. Next when I changed the language of browser then the website language didn't change. Working on dnn 5.0.

how I can use language packages in dnn website.

View 5 Replies

Access Global Variable Inside Class Contained Within Module?

Nov 25, 2009

I've got a console app with a sub main then i have a seperate class inside the module..i can't seem to update the public global variable from inside the class as i can't declare the variable as shared...

View 6 Replies

Forms :: Access Main Form From Second Thread Running In A Module?

Jun 22, 2010

I was a vb6 user, done a few projects only with forums Now i am moving to vb.net(vb2010) and i have some trouble.Lets say we have a form(form1), a module(mod1) and a textbox on the form1.

i want to start a Sub (DoWork) in the module but in a new thread.

Dim Thread1 As System.Threading.Thread
Thread1 = New Threading.Thread(AddressOf mod1.DoWork)
Thread1.Start()

The DoWork sub does some stuff and when it's finished i want to change the text of a textbox1 in the main form and start another sub (DoWork2) on the main form under the main thread not the one DoWork is running under.

Plese do not refer me to another post that mighe give me a part answer, try to explain to me what i have to do and why.

View 3 Replies

Refering To A Form Control Property From A Module Function / Sub?

Mar 7, 2012

I have a single form application with two modules. The first module holds all the Sub procedures that provide the filtering functionality for 3 DataGridViews on the form. The second module holds the Predicate of T functions that actually filter the List(Of T) objects that are bound to the DataGridView controls.

I split them into modules since I was starting to have difficulty organising and finding the procedures and functions if I held them all in the form code.In some cases I can happily both Get and Set form control properties from within the modules. In one case I simply can't, I suspect I may yet find some more instances as I test further. The offending line is in one of the Predicate of T functions:

If tWord.Length <= Investigator.NumericUpDown.Value Then Investigator is the Class name of the form.

I suspect my problem might be that the Predicate of T functions (which are collated in a module) are called from the DoWork procedure of a BackgroundWorker that is a component of the form - hence the DoWork procedure is in the form code, but I'm not certain. The same code worked fine when everything was all in the form code. The error reported when adding a watch to the Value property in the module function is "
'Value' is not declared. It may be inaccessible due to its protection level ". I have tried the following to no avail:

1) Setting the NumerciUpDown modifier to Public

2) Adding a Public ReadOnly Property to the form class that simply returns the Value propety of the NumericUpDown

3) Adding Imports Root Namespace.Investigator to the module

I am considering adding a Public Shared variable to hold the curent value of the NumericUpDown and referencing that from the Predicate of T function.I realise, and have read many times, that accessing form control properties from module functions is generally not seen as a smart thing to be doing, but since I am not trying to chnage anything, I simply want to know what the current value is I decided that I wasn't too worried.

View 11 Replies

C# - Get The Portal's Current Login URL In DotNetNuke?

Aug 7, 2009

In the context of a DNN module, what's a good generic way to find out what the URL to the login functionality is?

View 2 Replies

C# - Print To DotNetNuke Event Log/Viewer?

Jan 11, 2010

For debugging purposes, how can I print to the event log/viewer in DotNetNuke, using VB.NET or C#?

View 3 Replies

VS 2010 Multi Threading Access To Module Level SEQUENTIAL Counter?

Feb 22, 2012

I've got this code

Public Class Form1
Dim m_listener As HttpListener = Nothing
Dim m_asyncCount As Integer = 0

[code].....

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved