i want to open new window ,but i dont want to provide url link in script because i want to hide this link from user.so is there any method to get URL from server and fire event to open new window after cliking button which has some server logic on that basis serever return URL.
I have developed a web application which contains aspdotnet treeview control. In this treeview control has binded with some database value.. that controls has one parent node and more than one child nodes for each parent node.
my problem is here, when the user clicks the parent node, I need to fire a javascript onclick function before the server side event(SelectedNodeChanged) called..
If I provide javascript to the parnet node when it is binding, then I could not fire the server side event(SelectedNodeChanged).
How to provide onclick javascript event for parent node in treeview control even the parent node has SelectedNodeChanged event.
I am having trouble with the Asp.net page life cycle. I am trying to create a custom menu using HtmlTextWriter with an asp.net LinkButton to fire a server event. I can not get the server event to fire and I get the 'object reference not set to instance of object' when I click my linkbutton. Here is some code.
protected string CreateModuleMenu() { var modules = ModuleManager.GetModulesByDeveloperId(Developer.DeveloperID); StringWriter sw = new StringWriter(); ClientScriptManager cs = Page.ClientScript;
I have a multi view with 2 view in my page. when page is loading first view is set active. by click on a click I set active second view that contain AsyncFileUpload1. but UploadedComplete event doesn't fire. This control works outside of view correctly but into view doesn't work. I have to use multi view and this 2 view in my web page. what can I do?
How can I fire a ModalPopupExtender on the SelectIndexChanged event of a dropdownlist?
I only want it to fire when a particular value is chosen in the list.
I tried leaving the PopupControlID value out and calling .Show() on my extender in the onselectchanged event, but it would not allow me to have a blank PopupControlID. If I set the PopupControlID to the ID of my dropdownlist, the popup fires as soon as I click on the dropdownlist control.
I have my ReorderList setup, and it seems to work. It doesn't give me any errors, and it allows drag/drop of the entries.
BUT, it never updates my datasource. I have tried putting breakpoints on the update events, both on the reorder list, but also on the datasource, none fires.
I cannot get the asyncfileupload to fire the uploadcomplete event at all.
I did a test:Protected Sub AsyncFileUpload1_UploadedComplete(ByVal sender As Object, ByVal e As AjaxControlToolkit.AsyncFileUploadEventArgs) Handles AsyncFileUpload1.UploadedComplete
I need a Slider that will only postback when the slider has been moved. Can this be achieved with SliderExtender?
I have a TextBox with autopostback=true, within an updatepanel within a usercontrol. The TextBox is extended by SliderExtender (default settings).
The TextBox's TextChanged event fires perfectly when the slider is moved (MouseUp - standard extender setting). The aspx page is partially posted back, and all is well.
However, if another usercontrol on the same aspx page causes a partial postback, the SliderExtender causes the TextChanged event to be raised - for no aparent reason. This is causing problems.
Is it possible to prevent postback unless the slider has actually been moved?!
I have a CollapsiblePanelExtender (ext1) with a second CollapsiblePanelExtender (ext2) within it. Is it possible that when ext1 is extnended that it checks the value of a dropdownlist within ext1 and depending on the value of the ddl then extend ext2?
I am trying to create an HTML button that can use a C# server side delete function. since I don't know how many results I will have at the page, the control is created dynamically when the end user searches for current Messages: [CODE] CmsContactUsContent += string.Format(" "" + "" + "
I've got an website that needs to know when someone has closed a details page. Is there a way to fire a post back using Javascript to call a particular Sub or Function on the Unload event?
I have a page that is using the Ajax asynch file uploader. What I would like to have happen is after the file is uploaded I would like to have it displayed in a list on the page. I am looking for a way to fire a callback event when the file upload is complete. Is it possible using the asynch fileupload control?
I have a modalpopup that i have opening on a radiobutton selection. That works great, opens when it should and closes when you click cancel. BUT i have the following on my cancel button event that is not firing
[Code]....
I also have a button event for my "OK" button and that works great, but my cancel event doesnt seem to fire or work. Maybe the ClearSelection() is not what i need..
I want to clear the radiobutton if they cancel out of the ModalPopUp so they can make a new selection, since its a required field.
Basically I am using a ModalPopUpExtender and it works fine, except that the OK button has an OnClick event that only fires when it is clicked for the 2nd time.. obviously i can progress with populating my OnClick event method for later on - its just annoying that a user has to click my button then ok in the pop up twice before they can get their intended result!
The AsyncFileUpload control turns green, indicating that the attachment was successfully uploaded, but the designated method for handling the server side UploadedComplete event is never executed.
I am creating nested accordion using the object model and have created buttons in the inner accordion's accordion pane. The buttons look great but issue is that the buttons does not fire thier click event. They just do the postback of the page and ignore the event.
I want to show a pop-upextender on the pre_init event but all my panes are added dynamically so it does not give any rows.
Elsewhere in the page, some JavaScript opens a popup. When the popup is filled out and submitted, I want to use JavaScript to fire that OnSelectedIndexChanged event in the opener page. I found some other code that does something similar:
if (window.opener != null ) { var cf = window.opener.document.forms['aspnetForm']; if (!cf) { cf = window.opener.document.aspnetForm; [code]...
i have a grideview which their is a LinkButton control i want to wite some code in that event i i do that. I am providing the code for better understanding