Go Back   WebMasters.org Forums > Webmasters.org Lounge > General Webmaster Issues

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-13-2009, 12:32 PM
Junior Member
 
Join Date: Oct 2009
Posts: 1
Default How to bind XML in radio button list

From xml we can bind the data to radio button list?



see the following code:


<%@ Import Namespace="System.Data" %>

<script runat="server">
sub Page_Load
if Not Page.IsPostBack then
dim ds=New DataSet
ds.ReadXml(MapPath("name.xml"))
radio.DataSource=ds
radio.DataValueField="value"
radio.DataTextField="text"
radio.DataBind()
end if
end sub

sub show(s as Object,e As EventArgs)
lbldisplay.text="Your favorite name is: " & radio.SelectedItem.Text
end sub
</script>

<html>
<body>

<form runat="server">
<asp:RadioButtonList id="radio" runat="server"
AutoPostBack="True" onSelectedIndexChanged="show" />
<p><asp:label id="lbldisplay" runat="server" /></p>
</form>

</body>
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-15-2009, 08:34 AM
Senior Member gay
 
Join Date: Oct 2009
Location: U.K.
Posts: 359
Default

Hello
You can use a Web Application Archive (WAR) file created from an Ant build script to deploy Java code to a server. A Web application in Java has a certain format located within a special directory named WEB-INF. This directory contains a lib directory for JARs, a classes directory for unpack aged class files, and a Web.xml file describing the application.

The rest of the Web application is just normal HTML, JSP, images, and directories. These can be zipped into a WAR file and then deployed to a server without having to make any modification to the server. Most important, the server will notice when the WAR file is placed in the web apps/directory and will automatically unpack it and add it to the server without changes to the Server.xml file. Deploying a change is a simple matter of overwriting the WAR file with a new one. The server will notice again, unpack it, and reload all class files.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
html

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:46 AM.



Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
vB Ad Management by =RedTyger=