# Visual Studio Web Forms

**URL:** https://discuss.workflowgen.com/c/development/visual-studio-web-forms/22.md

[Latest](https://discuss.workflowgen.com/latest.md) · [Categories](https://discuss.workflowgen.com/categories.md) · [Tags](https://discuss.workflowgen.com/tags.md)

---

## [About the Visual Studio Web Forms category](https://discuss.workflowgen.com/t/about-the-visual-studio-web-forms-category/37)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [November 16, 2016, 5:41pm UTC](https://discuss.workflowgen.com/t/about-the-visual-studio-web-forms-category/37 "2016-11-16T17:41:49Z")

</div>

Discuss Visual Studio Web Forms.

---

## [Copier une colonne d'une gridview dans une nouvelle colonne](https://discuss.workflowgen.com/t/copier-une-colonne-dune-gridview-dans-une-nouvelle-colonne/1949)

<div class="topic-metadata">

**Author:** [@Hajer](https://discuss.workflowgen.com/u/Hajer)\
**Replies:** 1\
**Last updated:** [October 4, 2021, 4:56pm UTC](https://discuss.workflowgen.com/t/copier-une-colonne-dune-gridview-dans-une-nouvelle-colonne/1949 "2021-10-04T16:56:01Z")

</div>

Bonjour à tous , J’ai une gridview qui contient 7 colonnes , la deuxième colonne “type” et la 7 éme colonne “client\_caseid”, je souhaite coder une fonction dans le codebehind : si type = organization donc client\_case…

---

## [WorkFlowGen and MustNa](https://discuss.workflowgen.com/t/workflowgen-and-mustna/1852)

<div class="topic-metadata">

**Author:** [@E0326062](https://discuss.workflowgen.com/u/E0326062)\
**Replies:** 1\
**Last updated:** [May 21, 2021, 3:17pm UTC](https://discuss.workflowgen.com/t/workflowgen-and-mustna/1852 "2021-05-21T15:17:30Z")

</div>

Hi Team, We are using WorkFlowGen platform for Must NA application. We are facing issues on multiple role request, Only one sub request is created if a mustna request hase more than one roles. Kindly help me here by s…

---

## [Set the content type of uploaded file](https://discuss.workflowgen.com/t/set-the-content-type-of-uploaded-file/1832)

<div class="topic-metadata">

**Author:** [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Replies:** 1\
**Last updated:** [March 30, 2021, 1:59am UTC](https://discuss.workflowgen.com/t/set-the-content-type-of-uploaded-file/1832 "2021-03-30T01:59:34Z")

</div>

So, I noticed that when uploading a file and setting it to a variable, it’s content type is always application/octet-stream. I need to be able to change the content type to applicaiton/json of a file I am uploading, bec…

---

## [How to hide/display different section of the form in the Form Archive?](https://discuss.workflowgen.com/t/how-to-hide-display-different-section-of-the-form-in-the-form-archive/149)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 4\
**Last updated:** [February 23, 2021, 11:05pm UTC](https://discuss.workflowgen.com/t/how-to-hide-display-different-section-of-the-form-in-the-form-archive/149 "2021-02-23T23:05:58Z")

</div>

In order to do this, you need to override the WorkflowPage ChangeFormArchiveLayout() method. If you want even more flexibility on the form archive creation, you can override the GetFormArchive() method. This method has t…

---

## [System.Threading.ThreadAbortException: Thread was being aborted. error on workflowfileupload element](https://discuss.workflowgen.com/t/system-threading-threadabortexception-thread-was-being-aborted-error-on-workflowfileupload-element/1736)

<div class="topic-metadata">

**Author:** [@remabd](https://discuss.workflowgen.com/u/remabd)\
**Replies:** 0\
**Last updated:** [December 18, 2020, 3:53pm UTC](https://discuss.workflowgen.com/t/system-threading-threadabortexception-thread-was-being-aborted-error-on-workflowfileupload-element/1736 "2020-12-18T15:53:52Z")

</div>

Hi, we are getting an error when users click on an attached file using the workflowfileupload element. Our code in the Default.aspx that shows the file upload is: \<%@ Register Assembly="WorkflowGen.My.Web.UI.WebControl…

---

## [How to set the stored value to a dropdown list when the dropdown has a databinding happening during page load?](https://discuss.workflowgen.com/t/how-to-set-the-stored-value-to-a-dropdown-list-when-the-dropdown-has-a-databinding-happening-during-page-load/157)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 1\
**Last updated:** [August 17, 2020, 9:28am UTC](https://discuss.workflowgen.com/t/how-to-set-the-stored-value-to-a-dropdown-list-when-the-dropdown-has-a-databinding-happening-during-page-load/157 "2020-08-17T09:28:38Z")

</div>

Issue WorkflowGen assigns values to your form fields before the Page\_Load event occurs, so any databinding of a drop-down list (e.g. read values from database) that happens in your Page\_load section will reset the select…

---

## [I get the following error: “System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.” when I add a .Net UserControl to my web form](https://discuss.workflowgen.com/t/i-get-the-following-error-system-collections-generic-keynotfoundexception-the-given-key-was-not-present-in-the-dictionary-when-i-add-a-net-usercontrol-to-my-web-form/185)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [October 20, 2009, 5:29am UTC](https://discuss.workflowgen.com/t/i-get-the-following-error-system-collections-generic-keynotfoundexception-the-given-key-was-not-present-in-the-dictionary-when-i-add-a-net-usercontrol-to-my-web-form/185 "2009-10-20T05:29:00Z")

</div>

Issue I get the following error: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. when I add a .Net UserControl to my web form. Solution You will get this error if the re…

---

## [How can I add additional data columns in FormData in Simple mode?](https://discuss.workflowgen.com/t/how-can-i-add-additional-data-columns-in-formdata-in-simple-mode/182)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [September 29, 2009, 2:20am UTC](https://discuss.workflowgen.com/t/how-can-i-add-additional-data-columns-in-formdata-in-simple-mode/182 "2009-09-29T02:20:00Z")

</div>

Background In Advanced Mode, you have to manage the form data structure by defining your own Dataset or predefining your XSD (XML Schema) in Visual Studio at design time. In Simple Mode, the WorkflowGen.My class parses a…

---

## [How to add Regular Expressions validation for WorkflowGen](https://discuss.workflowgen.com/t/how-to-add-regular-expressions-validation-for-workflowgen/181)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [September 15, 2009, 6:35am UTC](https://discuss.workflowgen.com/t/how-to-add-regular-expressions-validation-for-workflowgen/181 "2009-09-15T06:35:00Z")

</div>

Regular expressions, also referred to as regex or regexp, provide a concise and flexible means for matching strings of text, such as particular characters, words, or patterns of characters. Typical uses of regular expres…

---

## [When installing the WorkflowFileUpload control, I get a 'Failure to install...' error](https://discuss.workflowgen.com/t/when-installing-the-workflowfileupload-control-i-get-a-failure-to-install-error/102)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [October 14, 2008, 4:58am UTC](https://discuss.workflowgen.com/t/when-installing-the-workflowfileupload-control-i-get-a-failure-to-install-error/102 "2008-10-14T04:58:00Z")

</div>

Issue When installing the /WorkflowFileUpload/ component, I get the following error: Failure to install Toolbox controls via ContentInstaller or Tools.InstallCommunityControls Background If you are experiencing this is…

---

## [How to get the current action name in the form?](https://discuss.workflowgen.com/t/how-to-get-the-current-action-name-in-the-form/144)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [October 10, 2006, 12:50am UTC](https://discuss.workflowgen.com/t/how-to-get-the-current-action-name-in-the-form/144 "2006-10-10T00:50:51Z")

</div>

Add CURRENT\_ACTION Action.Name IN parameter in each action and use the WorkflowPage CurrentWorkflowActionName property to access the action name in the code.

---

## [Why do we use eWorld.UI and not the built-in .NET calendar control?](https://discuss.workflowgen.com/t/why-do-we-use-eworld-ui-and-not-the-built-in-net-calendar-control/145)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [October 12, 2006, 12:52am UTC](https://discuss.workflowgen.com/t/why-do-we-use-eworld-ui-and-not-the-built-in-net-calendar-control/145 "2006-10-12T00:52:01Z")

</div>

The eWorld.UI calendar control is used because it uses client side JavaScript and does not cause any postback, so it is more efficient than then .NET calendar control, which does postback. eWorld.UI is free.

---

## [How to return the user to the same position in the client browser after postback](https://discuss.workflowgen.com/t/how-to-return-the-user-to-the-same-position-in-the-client-browser-after-postback/143)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 12:44am UTC](https://discuss.workflowgen.com/t/how-to-return-the-user-to-the-same-position-in-the-client-browser-after-postback/143 "2007-06-08T00:44:49Z")

</div>

When the MaintainScrollPositionOnPostback property (or page directive) is set to true, the user is instead returned to the last position on the page.

---

## [Taking too much time to fill a webform raises an error](https://discuss.workflowgen.com/t/taking-too-much-time-to-fill-a-webform-raises-an-error/146)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 12:59am UTC](https://discuss.workflowgen.com/t/taking-too-much-time-to-fill-a-webform-raises-an-error/146 "2007-08-01T00:59:16Z")

</div>

If you use an older version of WorkflowGen.My 2.1.5, then the error is: Object reference not set to an instance of an object. If you use the version 2.1.5 of WorkflowGen.My or later, then the error is Session Timeout. T…

---

## [Read-only asp:textbox and JavaScript](https://discuss.workflowgen.com/t/read-only-asp-textbox-and-javascript/151)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 6:31am UTC](https://discuss.workflowgen.com/t/read-only-asp-textbox-and-javascript/151 "2007-10-29T06:31:23Z")

</div>

Issue I have a read-only asp:textbox in my form whose the contents change by means of client-side JavaScript. When the form is submitted, the textbox’s contents are lost, probably because it’s read-only. Is there a way t…

---

## [How do I add a "Save as Draft" functionality to my webform?](https://discuss.workflowgen.com/t/how-do-i-add-a-save-as-draft-functionality-to-my-webform/152)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [December 10, 2007, 8:31am UTC](https://discuss.workflowgen.com/t/how-do-i-add-a-save-as-draft-functionality-to-my-webform/152 "2007-12-10T08:31:04Z")

</div>

You can download is a helpdesk webform process and some samples that demonstrate the Save as draft functionality. To download the helpdesk webform process template, click here (C# sample only). To download the web for…

---

## [How do I make checkboxes required?](https://discuss.workflowgen.com/t/how-do-i-make-checkboxes-required/153)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [December 24, 2007, 12:03pm UTC](https://discuss.workflowgen.com/t/how-do-i-make-checkboxes-required/153 "2007-12-24T12:03:52Z")

</div>

Checkboxes cannot be managed by the FORM\_FIELDS\_REQUIRED control in WorkflowGen, since by definition a checkbox is optional. If you need to have one or more checkboxes on your webform that must be selected (required) be…

---

## [How can I make a drop down list required while not providing a pre-selected default value?](https://discuss.workflowgen.com/t/how-can-i-make-a-drop-down-list-required-while-not-providing-a-pre-selected-default-value/154)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 4:36pm UTC](https://discuss.workflowgen.com/t/how-can-i-make-a-drop-down-list-required-while-not-providing-a-pre-selected-default-value/154 "2007-12-31T16:36:29Z")

</div>

Issue When adding a drop-down list control to a web form and making it required using WorkflowGen’s FORM\_FIELDS\_REQUIRED parameter, one of the items in the list will become the pre-selected default value, which may defea…

---

## [How can I set the maximum length of a multi-line text box in a web form?](https://discuss.workflowgen.com/t/how-can-i-set-the-maximum-length-of-a-multi-line-text-box-in-a-web-form/188)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 10:24am UTC](https://discuss.workflowgen.com/t/how-can-i-set-the-maximum-length-of-a-multi-line-text-box-in-a-web-form/188 "2008-02-11T10:24:32Z")

</div>

Restricting the length of text on a Multi line textbox is not supported by the standard ASP.NET (javascript:void(0)) web control. This can be done by adding the following JavaScript function in your ASPX page: Add a J…

---

## [When a web form loads, how can I make the cursor start in a specific text box?](https://discuss.workflowgen.com/t/when-a-web-form-loads-how-can-i-make-the-cursor-start-in-a-specific-text-box/187)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [February 18, 2008, 3:58am UTC](https://discuss.workflowgen.com/t/when-a-web-form-loads-how-can-i-make-the-cursor-start-in-a-specific-text-box/187 "2008-02-18T03:58:33Z")

</div>

If you want the cursor to start in a specific text box, add the following line of code in your application: C# this.FIELDNAME.Focus(); VB Me.FIELDNAME.Focus You could add it to the page load function as follows: C# p…

---

## [How can I make my webform behave differently depending on the current action in the workflow?](https://discuss.workflowgen.com/t/how-can-i-make-my-webform-behave-differently-depending-on-the-current-action-in-the-workflow/156)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [March 3, 2008, 6:55am UTC](https://discuss.workflowgen.com/t/how-can-i-make-my-webform-behave-differently-depending-on-the-current-action-in-the-workflow/156 "2008-03-03T06:55:12Z")

</div>

If you would like to control the way that a web form acts conditionally depending on the current action in WorkflowGen, add the following code to your project: C# protectedvoidPage\_Load(objectsender,EventArgse){switch(t…

---

## [Why are my web forms getting a Time Out Expired error when I submit the form](https://discuss.workflowgen.com/t/why-are-my-web-forms-getting-a-time-out-expired-error-when-i-submit-the-form/167)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [April 7, 2008, 7:32am UTC](https://discuss.workflowgen.com/t/why-are-my-web-forms-getting-a-time-out-expired-error-when-i-submit-the-form/167 "2008-04-07T07:32:08Z")

</div>

Web forms are session-based, and these sessions are automatically recycled by IIS every 20 minutes by default. To prevent losing your data, you should add the following code to your web forms code-behind’s page construct…

---

## [Can I develop web forms for my WorkflowGen processes using .Net Framework 3.5?](https://discuss.workflowgen.com/t/can-i-develop-web-forms-for-my-workflowgen-processes-using-net-framework-3-5/168)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 7:32am UTC](https://discuss.workflowgen.com/t/can-i-develop-web-forms-for-my-workflowgen-processes-using-net-framework-3-5/168 "2008-04-14T07:32:32Z")

</div>

Yes. The WorkflowGen.My assembly supports development of web forms using .NET 3.5 Framework. However, this requires however that the same version of the framework be installed on the web server where WorkflowGen is locat…

---

## [How do I modify the default behavior of required fields on my form, particularly the message displayed in the alert box when trying to submit the form?](https://discuss.workflowgen.com/t/how-do-i-modify-the-default-behavior-of-required-fields-on-my-form-particularly-the-message-displayed-in-the-alert-box-when-trying-to-submit-the-form/159)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 3:47am UTC](https://discuss.workflowgen.com/t/how-do-i-modify-the-default-behavior-of-required-fields-on-my-form-particularly-the-message-displayed-in-the-alert-box-when-trying-to-submit-the-form/159 "2008-07-21T03:47:00Z")

</div>

The message The field {0} is required (where {0} is the tooltip that was set on the validated control) is the default text displayed to end-users when submitting the form without providing a response to a required contro…

---

## [How do I change the default name and location of my form archive Cascading Style Sheet?](https://discuss.workflowgen.com/t/how-do-i-change-the-default-name-and-location-of-my-form-archive-cascading-style-sheet/189)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 6:40am UTC](https://discuss.workflowgen.com/t/how-do-i-change-the-default-name-and-location-of-my-form-archive-cascading-style-sheet/189 "2008-08-11T06:40:00Z")

</div>

Background As a best practice, we recommend usingCascading Style Sheets (CSS) in your web projects. Cascading Style Sheets are primarily used to reduce complexity and repetition in your design. It is also best practice t…

---

## [Why am I not getting consistent results when using the System.Date macro?](https://discuss.workflowgen.com/t/why-am-i-not-getting-consistent-results-when-using-the-system-date-macro/160)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [September 8, 2008, 11:59pm UTC](https://discuss.workflowgen.com/t/why-am-i-not-getting-consistent-results-when-using-the-system-date-macro/160 "2008-09-08T23:59:00Z")

</div>

Issue When using the System.Date macro to pass the system date to a .NET control on your web form, you may notice that you do not consistently receive the correct date. Background System.Date is an action macro that dat…

---

## [Why am I getting a parser error "Could not load type" in Visual Studio 2008](https://discuss.workflowgen.com/t/why-am-i-getting-a-parser-error-could-not-load-type-in-visual-studio-2008/161)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [September 16, 2008, 12:18am UTC](https://discuss.workflowgen.com/t/why-am-i-getting-a-parser-error-could-not-load-type-in-visual-studio-2008/161 "2008-09-16T00:18:00Z")

</div>

Issue When creating a new web form with Visual Studio 2008 you are getting a parser error that states Could not load type... with the type name of your code-behind page. This can be caused by the fact that Visual Studio…

---

## [Why aren't the values of my read-only fields being submitted to WorkflowGen?](https://discuss.workflowgen.com/t/why-arent-the-values-of-my-read-only-fields-being-submitted-to-workflowgen/191)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [February 10, 2009, 2:46am UTC](https://discuss.workflowgen.com/t/why-arent-the-values-of-my-read-only-fields-being-submitted-to-workflowgen/191 "2009-02-10T02:46:00Z")

</div>

Issue Values from read-only fields on your web form are not being submitted back to WorkflowGen even if you have the proper OUT parameters and process data set up. Background This is not an issue related to WorkflowGen,…

---

## [How can I show/hide an HTML Table using the WorkflowGen Action Parameter “FORM\_FIELD\_HIDDEN”?](https://discuss.workflowgen.com/t/how-can-i-show-hide-an-html-table-using-the-workflowgen-action-parameter-form-field-hidden/172)

<div class="topic-metadata">

**Author:** [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 2:44am UTC](https://discuss.workflowgen.com/t/how-can-i-show-hide-an-html-table-using-the-workflowgen-action-parameter-form-field-hidden/172 "2009-04-14T02:44:00Z")

</div>

Issue How can I show/hide an HTML Table using the WorkflowGen FORM\_FIELD\_HIDDEN action parameter? Solution There are two types of tables in Visual Studio: .NET \<asp:Table\> and HTML \<table\>. The .NET table control is a …

[Next page](https://discuss.workflowgen.com/c/development/visual-studio-web-forms/22.md?page=1)
