如何在超链接的帮助下更改数据库

问题描述:

嗨 我有5个超链接(使用& lt; a href& gt;通过C#代码1.e创建),用于gridview中的每个记录,这些记录都重定向到某些页面.但我想再添加1个超链接,以删除该特定记录并刷新在gridview中显示新数据的页面.
据我所知,我们无法在超链接上触发任何事件.我必须为此使用linkbutton,但是如何使用黑白超链接的linkbutton并执行该过程.
非常紧急....任何人都可以解决这个问题....

Thanxs

Hi I have 5 hyperlinks (created throu C# code 1.e using <a href>) for each record in a gridview which redirect to some pages. but i want to add 1 more hyperlink which deletes that particular record and refresh the page showing new data in the gridview.
As i know we cant fire any event on hyperlink. i have to use linkbutton for that but how can i use linkbutton b/w the hyperlink and perform the process.
Its very urgent....can anybody solve this problem....

Thanxs

错误.您可以使用链接按钮在超链接上触发事件.最好不要使用事件,而是链接到具有查询字符串值的URL,该查询字符串值告诉您的页面删除记录.

请不要告诉我们这很紧急.不是.承担您无法完成的任务,以及无法满足您的截止日期,这不是我们的问题.我们免费为您提供帮助.当我们提供帮助时,您会得到帮助.
Wrong. You can use a linkbutton to fire an event on a hyperlink. You are better off not using events tho, and instead linking to a URL that has query string values that tell your page to delete the record.

Please don''t tell us that it''s urgent. It''s not. Your taking on tasks you can''t do and having a deadline that you can''t meet, is not our problem. We help you for free. You''ll get help when we give it.