-1

I have httpWebResponse object. I want to display the html text (string) contained in httWebResponse object to any element on the webpage using c#.

I tried to set div.innerHtml property to html string. It displays the form view (having buttons, textboxes etc) of the html string. When i click on the button displayed in the div it throws an exception. Also javascript is not working in that div. HTML string contains html tags and script associated to some text boxes. I am able to view the controls or form bu can not interact with the form. How to solve this issue?

4

1 回答 1

0

按钮是htmlControl?它是 sumbit 类型吗?尝试将其类型更改为“按钮”。让我看看你的代码,否则我很难找到问题。

于 2012-06-19T09:47:26.273 回答