Click here to Skip to main content
15,920,503 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generaldisabled submit button Pin
Xarzu25-Mar-08 15:07
Xarzu25-Mar-08 15:07 
GeneralRe: disabled submit button Pin
Christian Graus25-Mar-08 15:55
protectorChristian Graus25-Mar-08 15:55 
QuestionRe: disabled submit button Pin
Jesse Squire25-Mar-08 15:56
Jesse Squire25-Mar-08 15:56 
QuestionUsing SMTP to send mail Pin
Mike Hankey25-Mar-08 11:23
mveMike Hankey25-Mar-08 11:23 
GeneralRe: Using SMTP to send mail Pin
led mike25-Mar-08 11:36
led mike25-Mar-08 11:36 
GeneralRe: Using SMTP to send mail Pin
Mike Hankey25-Mar-08 11:46
mveMike Hankey25-Mar-08 11:46 
GeneralRe: Using SMTP to send mail Pin
Vasudevan Deepak Kumar25-Mar-08 19:17
Vasudevan Deepak Kumar25-Mar-08 19:17 
GeneralRe: Using SMTP to send mail Pin
Mike Hankey26-Mar-08 1:53
mveMike Hankey26-Mar-08 1:53 
GeneralQuirky Links and Form Pin
ffowler25-Mar-08 7:53
ffowler25-Mar-08 7:53 
GeneralRe: Quirky Links and Form Pin
pmarfleet25-Mar-08 9:39
pmarfleet25-Mar-08 9:39 
GeneralAuthenticating Web App Using AD Pin
dboy22125-Mar-08 7:40
dboy22125-Mar-08 7:40 
GeneralRe: Authenticating Web App Using AD Pin
Abhijit Jana25-Mar-08 19:05
professionalAbhijit Jana25-Mar-08 19:05 
Questionexporting gridview data into excel, i got this error. Help~ Pin
Dong Kim25-Mar-08 6:16
Dong Kim25-Mar-08 6:16 
GeneralRe: exporting gridview data into excel, i got this error. Help~ Pin
Elizma25-Mar-08 18:12
Elizma25-Mar-08 18:12 
QuestionRe: exporting gridview data into excel, i got this error. Help~ Pin
Dong Kim26-Mar-08 3:57
Dong Kim26-Mar-08 3:57 
QuestionHow to read xml data and make it as HTML table data? Pin
chakran25-Mar-08 4:14
chakran25-Mar-08 4:14 
AnswerRe: How to read xml data and make it as HTML table data? Pin
Mark J. Miller25-Mar-08 7:36
Mark J. Miller25-Mar-08 7:36 
Assuming your xml schema looks something like this:
<br />
<countries><br />
    <country><br />
      <name>Africa</name><br />
      <withoutTax>12</withoutTax><br />
      <inclTax>14></inclTax><br />
    </country><br />
</countries><br />


Load the xml into XmlDocument, create an Xsl file which defines how you want to format the output and accepts an argument named "firstLetter". Load the xsl file into an XslTransform object and call the transform method passing in the XmlDocument and a defined XsltArguments object which includes the letter selected by the user.

In your Xsl document use the "subtring" function to filter the output with an expression like this:

<xsl:template match="/"><br />
	<table><br />
		<tr><br />
			<td>country</td><br />
			<td>without tax</td><br />
			<td>incl tax</td><br />
		</tr><br />
		<xsl:apply-templates select="//country[substring(name, 1,1) = $firstLetter]" /><br />
	</table><br />
</xsl:template><br />
<br />
<xsl:template match="country"><br />
	<tr><br />
		<td><xsl:value-of select="name" /></td><br />
		<td><xsl:value-of select="withoutTax" /></td><br />
		<td><xsl:value-of select="inclTax" /></td><br />
	</tr><br />
</xsl:template>


Where "firstLetter" is the argument passed to the stylesheet.

The output of the XslTransform.Transform method is your Html output for your page.


QuestionResponse.WriteFile and Modal window Issue Pin
Saud AKhter25-Mar-08 3:56
Saud AKhter25-Mar-08 3:56 
GeneralCalling webservices asynchronously using java script Pin
Sql Exciter25-Mar-08 3:38
Sql Exciter25-Mar-08 3:38 
GeneralRe: Calling webservices asynchronously using java script Pin
Jesse Squire25-Mar-08 3:59
Jesse Squire25-Mar-08 3:59 
GeneralRe: Calling webservices asynchronously using java script Pin
Declan Bright25-Mar-08 4:01
Declan Bright25-Mar-08 4:01 
GeneralRe: Calling webservices asynchronously using java script Pin
gauthee25-Mar-08 4:01
gauthee25-Mar-08 4:01 
GeneralASP:menu control question Pin
ChrisFarrugia25-Mar-08 3:24
ChrisFarrugia25-Mar-08 3:24 
GeneralRe: ASP:menu control question Pin
gauthee25-Mar-08 4:05
gauthee25-Mar-08 4:05 
GeneralRe: ASP:menu control question Pin
Jesse Squire25-Mar-08 4:08
Jesse Squire25-Mar-08 4:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.