• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

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

用户头像
it1352
帮助1

问题说明

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

正确答案

#1
错误.您可以使用链接按钮在超链接上触发事件.最好不要使用事件,而是链接到具有查询字符串值的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.

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhcgjhfb
系列文章
更多 icon
同类精品
更多 icon
继续加载