Click or drag to resize
FileRequestGetFormField Method
Gets the value with the specified name in the form fields of the page with AceoffixCtrl.

Namespace: Aceoffix
Assembly: Aceoffix (in Aceoffix.dll) Version: 5.0.0.1
Syntax
public string GetFormField(
	string Name
)

Parameters

Name
Type: SystemString
The name of form field in the page.

Return Value

Type: String
Returns the value of the form field.
Remarks

When AceoffixCtrl is saving document, you can call this method to get the values of form fields posted from the page with AceoffixCtrl.

To be able to capture the value, the form field must have a name attribute.

Note Note

The Form field can be Input Box, Drop-down Box, Radio, Check Box, TextArea, Hidden Field etc..

Examples

The following code example shows how to use the GetFormField method to get the value of the form field posted from the page with AceoffixCtrl.

protected void Page_Load(object sender, EventArgs e)
{
    Aceoffix.FileRequest freq = new Aceoffix.FileRequest();  
    string strSubject = freq.GetFormField("EditSubject"); 
    // After you get the input text, you can save it to the database.

    freq.SaveToFile(Server.MapPath("doc/") + freq.FileName);
    freq.Close();
}
See Also