iii
当Ajax没有正确使用其工作时,如Ajax使用更新小组,在将我的档案上上载到更严格的数据库时,皮茨帮助我。
Please advice me Dhanraj.S
iii
当Ajax没有正确使用其工作时,如Ajax使用更新小组,在将我的档案上上载到更严格的数据库时,皮茨帮助我。
Please advice me Dhanraj.S
你们可以在Submit button上设定“后回事”。 之后,你可以在服务器上获得图像。
页: 1
<Triggers>
<ajax:PostBackTrigger ControlID="btnSubmit" />
</Triggers>
这是因为<代码>UpdatePanel没有在asp:FileUpload
上保留档案。
工作是就更新<代码>的纽特纳特波茨坦戈/代码制定<代码> UpdatePanel
供应者有“Button”(请说“UploadFileButton”),更新了更新小组。 请贵小组照此办理。
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:FileUpload ID="TestFileUpload" runat="server" />
<br />
<asp:Button ID="UploadFileButton" runat="server" Text="Upload File"/>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="UploadFileButton" />
</Triggers>
</asp:UpdatePanel>
http://www.asp.net/ajax/ajax Controltoolkit/samples/asyncfileupload/asyncfileupload.aspx”rel=“nofollow”
Probably not what you are looking for but why not use jQuery to upload the file? You can use jQuery Form Plugin to do it. This is the script:
<script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.form.js"></script>
<script type="text/javascript">
$("#myForm").ajaxForm({
success: function (response) {
$( #updateDiv ).append(response);
}
});
</script>
这是超文本:
<form id="myForm" action="http://localhost/Default.aspx" method="post"
enctype="multipart/form-data">
<div id="updateDiv" runat="server">
</div>
<div>
<input type="file" id="filePhoto" name="filePhoto" value="" />
<input type="submit" value="Upload Photo" />
</div>
</form>
当然,你必须处理你编码背后提出的表格,并退回适当的答复。
In my webpages I have references to js and images as such: "../../Content/Images/"Filename" In my code if I reference a file as above, it doesnt work so i have to write: "c:/miscfiles/"filename" 1-...
I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...
Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...
I m looking for best practices here. Sorry. I know it s subjective, but there are a lot of smart people here, so there ought to be some "very good" ways of doing this. I have a custom object called ...
I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...
i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...
For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?
I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!