I am looking for the most standard way to archive modal dialogs in ASP.NET MVC. An example of what I am trying to do is when I select an item from my "list" page, I want the "details" page to be a popup over the list and NOT a new page. I'm not looking for a hack. I want it to be a solution that follows the ASP.NET MVC pattern. I wou...
Hi All,
I have an ASP.Net web page, which uses a Master Page template.
The page has an UpdatePanel with some basic AJAX functionality (change the value of a DropDownList and the UpdatePanel will refresh). This is all working nicely.
I also have a link that pops up a nyromodal Modal, inside the modal, another ASP.Net web form is loaded...
Hi!
This is my aspx code:
<asp:UpdatePanel ID="UpdatePanel1" runat="server"
UpdateMode="Conditional" RenderMode="Inline" ChildrenAsTriggers="False">
<ContentTemplate>
<asp:Button ID="Save" runat="server" Text="Save"
onclick="Save_Click" CssClass="boton" />
</ContentTemplate>
</asp:UpdatePanel>
This button is on ...
I have an update panel in a repeater
(Edit: I removed Runat and Id attributes to make the post look cleaner)
<asp:Repeater>
<ItemTemplate>
<asp:UpdatePanel UpdateMode="Conditional">
<ContentTemplate>
<asp:LinkButton onclick="btnCallback_Click" />
</ContentTemplate>
</asp:Upda...
The JavaScript prompt command
prompt("sometext","defaultvalue");
is a useful way to easily prompt the user to provide a value. But it can't really be a part of any polished web 2.0 application (The dialog looks horrible).
Is there any existing component to display a modal dialog that will prompt a user for a value? I can use a pure J...
There were a lot of promises and hopes, but did MS actually get around to including ASP.Net AJAX in either WSS3 SP1 or MOSS SP1? None of the release notes mention it...
...
I'm using the HTMLEditor control from the ASP.NET AJAX Control Toolkit. Works fine. I'd like to hook a keyup (onkeyup) event so that I can do things like display an (approximate) running count of the number of characters in the editor.
I've deduced that the editor is ultimately a textarea element inside an iframe element. I am able to a...
I'm using the new Microsoft ASP.NET Ajax Combobox control in my web application and I'm having trouble figuring out how to programatically set the selected list item. For example, I have a form to accept addresses and a combobox to accept a city name. After the user enters and saves and address, I'd like to reset the form, including the ...
Hi,
i'm reading the book manning - asp.net ajax in action. on page 54-58 client delegates and callbacks are described.
in short:
with the client delegate you can change the this variable in the event handler itself to reflect another object. (so it won't be the DOM object that triggered the event for DOM events)
with a callback you c...
I have a grideview that displays rows that will be deleted across servers by the click of a delete button in the footer of the grid. This delete will take a long time so i want an updateprogress bar. I'm not really familiar with it so I don't know where to begin.
...
When using the Accordian control from the MS Ajax control toolkit, do I even need to use the Panes? It seems that I can use HeaderTemplate and ContentTemplates to display my data without having to use any AccordianPanes at all. Is this recommended?
...
Greetings!
I have a "code builder" page where users select various radio buttons and it generate HTML markup (mostly SCRIPT tags) that they can use on their page to display some data. There is also a "preview" area so they can see the results before they copy/paste the code in their site. The form exists in a FormView control and is w...
The Ajax request is as follows:
<% using (Ajax.BeginForm("Update", new AjaxOptions
{
UpdateTargetId = "message",
InsertionMode = InsertionMode.Replace,
OnSuccess = "success",
OnFailure = "error"
})) { %>
In the controller action method I tried to add ModelState Error as well as throw an exception bu...
Is it possible to re-use a client-template using asp.net ajax 4.0 client templates? I have a scenario as shown in the example below. I have two questions here:
I could not get the if conditionwork in client-template
How can I re-use the u l tag
template for three types of
"column" data (col1, col2, col3 in
example json)?
sample c...
Hello.
I want to show a modal popup when a user click on an asp button. The user must select an option of a panel. The value of the option selected must be saved to an input hidden and then the asp.net button must do a PostBack.
Can I do that?
Thank you!
...
Hello!
I need to show a modal popup if the user has selected a treeview's node on a specific depth.
Is there any way to show a modal popup on a conditional way?
Thank you!
...
Simply put I want to call public static methods decorated with WebMethod attribute inside my code-behind C# file from jquery.ajax to get some json and other simple stuff (in different functions). But instead I'm getting whole page :'(
I'm not using asp.net AJAX though I'm developing for .NET 3.5 framework and using VS 2008. (There are s...
An ex-colleague developed an application that was pretty much an editable grid (think timesheet).
MS Ajax was used for it and the grid was wrapped in an Update panel.
To make things worse the complex object graph was being saved to viewstate so every time the page refreshed i.e. a cell was updated, all the grid and viewstate would ...
I know I can hook into the client side events to run JavaScript after every partial postback; however, I want to do something like this:
protected void FooClicked(object sender, EventArgs e) {
ClientScript.RegisterStartupScript(GetType(), "msg", "showMsg('Foo clicked');",true);
}
I know I could totally hack it with hid...
I have the following:
Master Page
StatusDisplay - Ascx user control that shows MS AJAX Exceptions on PartialPostback or Update Happenning during beginRequest to endRequest
Pages with Multiple levels of .ascx Web user controls, some loaded dynamically
Currently, when postback happens in Update Panel, the StatusDisplay shows "updating ...