我需要FileUpload的Browse Click事件 [英] I need FileUpload's Browse Click event

查看:69
本文介绍了我需要FileUpload的Browse Click事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个面板中有两个部分.当我单击浏览文件上传"时,应禁用其他部分的文本框的必需属性.当我单击文件上传浏览"按钮旁边的上传"按钮时,应该启用它们.
任何帮助请尽快

预先感谢

I have two sections inside one panel. when i click on Browse of File Upload, the required property of other sections''s textbox should be disabled. and when i click on Upload button next to File Upload Browse button they should be enabled.
Any help please asap

Thankx in advance

推荐答案



对我来说,这似乎很简单,或者我没有收到您的确切问题,

在这里,我建议您首先禁用所有文本框控件.并且在上载按钮单击事件时,可以动态地启用文本框.

正在使用,
Hi,

Its seems very simple to me, or i am not getting your exact question,

Here what i suggest you to disable all the textbox control initially. And at the time of Upload button click event, dynamically you can enable the textboxes.

using,
textbox1.Enabled = true;


希望它对您有用,
祝您好运.


Hope it works for you,
Best luck.


在我的页面执行后,我们将在不同的aspx页面上执行onprerender事件.阻止我禁用属性.确实我需要文件上传的Browse Click事件(如果有),因此,当我选择文件上传时,从资源管理器中选择文件,返回到aspx页面,在上传文件之前,我需要禁用控件,该控件不会受到其他OnPreRender和OnInit事件.

那对我有用
请帮助
We have onprerender event on different aspx page to execute after my page executes. that stops me to disable properties. Exactly i need File Upload''s Browse Click event (if any), so when i select File Upload, select file from explorer, get back to aspx page, before uploading file, i need to disable controls, which should not be affected by other OnPreRender and OnInit events.

Then it works for me
Please help


嗨.

您可以处理Upload控件的onselect javascript事件.并执行所需的任何操作.
Hi.

you can work on Upload control''s onselect javascript event..and do whatever you required.


这篇关于我需要FileUpload的Browse Click事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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