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