惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
GbyAI
GbyAI
F
Fortinet All Blogs
Y
Y Combinator Blog
I
InfoQ
Microsoft Azure Blog
Microsoft Azure Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
S
Schneier on Security
NISL@THU
NISL@THU
The Hacker News
The Hacker News
Simon Willison's Weblog
Simon Willison's Weblog
The GitHub Blog
The GitHub Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
F
Full Disclosure
P
Palo Alto Networks Blog
T
The Exploit Database - CXSecurity.com
Know Your Adversary
Know Your Adversary
A
About on SuperTechFans
The Cloudflare Blog
T
Threat Research - Cisco Blogs
M
MIT News - Artificial intelligence
宝玉的分享
宝玉的分享
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
D
DataBreaches.Net
Martin Fowler
Martin Fowler
H
Help Net Security
B
Blog RSS Feed
B
Blog
爱范儿
爱范儿
V
V2EX
I
Intezer
L
LangChain Blog
WordPress大学
WordPress大学
小众软件
小众软件
美团技术团队
Latest news
Latest news
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Tor Project blog
L
Lohrmann on Cybersecurity
Cyberwarzone
Cyberwarzone
Last Week in AI
Last Week in AI
Project Zero
Project Zero
C
Cybersecurity and Infrastructure Security Agency CISA
V
Visual Studio Blog

博客园 - Jilimi

读《创始人》后心得 & 创业十大定律 tfs 查看工作区,删除工作区,删除项目 [转]C#3.0入门系列(十一)-之In, Like操作 [转]用宏自动生成Web.sitemap文件(ASP.NET 2.0) [转]c#一些常用的正则表达式总结 [转]15位身份证号码转18位算法 [转]使用Managed Extensibility Framework方便的扩展应用程序 本Blog重新启用! [转]SQL常用字符串函数 [转]软件团队的建设和软件开发管理 [转]建立“杀手”开发团队 [转]软件团队的如何建设和软件开发如何管理 [转]软件开发团队的“基础设施”建设 [转]ASP.NET 2.0运行时简要分析 [转]杰出人士的20个好习惯 [原创]我的新生活 [转]成长必看的五个故事 用 devenv.exe /resetuserdata 恢复Visual Studio 初始状态 [转]Sandcastle创建帮助文档
[转]asp:UpdatePanel中FileUpload控件应用问题
Jilimi · 2008-11-03 · via 博客园 - Jilimi

asp:UpdatePanel控件中直接使用FileUpload,服务端是无法找到上传文件的。

只要在<Trigger>中添加button就可以解决这个问题
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table border="1" cellpadding="0" cellspacing="0" class="tableframe" width="100%">
                    <tr>
                        <td class="titlebar" style="background-color: #cce4f7; width: 100%; height: 30px"
                            colspan="6" valign="middle" align="center">
                            Order of display</td>
                    </tr>
                    <tr>
                        <td style="width: 15%; height: 27px; background-color: #cce4f7;" valign="middle"
                            align="right">
                            Manually re-arrange:</td>
                        <td align="left" colspan="1" style="width: 35%">
                            &nbsp;<asp:TextBox ID="tbNum" runat="server" Width="30px" Height="17px" MaxLength="2"
                                TabIndex="13">0</asp:TextBox>
                            <ajaxToolkit:FilteredTextBoxExtender ID="ft1" runat="server" FilterType="Custom, Numbers"
                                TargetControlID="tbNum">
                            </ajaxToolkit:FilteredTextBoxExtender>
                        </td>
                        <td align="right" colspan="1" style="width: 15%; height: 27px; background-color: #cce4f7">
                            Data:</td>
                        <td align="left" colspan="3" style="width: 35%">
                            &nbsp;
<asp:FileUpload ID="FileUpload1" runat="server" Height="20px" Width="95%" TabIndex="14" /></td>
                    </tr>
                    <tr>
                        <td align="center" colspan="6" style="height: 30px">
                            <asp:Button ID="Button1" runat="server" CssClass="submit" Height="20px" OnClientClick="return upDataFile()"
                                TabIndex="15" Text="Add" Width="50px" OnClick="Button1_Click" /></td>
                    </tr>
                </table>
            </ContentTemplate>
           
<Triggers>
                <asp:PostBackTrigger ControlID="Button1" />
            </Triggers>
        </asp:UpdatePanel>

AJAX UpdatePanel不能放置FileUpload

正在开发一个网页系统,想全面应用AJAX技术,但是今天却发现这个问题,点击UpdatePanel里面的按钮后,老是返回得到FileUpload1.HasFile=False.

如果使用iFrame的话,不能够实现我最后想要达到的效果;另一种方法需要修改Web.config文件,看起来似乎挺麻烦的(应该不需要下载最新的AJAX吧,因为我就是在VS2008里开发.Net3.5 FrameWorkWeb应用)。

为了赶进度,得先把这个问题放一边了,回来再来解决。

目前暂且时把ScriptManagerEnablePartialRender置为False解决之。

PostBackTrigger不行,因为按钮是放在里面一个AccordionPane里的。