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: 6/1/2005 7:00:45 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 15 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
28 Items, 2 Pages 1 2 |< << Go >> >|
codegalaxy
Asp.Net User
New Free Module - Codegalaxy FreeForm6/1/2005 7:00:45 PM

0/0

This can be downloaded here http://codegalaxy.com/Modules/tabid/99/Default.aspx

Basically this module allows a user to make a form (minus the form tags) and set the method and URL of the action for the form.  The module then uses some javascript to create a form and submit it outside of DNN (to another site or whatever other script will process the info).

This is still very basic in its functions so if you have problems with it please use the forums on the codegalaxy.com site so I can try and fix it.

Thanks


Dylan Barber
Dylan's Blog

codegalaxy
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/1/2005 7:37:39 PM

0/0

Okay I have made a small mistake on the SQL install so I should have it fixed in a few minutes
Dylan Barber
Dylan's Blog

codegalaxy
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/1/2005 8:50:13 PM

0/0

Sorry for anybody who downloaded this the first time I fixed the install and it should be good to go now
Dylan Barber
Dylan's Blog

rodneyjoyce
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/1/2005 10:29:11 PM

0/0

Good idea Dylan - I'll check it out when the sun rises this side again ;)

Rodney

codegalaxy
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/2/2005 4:04:54 PM

0/0

Okay kind of wild I figured I would have a ton of people telling me of errors in this by now (its the first I have released to the public) but even with only 44 downloads I havent heard a pep.

Feedback would be appreciated if anyone has ideas/suggestions for the module.
Dylan Barber
Dylan's Blog

leupold
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/2/2005 4:23:44 PM

0/0

Dylan,

i installed your module without a problem and were able to place it on a page.

After I entered settings for a form I wanted to store the values, but got the following error (from Eventlog):

ModuleId
: 675
ModuleDefId: 204
FriendlyName: Codegalaxy FreeForm Form Edit
ModuleControlSource: DesktopModules/FreeForm/FreeFormEdit.ascx
AssemblyVersion: 03.00.13
Method: System.Data.SqlClient.SqlCommand.ExecuteReader
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: modulio.net
UserID: 1
UserName: host
ActiveTabID: 211
ActiveTabName: freies Formular
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.modulio.net/Default.aspx?tabid=211&ctl=Edit&mid=675&itemID=675
ExceptionGUID: 39278229-d26a-4cce-b68c-130d5718cbcb
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Der Wert NULL kann in die ChangedByDate-Spalte, dnnBeta.dbo.DNN_CodegalaxyFreeForm-Tabelle, nicht eingef?gt werden. Die Spalte l?sst NULL-Werte nicht zu. Fehler bei INSERT. Die Anweisung wurde beendet.
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Der Wert NULL kann in die ChangedByDate-Spalte, dnnBeta.dbo.DNN_CodegalaxyFreeForm-Tabelle, nicht eingef?gt werden. Die Spalte l?sst NULL-Werte nicht zu. Fehler bei INSERT. Die Anweisung wurde beendet. ---> System.Data.SqlClient.SqlException: Der Wert NULL kann in die ChangedByDate-Spalte, dnnBeta.dbo.DNN_CodegalaxyFreeForm-Tabelle, nicht eingef?gt werden. Die Spalte l?sst NULL-Werte nicht zu. Fehler bei INSERT. Die Anweisung wurde beendet. at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at Codegalaxy.DNN.Modules.FreeForm.Data.SqlDataProvider.CodegalaxyFreeForm_AddAForm(Int32 ModuleId, String FormHTML, String Method, String FormAction, Int32 CreatedByUser) at Codegalaxy.DNN.Modules.FreeForm.Business.FreeFormController.CodegalaxyFreeForm_AddAForm(FreeFormInfo objFreeForm) at Codegalaxy.DNN.Modules.FreeForm.FreeFormEdit.cmdUpdate_Click(Object sender, EventArgs e) --- Ende der internen Ausnahmestapel?berwachung ---
StackTrace:
Source:

translation: Error occurs during insert because column ChangedByDate cannot contain Null value.

Maybe the reason lies in using a server with German locales.

Sebastian


Sebastian Leupold
gamma concept mbH

DeutschNetNuke = DotNetNuke in German

DNN Project UserDefinedTable
codegalaxy
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/2/2005 4:44:44 PM

0/0

okay you might need to run this sql - if someone could help me on my dnn file with why its not reading and executing this right please contact me

/*
'**************************************************************************
'Codegalaxy FreeForm (c) 2005

'A simple module to allow site admins to set up a form that submits to
'another URL.

'Codegalaxy.com
'Programmer Dylan Barber
'Version 1.00.00 - First release
'Known Issues
' Submit only works on IE - only tested on a pc not a MAC
'**************************************************************************
*/
/************************************************************/
/*****              SQLDataProvider                     *****/
/*****              FreeForm               *****/
/*****                                                  *****/
/***** Note: To manually execute this script you must   *****/
/*****       perform a search and replace operation     *****/
/*****       for {databaseOwner} and {objectQualifier}  *****/
/*****                                                  *****/
/************************************************************/

/* Insert here the code to create tables and stored procs   */

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}{objectQualifier}CodegalaxyFreeForm_AddAForm') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure {databaseOwner}{objectQualifier}CodegalaxyFreeForm_AddAForm
GO

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}{objectQualifier}CodegalaxyFreeForm_GetAForm') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure {databaseOwner}{objectQualifier}CodegalaxyFreeForm_GetAForm
GO

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}{objectQualifier}CodegalaxyFreeForm_UpdateAForm') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure {databaseOwner}{objectQualifier}CodegalaxyFreeForm_UpdateAForm
GO


if not exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}{objectQualifier}CodegalaxyFreeForm') and OBJECTPROPERTY(id, N'IsTable') = 1)
CREATE TABLE {databaseOwner}{objectQualifier}CodegalaxyFreeForm (
 [ModuleID] [int] NOT NULL ,
 [FormHTML] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Method] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
 [FormAction] [varchar] (2000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [CreatedByUser] [int] NOT NULL ,
 [CreatedByDate] [datetime] NOT NULL ,
 [ChangedByUser] [int] NOT NULL ,
 [ChangedByDate] [datetime] NOT NULL
) ON [PRIMARY]
GO

if not exists (select * from dbo.sysobjects where id = object_id(N'PK_{objectQualifier}CodegalaxyFreeForm') and OBJECTPROPERTY(id, N'IsPrimaryKey') = 1)
  ALTER TABLE {databaseOwner}{objectQualifier}CodegalaxyFreeForm ADD CONSTRAINT
    PK_{objectQualifier}CodegalaxyFreeForm PRIMARY KEY CLUSTERED (ModuleID) ON [PRIMARY]

GO

ALTER TABLE {databaseOwner}{objectQualifier}CodegalaxyFreeForm WITH NOCHECK ADD
 CONSTRAINT DF_{objectQualifier}CodegalaxyFreeForm_CreatedByDate DEFAULT (getdate()) FOR {objectQualifier}CreatedByDate,
 CONSTRAINT DF_{objectQualifier}CodegalaxyFreeForm_ChangedByDate DEFAULT (getdate()) FOR {objectQualifier}ChangedByDate
GO


CREATE PROCEDURE {databaseOwner}{objectQualifier}CodegalaxyFreeForm_AddAForm
@ModuleID int,
@FormHTML ntext,
@Method varchar(10),
@FormAction varchar(2000),
@CreatedUser int
AS
INSERT INTO {objectQualifier}CodegalaxyFreeForm
 (
 ModuleID,
 FormHTML,
 Method,
 FormAction,
 CreatedByUSer,
 ChangedByUser
 )
 VALUES
 (
 @ModuleID,
 @FormHTML,
 @Method,
 @FormAction,
 @CreatedUser,
 @CreatedUser
 )

GO

CREATE PROCEDURE {databaseOwner}{objectQualifier}CodegalaxyFreeForm_GetAForm
@ModuleID int
AS
SELECT *
FROM {objectQualifier}CodegalaxyFreeForm
WHERE ModuleID = @ModuleID
GO

 


CREATE PROCEDURE {databaseOwner}{objectQualifier}CodegalaxyFreeForm_UpdateAForm
@ModuleID int,
@FormHTML ntext,
@Method varchar(10),
@FormAction varchar(2000),
@ChangedUser int
AS
UPDATE {objectQualifier}CodegalaxyFreeForm
SET  FormHTML = @FormHTML,
 Method = @Method,
 FormAction = @FormAction,
 ChangedByUser = @ChangedUser,
 ChangedByDate = getdate()
GO

 


Dylan Barber
Dylan's Blog

codegalaxy
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/2/2005 4:45:41 PM

0/0

if possible the CreateByDate and ChangedByDate are supposed to have getdate() as the defaults
Dylan Barber
Dylan's Blog

leupold
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/2/2005 5:33:59 PM

0/0

Dylan,
you need to remove the objectqualifiers before the field names in the alter table statement you posted:

ALTER TABLE {databaseOwner}{objectQualifier}CodegalaxyFreeForm WITH NOCHECK ADD
 CONSTRAINT DF_{objectQualifier}CodegalaxyFreeForm_CreatedByDate DEFAULT (getdate()) FOR CreatedByDate,
 CONSTRAINT DF_{objectQualifier}CodegalaxyFreeForm_ChangedByDate DEFAULT (getdate()) FOR ChangedByDate
GO

I could now setup the form, but when I entered the HTML of a form (that should be within the <form> tag, it looks well in FTB, but the freeform.ascx only displays HTML source. What did I get wrong?

Sebastian


Sebastian Leupold
gamma concept mbH

DeutschNetNuke = DotNetNuke in German

DNN Project UserDefinedTable
codegalaxy
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/2/2005 5:56:36 PM

0/0

okay i probly missed making it back to html let me look

 


Dylan Barber
Dylan's Blog

codegalaxy
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/2/2005 6:15:47 PM

0/0

are you sure about the object qualifier - it seems to work when I run it local
Dylan Barber
Dylan's Blog

leupold
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/2/2005 6:22:17 PM

0/0

Hi Dylan,

yes I am, as it throw me an error when executing from host:sql, until I changed it. Of cause, this will happen only, if you did set objectqualifier in web.config to a value <> "", during set up of your DNN.
To avoid this trap, module developers should always test the setup procedure on an installation with objectqualifier set to non-empty string

Sebastian


Sebastian Leupold
gamma concept mbH

DeutschNetNuke = DotNetNuke in German

DNN Project UserDefinedTable
codegalaxy
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/2/2005 6:41:00 PM

0/0

okay new download with all issues I know about fixed

http://codegalaxy.com/Modules/tabid/99/Default.aspx
Dylan Barber
Dylan's Blog

VishnuRU
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/3/2005 9:37:57 AM

0/0

COLLATE SQL_Latin1_General_CP1_CI_AS NULL must be removed from SQL-script. This will prevent errors from other COLLATE.
??????? ????!
leupold
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/3/2005 10:12:34 AM

0/0

Dylan,

I installed the new version. Now the form is displayed (and no longer its source code). But I still encounter issues:

  • in setup, I pasted the inner form content (between <form></form>) from another form with two input buttons (submit and cancel)
  • submission method is post, as action I entered an email adress to send it per mail

When displaying the form, there is a third empty button that is submitting the form, my buttons seemt to perform apostback only. What am I doing wrong?

Sebastian


Sebastian Leupold
gamma concept mbH

DeutschNetNuke = DotNetNuke in German

DNN Project UserDefinedTable
codegalaxy
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/3/2005 1:28:40 PM

0/0

Sebastian,
  The form automatically adds the submit button into the module - makes sure it gives it the right parameters to run the js - also it wont send the form to an email you have to have a script somewhere process the form
Dylan Barber
Dylan's Blog

leupold
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/3/2005 1:37:11 PM

0/0

Dylan,

do you have an example? the existing online help is rather short ;-)

Sebastian
Sebastian Leupold
gamma concept mbH

DeutschNetNuke = DotNetNuke in German

DNN Project UserDefinedTable
codegalaxy
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm6/3/2005 5:59:06 PM

0/0

I posted a short example in the support foum on my site you might look at it

http://codegalaxy.com/Support/tabid/202/Default.aspx?dnnbbfid=22&dnnbbtid=10


Dylan Barber
Dylan's Blog

lemlar
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm9/3/2005 10:46:55 AM

0/0

I can't find any way to download Codegalaxy FreeForm on http://codegalaxy.com/Portfolio/Modules/tabid/94/Default.aspx
Can anybody help me?

Lars Lem
DeveloperMCDBA
Asp.Net User
Re: New Free Module - Codegalaxy FreeForm9/3/2005 2:05:53 PM

0/0

 lemlar wrote:
I can't find any way to download Codegalaxy FreeForm on http://codegalaxy.com/Portfolio/Modules/tabid/94/Default.aspx Can anybody help me? Lars Lem

did you register and login?


-DarrenNeese.com
-DNN ROCKS!
-DeveloperSchool.com
28 Items, 2 Pages 1 2 |< << Go >> >|


Free Download:


Web:
New Free Module - Codegalaxy FreeForm - ASP.NET Forums Re: New Free Module - Codegalaxy FreeForm. 06-03-2005, 9:28 AM. Contact ... Re: New Free Module - Codegalaxy FreeForm. 06-03-2005, 9:37 AM. Contact ...
New Free Module - Codegalaxy FreeForm - ASP.NET Forums Modules.FreeForm.Business.FreeFormController.CodegalaxyFreeForm_AddAForm( FreeFormInfo objFreeForm) at Codegalaxy.DNN.Modules.FreeForm. ...
Free DotNetNuke Modules Directory Free Modules Directory ... Module Name: CodeGalaxy Free Form. Developer Name: Dylan Barber ... Back to All Categories | Submit New Entry ...
Codegalaxy FreeForm Codegalaxy FreeForm, :. Hits Today: 0, Total: 1426, Last Update: 6/1/2005 12:00: 00 AM. Add to Favorites. This is a simple module for DNN 3.x that allows the ...
Listing of Free Dotnetnuke 3 modules Does not move roles, only user accounts to new install of DNN. .... Codegalaxy FreeForm, This is a simple module for DNN 3.x that allows the site admin. to ...
Free DotNetNuke Modules Directory DotNetNuke Free modules directory - read information about DotNetNuke Free Modules quickly and ... Amazon for DNN, [3183]. Codegalaxy FreeForm, [3098] ...
WWWCoder.com Feedage.com Other free modules also available to download from the site as well. ...... Codegalaxy FreeForm. Wed, 01 Jun 2005 20:02:06 GMT. This is a simple module for ...
Listing of Free Dotnetnuke 3 modules Does not move roles, only user accounts to new install of DNN. .... Codegalaxy FreeForm, This is a simple module for DNN 3.x that allows the site admin. to ...
Free DotNetNuke Modules Directory DotNetNuke Free modules directory - read information about DotNetNuke Free Modules quickly and ... Amazon for DNN, [3183]. Codegalaxy FreeForm, [3098] ...
WWWCoder.com Feedage.com Other free modules also available to download from the site as well. ...... Codegalaxy FreeForm. Wed, 01 Jun 2005 20:02:06 GMT. This is a simple module for ...




Search This Site:










document mgr. that let's you save to the webserver?

item databound event

login and iis issues

need hosting recommendation

another backwards microsoft product forced onto the public

html output - treeview

custom page template problem

how to manage membership users

event calendar firefox

v1.1 tree view control databinding??????

recordset.feilds conversion to asp .net?

web part code question

converting from visual studio2003 to 2005

active directory and iis

file, line,column,project columns not displaying data in error list!

asp and html pages

security: application and data separation

module to open a new window

windows authentication

how to have more than one dnn project in vs.net?

sponsers

how to resize t.gif, l.gif, i.gif... in treeview

do not see a reference in vs 2005

conditionally display delete button in gridview depending on role?

internet explorer cannot open the internet site (dnn2.1.2)

where does user aspnet come from?

company info

handling unicode characters in cookie

sourcecode request.. administratring users on remote website?

masterpages

 
All Times Are GMT