in Search
 
Home Blogs Forums Marketplace Files
 
 
 

How i want to use HtmlInputFile in IDE Webforms

Last post 07-18-2008, 5:04 AM by sundar.kumar. 2 replies.
Sort Posts: Previous Next
  •  07-17-2008, 7:08 AM 14080

    How i want to use HtmlInputFile in IDE Webforms

    HI ,

    I have created a model using IDE with Web Tasks and I created and attached a Web Form to web task.

    By the web form I want to attach a file. so i have draged the HtmlInputFile control to the web form and tried to get the posted file from the control by like .

    filename = inputFile.PostedFile.FileName

    But it is throwing exception.

    Please Can any one help me .

    thanks in advance.

    K.Sundar Kumar

     

  •  07-17-2008, 11:25 AM 14081 in reply to 14080

    Re: How i want to use HtmlInputFile in IDE Webforms

    Can you provide the code or the exception (or both?)

    Thanks,

    Erin


    Erin Stone
    OpenText Developer Support Engineer
  •  07-18-2008, 5:04 AM 14087 in reply to 14081

    Re: How i want to use HtmlInputFile in IDE Webforms

    HI

    I could not get the PostedFile property of the control by IDE script view intelligence. So I have written as below, but its throwing exception. like mentioned below

    Sample code

    Dim name As String
    name = InputFile6.PostedFile.FileName
    text4.Text = name

    Error Message is.

    http://kprmdev1010/WorkflowForms65/Model172/WebForm3.aspx
    System.NullReferenceException: Object reference not set to an instance of an object.
       at WebForm3.Button11_Click(Object sender, EventArgs e)
       at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     
    Requirement: Actually I want to attach a file using IDE webform's HtmlInputfile control. 
    Can you help me how i can use HtmlInputFile in IDE webforms.
     
    Regards,
    K.Sundar
View as RSS news feed in XML
  Privacy    Site Terms   Contact Administrator