整个页面刷新按提交按钮 [英] whole page refresh pressing submit button

查看:89
本文介绍了整个页面刷新按提交按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有中继器来显示数据,并且我有文本编辑器将数据插入中继器,并且我有fileupload控件来上传文件.
当在编辑器中插入数据并附加文件时,我按提交按钮,然后刷新整个页面,我尝试使用updatepanel但失败了. .

hello i have repeater to show the data and i have text editor to insert the data in repeater and i have fileupload control to upload the file.
when insert data in editor and attach file then i press the submit button then whole page refresh i try with updatepanel but failed..i want insert data with file upload inside repeater without refreshing the whole page.tell me as soon as possible thanks in advance.

推荐答案

我想在转发器内部插入文件上传数据,而无需刷新整个页面
您需要做两件事:
1.使用ASP.NET AJAX-更新面板进行部分页面更新.
2.使用Ajaxtoolkit AsyncFileUpload控件使其与更新面板一起使用.

普通的fileupload控件需要整页回发,因此您需要在上面有第2点.

以下链接会有所帮助:
AsyncFileUpload演示 [ AsyncFileUpload控件-Ajax控件工具包中的新控件 [ ^ ]
UpdatePanel控件概述 [
i want insert data with file upload inside repeater without refreshing the whole page
You need to do two things:
1. Use ASP.NET AJAX - Update Panel for partial page update.
2. Use Ajaxtoolkit AsyncFileUpload control to make it work with Update Panel.

Normal fileupload control needs a full page postback, so you need to have point 2 above.

Following links would help:
AsyncFileUpload Demonstration[^]
AsyncFileUpload Control - New Control in Ajax Control ToolKit[^]
UpdatePanel Control Overview[^]

Try!


在ajax中使用asyncgronustrigger ...
use asyncgronustrigger in ajax......


这篇关于整个页面刷新按提交按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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