单击数据列表中存在的链接按钮应动态重定向到特定页面 [英] Click on link button present in data list should redirect to particular page dynamically

查看:96
本文介绍了单击数据列表中存在的链接按钮应动态重定向到特定页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

当我单击数据列表中存在的链接按钮时,它会重定向到本地特定页面,但是当托管在服务器上时,当我使用
时显示为System.ComponentModel.Win32Exception: Application not found错误

Hi friends,

When I click on link button present in data list its redirecting to a particular page locally but when hosted on server it is showing error as System.ComponentModel.Win32Exception: Application not found when I use

system.diagnostics.process.start(e.commandarguments)



请任何人帮助我,

谢谢&问候
Vikas



Please anyone help me,

Thanks & Regards
Vikas

推荐答案

要重定向到特定页面,请使用 Response.Redirect 方法而不是system.diagnostics.process.start.
For redirection to the particular page use Response.Redirect method instead of system.diagnostics.process.start.


OnRowCommand上的

,像这样使用

on OnRowCommand, use like that

Response.Redirect(e.CommandName)



这里e.CommandName =您要重定向的页面的URL



here e.CommandName = url of the page where you want to redirect


这篇关于单击数据列表中存在的链接按钮应动态重定向到特定页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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