asp如何创建dinamic"< a href> "和onclick事件转到myfunction [英] asp how create dinamic "<a href > " and onclick event go to myfunction
本文介绍了asp如何创建dinamic"< a href> "和onclick事件转到myfunction的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在表格单元格中创建一个Web控件和TableCell
我想给这个envet一个链接:
i creating a web control and TableCell
in table cells i want to give a link to this envet:
tmpCell.Text += "<a href='#' runat="server" önclick='<% album_review();%>' style='height:7px;width:40px;border:outset'>download</a>";
来自此活动:
to this event:
private void album_review(object sender, EventArgs e)
{
Response.Write("Da");
}
但它不起作用
请帮助:
推荐答案
在StackOverflow上查看此主题,这可能会对您有所帮助。再次,我可以在OnClick的'O'上看到双点
http://stackoverflow.com/questions/4537490/call-ac-sharp-function-in-asp- net-when-a-html-link-a [ ^ ]
See this Thread on StackOverflow, This may be help you. And Again I can see double dots on your 'O' of OnClick
http://stackoverflow.com/questions/4537490/call-a-c-sharp-function-in-asp-net-when-clicking-on-a-html-link-a[^]
这篇关于asp如何创建dinamic"< a href> "和onclick事件转到myfunction的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文