插入后重定向url [英] redirect url after insert

查看:93
本文介绍了插入后重定向url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在自定义插入表单上插入后重定向到listdetails自定义页面。我正在使用下面的命令。我收到一个错误,说找不到资源。但是当我将其添加到标记时,我从浏览按钮中选择了该URL。页面就在那里。



CommandName =" Insert"文本= QUOT;插入" PostBackUrl ="〜/ DynamicData / CustomPages / tbl_lat_video_inspect_header / ListDetails.aspx"

解决方案

从标记中删除PostBackUrl属性,在你可以使用的行命令事件中< pre lang =c#> Response.Redirect( 〜/ DynamicData / CustomPages / tbl_lat_video_inspect_header / ListDetails.aspx);

插入数据后。


I am trying to redirect to the listdetails custom page after insert on a custom insert form. I am using the command below. I am getting an error saying resource is not found. But I selected the url off the browse button when adding it to the markup. The page is there.

CommandName="Insert" Text="Insert" PostBackUrl ="~/DynamicData/CustomPages/tbl_lat_video_inspect_header/ListDetails.aspx"

解决方案

remove the PostBackUrl property from the markup, in your row command event you can use

Response.Redirect("~/DynamicData/CustomPages/tbl_lat_video_inspect_header/ListDetails.aspx");

after you have insert data.


这篇关于插入后重定向url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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