AJAX :: Modal Calling VB Code Behind Function?
Feb 16, 2010
I have just discovered the modal function and so am fairly new to it.I have a signup procedure that requires a member to be approved by the website administrator.During this Approval I wanted to display a Modal after the Approve button is pressed, which I have managed to do , but I have a textbox on my Modal so that the administrator can enter special notes about the members application. Once the OK button on the Modal has been clicked I want the Modal to save the content of the textbox back to database along with a couple of other things like changing the application status to approved and entering an approval date. I can do this in the codebehind no problem but how do I get the Modal to call the codebehind function and capture the content of the text box from the modal.I thought I could do this by setting the "OnOkScript" parameter on the Modal Popup Extender to the name of my code behind function but this just errors, presumably because it is looking for a jscript function? So my next step is to call the codebehind function from a jscript on the page.
View 1 Replies
Similar Messages:
Mar 7, 2010
I have the following jquery function
[code]...
but I need a way of calling the growlUI jquery function from my code behind file in C# rather than clicking on a div in the UI.
Is this possible?
View 1 Replies
Feb 22, 2011
I m trying to call a JQuery .click funtion after page postback from code behind. I m using ASP.NET with C#.
View 2 Replies
Jul 2, 2010
I am calling a jquery function after inserting a record to database...
[code]....
But it doesn't seem to work...
View 4 Replies
Dec 27, 2010
I have a java script function which presents a countdown timer.when the timer reaches zero, I want to somehow activate a function on the server side in the code-behind.I understand it is impossible to directly call a server-side function, but is there a simple way to still fire it?I want to fire the (event-handler) code behind function: protected void ButtonFinish_Click(object sender, EventArgs e).
var _countDowncontainer = 0;
var _currentSeconds = 0;
function ActivateCountDown(strContainerID, initialValue) { _countDowncontainer = document.getElementById(strContainerID);
[code]...
View 16 Replies
Oct 22, 2010
I am trying to call a JavaScript function from my ascx control code behind in the catch blockI have tried the below two ways but they don't seem to work.
Page.ClientScript.RegisterClientScriptBlock(typeof(string), "script", "test();", true);
ScriptManager.RegisterStartupScript(Page, GetType(), "err_msg", "alert('error');", true);
View 3 Replies
Mar 27, 2010
I am getting an error while calling a javascript from a dropdownlist which is placed inside a modal pop-up panel. if i am ebeding a small script like onchange="javascript:alert('hello');", it works fine. But if i m using <script> </script> for embeding a javascript its showing 'object doesn't support this property' error. when i debugged it the compiler does not get into the javascript function.
Below is a screenshot of that page.
View 3 Replies
Nov 20, 2010
I am doing a small application in asp.net using JQuery
View 2 Replies
Apr 25, 2010
i am using ajax.beginfrom on my view and want call a jquery function for OnSuccess. if i put the function in scricp tag it is correct but if i call the function from js file the function dosn't run.
what's the problem?
[Code]....
View 2 Replies
May 21, 2010
I am working with vs 2008 and C#. I am having a code behind function as follows(not complete)
protected void btnShowZone_Click(object sender, EventArgs e)
{
string setofalllatsandlongs = null;
foreach (string s in ar)
{
[Code].....
</div>In thIn the click event of the btnShowZone(in bold) i am calling the code behind method and from that i am trying to call the js function using the script manager class.
But the javascript method is not getting called.the control is not going to the js function.
View 3 Replies
Dec 8, 2010
I need to run a JS function before the modal popup closes, this is because I need to close a flash netstream, currently the flv continues to play after modal is closed, you can hear audio and stream continues to download. I have the code to deal with this, but the modal closes before JS is actioned. The JS below talks to swf (videoPlayer_low) and closes the netstream. Note all this pain is to deal with IE :(
<asp:ImageButton ID="btn_Cancel5" runat="server" ImageUrl="images/close.gif" title="close" alt="close" OnClientClick="nsStreamVideo_low();"/>
var _nsStop = addLoadEvent(_nsStop);
addLoadEvent(function() {
[Code].....
View 2 Replies
Sep 17, 2010
i have used PageMethods to access the server side functions in javascript , but now my problem is that with pagemethods your controls will not go throught the full page lifecyle and these leads me to have "Object not set for an instance of an object" error. Now can someone come with a differnt approach without using pagemethods. What i want is to call a server side function , i dont want to pass any parameters to it
View 6 Replies
May 7, 2015
function DatalistFunction(argumentid) {
set_minimum_points_for_session = value;
SetSession(set_minimum_points_for_session);
Redeem(argumentid);
}
this is my code which i am calling on link button onclientclick event.
sometimes what happens is redeem function gets called first and then setsession function gets called. do i need to put some delay or something between the 2 functions, so that they run everytime in their own order
View 1 Replies
Sep 28, 2010
In the content page, I have an ajax accordion pane with couple of panes. Within each of those panes there is 1 user control. Initially all the panes except the first one (AccordionPaneMain) is enabled. The first pane user control contains a form view . In formview itemcommand I am doing some processing and then was trying to enable rest of the panes by calling the function showPanes in the main page by using invoker method. My problem is, the method (showPanes) is getting executed but the panes are not enabled.
Sections of code below
[Code]....
View 7 Replies
Feb 16, 2011
So I have this idea of creating a asp.net user control, to handle all forms of modal popups (whether it be error handling, forms, dialogs, etc).
I already created this before, placing the user control in the top master page, exposing it to all content pages, so I could do something like:
Master.Popup.ShowException(Exception);
And the usercontrol itself would have the necessary markup to look like a modal dialog, and in the show method just do a .Visible = true.
This is all fine, but I've started thinking of implementing a bit of style with jquery. I'd like for the usercontrol to have some sort of jquery animation on show. But I don't know how to go about achieving this, as I don't know how I would call that jquery function from the codebehind instead of the popup.visible = true.
View 2 Replies
Nov 4, 2011
i have two pages nad in my first page if i press submit the page it should show modal popup of my second page. also i need to call the the modal popup from code behind of my first page.
form 1 controlls : textbox and submit button
form2 controls : label and button with text as "Proceed".
if i type sme text in form1's text box and if i hit submit it has to open my form2 asmodal popup and show the text in label which passed from form1. This i need to accomplish from code behind. it is my real situation.
View 2 Replies
Sep 10, 2010
[Code]....
[Code]....
View 11 Replies
Jul 15, 2010
i have created an ajax modal popup extender and i want to be able to grab the values in the textboxes that are on the panel. how do i accomplish this from code behind:
[Code]....
once i have the value i need to perform a stored proc and isnert into the database. i have this part sorted but not sure how to grab the values initially.
View 1 Replies
Feb 21, 2011
I am looking for sample code where a button click on the server side will spawn a modal child page, having couple of controls such as textboxes and a button, where one could enter values in the text boxes and click the button; once the button is clicked, the page should postback to the parent page, where the entered values could be read. There is a video on this site about AJAX control kits describing modal popup, but unfortunately it wouldn't serve my purpose.
View 3 Replies
Feb 10, 2011
I have a modal popup extender and I try to setup the image url, title and text in code behind but all I get is the popup, with no text, title or image and can't see why. All I see is the OOK button near the top of the dialog box. This is what I have:
[Code]....
This is where I try to set the values:
[Code]....
View 4 Replies
Mar 7, 2011
How Can I open Ajax Modal Pop up without Using Target Control Popup Event.. i want to open it by Code Condition in .CS ..... so how can i handle that
View 4 Replies
May 4, 2010
I copied the code from this tutorial:
[URL] into a page in a test project.
The problem is that when i push the client side button, it shows the popup and immediately refreshes (reseting to initial state of course).
Why is this happening in my new web project, but in that tutorial's demo doesn't?
I'm using IE7, FF3.5, VS2008, latest Ajax Control Toolkit.
View 8 Replies
Feb 28, 2011
I want to do something a little bit tricky here. I want to call a server side fonction from the javascript. I know it can be done but I get some errors. This is my Javascript fonction where I want to call the server side fonction:
[Code]....
And this is the code in my VB page:
[Code]....
View 1 Replies
Aug 7, 2010
I'm not sure if this is an easy issue to solve, but I can't seem to figure it out. I have a ModalPopupExtender (obviously) for a panel that contains a two labels, two textboxes, and two buttons (Ok and Cancel). What I would like to do is when the Ok button is clicked, the page post back and the server click event execute (along with normal page events). When I try adding "__doPostBack("ModalOk", "");" as the OnOkScript, the page posts back, but the click event doesn't execute. (the click event is Protected Sub ModalOk_Click(blah blah) Handles ModalOk.Click).
The only way I got it to work (which is fine with me, I just thought I'd ask why it isn't working normally) is by checking to see if the Request.Form("__EVENTTARGET") is equal to "ModalOk". If it is, then I call the ModalOk_Click() sub. Like I said, this is fine with me, but it should be able to be avoided. If the __EVENTTARGET is equal to "ModalOk", then the "Handles ModalOk.Click" event should automatically be called, shouldn't it? Following with the general problem here, how does the server determine which events (other than the page events) to execute (or at least which button.click event)? I understand that the __EVENTTARGET supplies what causes the postback, but if a button is clicked then __EVENTTARGET is not set. So then does the page check the Request.Form for a button? Or is it more complex/simple than what I'm asking?
View 8 Replies
Mar 31, 2011
How can I show an AJAX modal popup based on some code logic and NOT based on a button to be clicked? For example:
if (!User.Identity.IsAuthenticated)
{
Show a modal popup here which says: 'This process is only available to users who are logged into the system.'
}
View 3 Replies