Hi,
I use the <asp:xml> control, xml and xslt to generate a HTML for users to
input data, here is my HTML snippet in a web form:
<asp:Xml id="Xml1" runat="server" TransformSource ="entry.xsl"
DocumentSource= "data.xml"> </asp:Xml>
The form display correctly in the browser, the question is, how do I get the
values users input?
To clarify a little bit, with data.xml and entry.xsl, Xml1 generated HTML
form like this:
<table border="0">
<tr>
<td>
Address: <input type="text" id="txtAddress " name="txtAddres s"
class="underlin e" onchange="updat e1();">
</td>
</tr>
<tr>
<td>
Name: <input type="text" id="txtName" name="txtName" class="noborder "
onchange="updat e1();">
</td>
</tr>
</table>
The users can input something into address and name fields. In the web form
code behind file, I would like to get values user inputted.
Thanks in Advance 1 1221
Danny,
In order to get the values in your server code, the input fields need to
be server controls. Just transforming xml to emit html <input> elements
doesn't make them server controls, and your server code will have no
visibility to their values.
I don't know the details of your situation, but if the page posts back
to itself, these <input> elements will still send data to the server, so you
could get these values by using Request.Form["txtAddress "] and
Request.Form["txtName"].
Best regards,
Jeffrey Palermo
"Danny Ni" <dn**@yahoo.com > wrote in message
news:ep******** ******@TK2MSFTN GP10.phx.gbl... Hi,
I use the <asp:xml> control, xml and xslt to generate a HTML for users
to input data, here is my HTML snippet in a web form: <asp:Xml id="Xml1" runat="server" TransformSource ="entry.xsl" DocumentSource= "data.xml"> </asp:Xml>
The form display correctly in the browser, the question is, how do I get
the values users input?
To clarify a little bit, with data.xml and entry.xsl, Xml1 generated HTML form like this: <table border="0"> <tr> <td> Address: <input type="text" id="txtAddress " name="txtAddres s" class="underlin e" onchange="updat e1();"> </td> </tr> <tr> <td> Name: <input type="text" id="txtName" name="txtName" class="noborder " onchange="updat e1();"> </td> </tr> </table> The users can input something into address and name fields. In the web
form code behind file, I would like to get values user inputted.
Thanks in Advance This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Todd |
last post by:
Our ASP.NET (C#) application accepts form entry and saves
inputed data in XML.
We are finding that users are sometimes cutting and
pasting special characters (from MS Word) into these
forms. The data is saved successfuly, but when the XML is
later read the following error is encountered depending on
the invalid character found:
This is a sample:
|
by: Fresh Air Rider |
last post by:
Hello
Could anyone please explain how I can pass more than one
arguement/parameter value to a function using <asp:linkbutton> or is
this a major shortfall of the language ?
Consider the following code fragments in which I want to list through
all files on a directory with a link to download each file by passing
a filename and whether or not to force the download dialog box to
appear.
|
by: LaLaBoy |
last post by:
I have a problem when reading Special Characters in an XML File
I read the following article
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q30806
However, It doesn't not solve the character problem for "<"
any idea?
Thank Yo
|
by: Greg Collins [MVP] |
last post by:
I've got a web site I've built that uses an InfoPath form to generate an xml file. This file is then transformed within the default.aspx page to create the contents of the page.
The problem I'm running into is that I need to be able to return more ASP.NET code as part of the return value of the <asp:Xml/> call, but it does not get processed at this point.
The call: <asp:Xml id="myXml" runat="server" DocumentSource="myFile.xml"...
|
by: Random |
last post by:
I would like to be able to read an Xml file with an <asp:Xml> Web Control
and using XSLT dynamically write <asp:Xml> Web Controls to the page using
the information from the first Xml file, which would in turn perform their
own transform based on existing xml and xslt files.
As another way of accomplishing my goal, I was thinking I could have a
dataset tied to a repeater or table control that would write out the
<asp:Xml> controls for...
| |
by: lreames |
last post by:
I am new to XML, but not ASP.
I have the following XML that I load via
Dim xml
Set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = False
xml.loadXML xmldom.xml
|
by: Mark Rae |
last post by:
Hi,
I'm interested in what people think of the new <asp:Menu> control in
comparison to other 3rd-party menu controls. E.g. until v2, I used the AITOC
FlexMenu (http://www.aitoc.com/en/flex_menu_net.html) with no significant
problems. However, now that I've had a chance to evaluate the built-in
<asp:Menu> control, I find that it does everything I currently require.
I'm also interested to know if people are hardcoding the menu in the...
|
by: Maxwell2006 |
last post by:
Hi,
We have Excel 2003 templates and we need to automatically generate excel
2003 xls files based on our SQL server database tables' data. Since we need
to generate the xls files at out asp.net server side, I assume we cannot use
excel automation based on the license agreement.
What would b the best way to do that?
Any help would be appreciated,
|
by: =?Utf-8?B?RGlmZmlkZW50?= |
last post by:
Hello All,
I have a simple web form that has an <asp:xmlcontrol. I am using a
dataset's getXml() and binding it to the Document property of xml control. I
am also using an XSLTransform object to render the content as an HTML.
Everything is working fine and I am able to render the data in the form of a
table. Here is my problem:
When I want to copy the table that is rendered on the webpage along with the
data, I am not able to copy...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |