Hi,
I am trying to load my second SmartForm into a C#.Net project. The first form (Plan Page) is working fine. I copied the first form and renamed it, made it a Client Page and linked it as a client event to my K2 process. If I try to open by setting it as the Startup page of my project - because I want to see what it will look like - I get the following error:
Server Error in 'MyProjectName' Application.
An error occured during the parsing of a resource required to service this request. .....Could not load type "MyProjectName.MyFormName"...
The error occurs on Line 1 which is:
<@ Page Language="c#" AutoEventWireup="true" Codebehind="FormName.aspx.cs" Inherits="MyProjectName.MyFormName" ClassName = K2SmartForm"%>
What am I doing wrong?
Page 1 / 1
Instead of copying the form, create a new form and copy the content of the first form (Ctrl + A, Ctrl + C then Ctrl + V on the second form). Then specify the solution, project, process and activity
Because just renaming the file does not rename the class name which is then different between the form and the class behind... It's more a .net error than a K2 one
hope this help
Because just renaming the file does not rename the class name which is then different between the form and the class behind... It's more a .net error than a K2 one
hope this help
Thanks for your suggestion!...
But, I have tried loading a brand new K2 form and the same thing happens. I want to create all the .aspx pages first and then add code.
When adding a new K2form, on the code behind page, there is a this.URL in the InitializeComponent method. If I try to access the web page through this - the error also occurs.
Perhaps you are not able to view the pages in the browser until all the controls, etc are linked?
But, I have tried loading a brand new K2 form and the same thing happens. I want to create all the .aspx pages first and then add code.
When adding a new K2form, on the code behind page, there is a this.URL in the InitializeComponent method. If I try to access the web page through this - the error also occurs.
Perhaps you are not able to view the pages in the browser until all the controls, etc are linked?
Well, I've worked out why the pages don't load... I am getting an invalid serial number error. Of course, this is true as I am not running the web pages as part of a process. I am browsing to them from an IE window. My question is:
Is it possible to build a K2 form without linking it to a process and then browse to it? The reason for my TOTALLY unreasonable request is that when creating web pages, the client is not always happy with the layout. I would like to first create the layout, have it signed off by the client and THEN add it to the K2 process.
Is it possible to build a K2 form without linking it to a process and then browse to it? The reason for my TOTALLY unreasonable request is that when creating web pages, the client is not always happy with the layout. I would like to first create the layout, have it signed off by the client and THEN add it to the K2 process.
Hi,
Haven't tested this but you can try to change the Page Type to "Plan page" during development and browse to the page. When you're happy with the layout, just switch the page type to "Client page". Remember in order to open a plan page, the user you are logged in as, will need Start permissions on the K2.net process.
Hope this helps,
Ockert
Haven't tested this but you can try to change the Page Type to "Plan page" during development and browse to the page. When you're happy with the layout, just switch the page type to "Client page". Remember in order to open a plan page, the user you are logged in as, will need Start permissions on the K2.net process.
Hope this helps,
Ockert
Thanks so much! That works perfectly for me.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.