Click here to Skip to main content
15,901,284 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have 1 asp page . this page view the content of 1 xml file : "SinhVien.xml".
Then, in the asp page i have 1 textbox "txtMaSV" for get the data input and 1 button "btnTim".
when user type the id in the txtMaSV and click btnTim, it pass the id from asp page to xslt file. in xslt file , it get the id of asp and usr for browse.
for example : <xsl:for-each select="SinhVien.xml/SinhVien" xmlns:xsl="#unknown">
<xsl:value-of select="[MASV=id">
i don't know how to pass the id from asp page to xslt file, and get it from xslt file.
give me your idea, thanks!
Posted

1 solution

You tagged your question with ASP.Net but reffered to ASP. I am assuming it is ASP.Net.

Now, I googled for XSL:param[^] and trust me the the first few results look promising.

have a look at :
http://projects.ischool.washington.edu/tabrooks/545/ContentManagement/PassingParameters.htm[^]
 
Share this answer
 
Comments
SaoLamEmDau 13-May-11 9:16am    
oh, thanks. i'll try it!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900