asp.net-ajax

AjaxControlToolkit.CommonToolkitScripts error

扶醉桌前 提交于 2019-12-24 09:47:58
问题 I got following code in my asp.net application <aspext:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Name="AjaxControlToolkit.Common.Common.js" Assembly="AjaxControlToolkit" /> <asp:ScriptReference Name="AjaxControlToolkit.ExtenderBase.BaseScripts.js" Assembly="AjaxControlToolkit" /> </Scripts> </aspext:ToolkitScriptManager> <asp:Panel ID="Panel1" runat="server" /> <script type="text/javascript" language="javascript"> function getPosition() { /

How to pass Model from View to Controller, add items to list, pass back to view

吃可爱长大的小学妹 提交于 2019-12-24 08:29:18
问题 I have a partial view inside a form that append to the form each time a button is clicked. It is a text area with a set of responses. How can I pass my model from the view to the controller, add it to the list model and back to view? I am passing ReviewFormViewModel I want to pass the ListAdhoc to the partial controller and add items to it then pass it back to the view. public class ReviewFormViewModel { ...// other fields public List<AdhocViewModel> ListAdhoc { get; set; } } public class

File upload control not working inside update panel

回眸只為那壹抹淺笑 提交于 2019-12-24 05:52:41
问题 I am using the following code to upload the file <asp:UpdatePanel ID="UpdatePanel18" runat="server"> <ContentTemplate> <asp:FileUpload runat="server" ID="fuImage1" /> <asp:Button runat="server" ID="btnUpload1" Text="Upload" onclick="btnUpload1_Click" /> <asp:ImageButton ID="btnGetImage1" ImageUrl="images/cam.png" Height="25px" Width="25px" runat="server" onclick="btnGetImage1_Click" /> </ContentTemplate> <Triggers> <asp:PostBackTrigger ControlID="btnUpload1" /> </Triggers> </asp:UpdatePanel>

Visual Studio 2010 Professional - Problem Unit-Testing Web Services

这一生的挚爱 提交于 2019-12-24 02:33:32
问题 Have created a very simple Web Service (asmx) in Visual Studio 2010 Professional, and am trying to use the auto-generated unit test cases. I get something that seems quite familiar on this site: The web site could not be configured correctly; getting ASP.NET process information failed. Requesting http://localhost:81/zfp/VSEnterpriseHelper.axd return an error: The remote server returned an error: (500) Internal Server Error. 500 Error Running Visual Studio ASP.NET Unit Test I have tried: 1.

When model is not valid, return to partial view inside a view, with error message using asp.net core

雨燕双飞 提交于 2019-12-24 02:16:36
问题 I´ve got a modal boostrap. I want to show the error of validation on boostrap modal. But when I leave the model empty and click on submit button Its just viewed as a standalone page. Partial view: @model WebApplication1.Models.Book <form asp-controller="Home" asp-action="AddBook" data-ajax="true" data-ajax-method="POST" data-ajax-mode="replace" data-ajax-update="#frmaddbook"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria

Update Progress on processing after fileupload

好久不见. 提交于 2019-12-24 02:09:37
问题 I have a webform with two upload controls and a number of textfields. When the button is pressed the files get uploaded and then get processed. The upload takes no time, but the processing does. I know I can't have an upload control in an update panel, so I can't work out how to use the update progress control to show my progress. My page with an updateprogress control that does work is as follows: <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:UpdateProgress ID=

AjaxToolkit for 3.5 not working

时间秒杀一切 提交于 2019-12-24 01:19:14
问题 I am trying to use ajaxtool kit downloaded from here for colorpicker. When i tries to use this on any of my page, it shows me an error This page is missing a HtmlHead control which is required for the CSS stylesheetlink that is being added. Please add <head runat="server" />. What can be the reason. I am using ToolScriptManager rather than Script Manager as said in the documentation. I am using Asp.net 3.5 and using colorPicker control under a content page and adding ToolScript Manager in the

How to load a partial view inside Kendo Window on request

帅比萌擦擦* 提交于 2019-12-24 00:45:53
问题 I have a kendo window who's data is loaded with an ajax call. This kendo window is acting like a widget editor which allow users to change or manipulate data in order to render different charts etc. Once users have configured all the options they want to preview their chart/graph before being displayed on a page. I have successfully constructed the model window and loaded the initial data with one input (Preview) button but now I don't know how to load the partial view inside the Model window

How to check when the table is inserted a new row and then auto update Repeater using UpdatePane

霸气de小男生 提交于 2019-12-23 21:03:04
问题 I'm programming a Forum. My showcomment.aspx page, I use Repeater to get comment from SQL Database and display them in each topic. I use UpdatePanel to auto update the new comment inserted in Database. <asp:ScriptManager ID="ScriptManager1" runat="server"/> <div onclick="__doPostBack('UpdatePanel1', '');"> <asp:UpdatePanel ID="UpdatePanel1" runat="server" OnLoad="UpdatePanel1_Load"> <ContentTemplate> <asp:Repeater ID="RepeaterComment" runat="server"> .... </asp: Repeater...> </ContentTemplate

How to create UpdatePanel triggers dynamically

无人久伴 提交于 2019-12-23 17:07:32
问题 I have an UpdatePanel in my default.aspx page and the UpdatePanel has asp placeholder, also I have an ascx control that is the navigation of the site and it is created dynamically based on the data in the database, each navigation item is an ImageButton, and my each loop in DataList has HiddenField value of the URL for each corresponded ascx control like Value="~/controls/somecontrol.ascx" Here is what I want/need to do: I need to create triggers dynamically for my UpdatePanel that is in