如何在超链接的帮助下更改数据库 [英] How to change database with the help of hyperlink

查看:122
本文介绍了如何在超链接的帮助下更改数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我有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.


这篇关于如何在超链接的帮助下更改数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆