Link to home
Start Free TrialLog in
Avatar of tia_kamakshi
tia_kamakshiFlag for United Arab Emirates

asked on

runat="server" is not working when transforming xml and xslt

Hi,

I am working on ASP.net2.0 using c#

I am rendering  my form using xml and xslt as follows in aspx page

<asp:Xml runat="server" ID="tblTenderDetail" DocumentSource="~/system/xml/ProcurementDocument_Summary.xml" TransformSource="~/system/xml/tenderDetail.xsl" ></asp:Xml>

The output of xml and xslt also creates form on aspx page and displays good on the browser.

As said the transformation of xml, xslt creates form on the aspx page

In xslt I am creating input text field as below

<input type="text" id="txtCompanyName" name="txtCompanyName" runat="server" class="formText" />

as a result, aspx is not rendering this text field as runat="server" and therefore I am not able to read the html textfield in code behind.

I can see textfield on the browser but i am not able to read its values

Is there anyway to force xml and xslt output to runat server or how we can read these values

Please suggest

Thanks & Regards
ASKER CERTIFIED SOLUTION
Avatar of SunnyDark
SunnyDark
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial