Input File control in asp.net

G

Guest

Hi Guys,

I am creating dynamic controls in asp.net. I am having problems creating
dynamic Htmlinputfile controls, and even after being created I cannot view
it. Is there a way of creating such a control dynamically? If so which one is
it ? Ot I how can I create dynamic input file controls in asp.net: -


I got the following code to build the dynamic controls. All of them are
properly displayed except this input file control.

ControlInfo ci = PersistControl("lblPage" + i,
"Label",
1025 + i*27, 350,0, "");

Label lbl = (Label)CreateControl(ci);
lbl.Text = "Page " + i;
ci = PersistControl("txtPage" + i,

"HtmlInputFile", 1025 + i*27, 600,0, "");

HtmlInputFile input_file = (HtmlInputFile)CreateControl(ci);


Will await valuable feedback,

Thanks,

Irfan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top