Click here to Skip to main content
15,896,606 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
GeneralRe: ASP:menu control question Pin
Declan Bright25-Mar-08 4:16
Declan Bright25-Mar-08 4:16 
GeneralSend Mail Pin
mehrdadc4825-Mar-08 2:59
mehrdadc4825-Mar-08 2:59 
GeneralRe: Send Mail Pin
eyeseetee25-Mar-08 3:07
eyeseetee25-Mar-08 3:07 
QuestionHow to retrieve the value of textbox using session Pin
anpm25-Mar-08 2:18
anpm25-Mar-08 2:18 
GeneralRe: How to retrieve the value of textbox using session Pin
Jesse Squire25-Mar-08 2:38
Jesse Squire25-Mar-08 2:38 
QuestionRe: How to retrieve the value of textbox using session Pin
anpm25-Mar-08 14:44
anpm25-Mar-08 14:44 
GeneralRe: How to retrieve the value of textbox using session Pin
Jesse Squire25-Mar-08 15:44
Jesse Squire25-Mar-08 15:44 
QuestionRe: How to retrieve the value of textbox using session Pin
anpm25-Mar-08 16:06
anpm25-Mar-08 16:06 
GeneralRe: How to retrieve the value of textbox using session Pin
eyeseetee25-Mar-08 3:00
eyeseetee25-Mar-08 3:00 

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.