Задайте вопросЗадайте вопрос
 

ОтвеченоPassing parameters from a dataview via querystring

  • 3 июля 2009 г. 21:24prostration Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    I have a dataview that displays the items from a list. I inserted a column and added a hyperlink, from there I added whatever parameters I wanted to pass, this works great. Now how can I do this with a button instead of a hyperlink? I tried to do it by adding a button instead of a hyperlink to my new column and placing this code inside my button: document.location.href = ('http://something/something.aspx' + <xsl:value-of select="@whateverparameteriwanttopass"/>)

    However instead of getting the specific value for the parameter of the row where I click the button like it does with the hyperlink, it always gives me the value of the last item in the dataview. How can I fix this?

Ответы

Все ответы