V
Vishal
Hello,
I have a datagrid and need to show a simple HTML
button in a column. This button contains an OnClick event
and looks like this:
<code>
....
<ItemTemplate>
<input type="button" value="Select"
onclick="Javascript:location.href('bla.aspx?ID=<%#
Container.DataItem("ID")%>')"/>
</ItemTemplate>
....
</code>
Now when I change my view to design view in web matrix it
converts this link to:
<code>
<input type="button" value="Select"
onclick="Javascript:location.href(bla.aspx?ID=<%#
Container.DataItem("ID")% />')"/>
</code>
And ofcourse it doesnt work anymore. If I save it in the
HTML view and DONT go to the design view then it works.
However I need to switch between HTML and Design view. So
how I am supposed to get this working ?
Thanks
I have a datagrid and need to show a simple HTML
button in a column. This button contains an OnClick event
and looks like this:
<code>
....
<ItemTemplate>
<input type="button" value="Select"
onclick="Javascript:location.href('bla.aspx?ID=<%#
Container.DataItem("ID")%>')"/>
</ItemTemplate>
....
</code>
Now when I change my view to design view in web matrix it
converts this link to:
<code>
<input type="button" value="Select"
onclick="Javascript:location.href(bla.aspx?ID=<%#
Container.DataItem("ID")% />')"/>
</code>
And ofcourse it doesnt work anymore. If I save it in the
HTML view and DONT go to the design view then it works.
However I need to switch between HTML and Design view. So
how I am supposed to get this working ?
Thanks