Javascript - Close Child Aspx Page If Gridview Index Is Changed On Parent Page?
Nov 17, 2011
I have a parent page and child page, both aspx. All is working, but now I would like to close child page, if user leaves child popup page and goes back to parent page and clicks on something else like page index of Gridview. I CANNOT close popup child page if user goes to another app, or some other location, I only want to close if something on parent page is changed.
I have the PageIndexChange Event set up for other purposes, I would just like to add some functionality, perhaps a script manager to close the child popup page if the Gridview index is changed, java or another way which ever works best.I think I might also need to check if the child page is even open.
[Code]...
View 1 Replies
ADVERTISEMENT
Jun 27, 2012
I have 2 pages. parent.aspx and child.aspx. In parent.aspx, i use colorbox and send some value for the child.aspx to popup.
[code]...
child.aspx will popup and shows ASPxGridView base on the value passing from parent.aspx. User will select the data from ASPxGridView. the selected data need to send back to the parent page. I code it in child.aspx.vb page.My problem is how can i get the value from child.aspx.vb and pass it to parent.aspx ?
View 1 Replies
Jul 20, 2009
I have an aspx page with three web controls: one to control the List Users page, one to control the Edit Users page, and one to control the Add User page. I have discovered a method for accessing these elements, but it seems to be limited. Here is what I have done:
Protected Sub editUser(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs)
'set selected user from gridview.
[Code].....
This works in most cases. However, I am unable to access the "enabled" attribute of these web controls. Why is this, and how might I access that attribute?
View 2 Replies
Aug 7, 2009
I have a master page which contains everything that inherits it within a form. A page inheriting from it needs to run some javascript to act on a text field on a page. However, I can't seem to reference that text field through the javascript, since the form begins on the master page. The following line will come up bogus: document.form1.txtFindUser.value = blah.responseText; This is because form1 is defined on the master page, while txtFindUser is on the current page.
View 3 Replies
Nov 18, 2011
Using vb.net on an aspx code behind event, is there away to tell from a parent page if the child page popup is open, and then close the child page if it is truly open based on some event on the parent page, like clicking a gridview edit link, again?
View 1 Replies
Jul 1, 2011
I have written some code there are 27 different functions that execute like this..
[Code]...
View 1 Replies
Jul 3, 2006
Does anyone know why a Page_Load would be called twice on a page when requesting an aspx page?I am using .Net 2.0 with the new .net 1.1 compilation model installed. Whenever I request a page, the Page_Load on the aspx page appears to be called twice, so does the Page_Load on and user controls added to that page.
View 16 Replies
Feb 8, 2011
In an .aspx page with a VB.NET codebehind I am using an IFRAME which would be created inside the repeater control. Since I want to resize the IFRAME based on the content within the page I have been using the resize function obtained from here on the IFRAME onload as shown below.
<iframe id="IframeSubsectionArea" scrolling="auto" width="100%" onload="resizeIframeToFitContent(this)" runat="server">
However it is throwing an error as the method could not be found in the form. Is there any client side script variant for the onload event?
View 1 Replies
Dec 6, 2011
In my code behind, I need to open a little window that displays another aspx page. I have found many ways to do this in JavaScript, but haven't been able to find a way to do it using VB.Net. Looks like you can call window.open() in JavaScript. Is there a VB.Net version of this call, or is this something that has to be done client side?
View 2 Replies
Jul 7, 2010
How do i add my javascript file as an embeded resource to the page after the ajax javascript already on the page? NB want to do this part dynamically to have code wrapped up in usercontrol.
in aspx page: scriptmanager
Code: Assembly: WebResource("Functions.js", "text/javascript")
Code: onPreRender:
ScriptManager.RegisterClientScriptResource(Me.Page, Me.GetType().BaseType, "Functions.js")
This code successfully adds my javascript code to the page but not after the AJAX javascript and so not all of my functions work correctly.
View 1 Replies
Apr 22, 2010
Is there a way to use a VB.NET Forms DataGridView object on an ASPX page?
View 1 Replies
Oct 5, 2010
I wrote a page Page method in my aspx page. in web service method I need to call FindControl method return textbox and get text box value. But my findControl will take MasterPage object to iterate.
see my code
<script type = "text/javascript">
function ShowCurrentDateTime() {
$.ajax({
[Code]....
How to pass Master Page object or Page to Page method?. So I can use in Sared method.
Is there any way I can access Textbox value directly in Page method? I need access couple of controls in Page Method.
View 3 Replies
Nov 4, 2010
HOW TO RUN THE JAVASCRIPT FUNCTION ON PAGE ONLOAD EVENT IN CONTENT PAGE OF MASTER PAGE.? means i have masterpage and the content page of master page namely default.aspx in vb.net.i wanna run javascript function in Default.aspx and i have called the function body onload in master page.when i run my website it shows the error "" Microsoft JScript Runtime Error : Object Expected ""
View 4 Replies
Mar 18, 2011
how to redirect to another .aspx page on clicking on a rectangle on a .aspx page? mention the whole program including headers, preferably in vb
View 1 Replies
Jan 27, 2011
i have the following function in default.aspx i have webusercontrol which have 10 checkboxes and 1 button i want when i click on button1 of user control then it can access the function of default.aspx page ...if i dragged the usercontrol to default.aspx
[Code]...
View 3 Replies
Nov 23, 2010
How do you call a codebehind/class method from a gridview in an aspx page? Also, I need to pass the value of databound column to that method.
<asp:BoundField DataField="Precision" />
<asp:BoundField DataField="MyNumber" DataFormatString="FormatHelper.Format(MyNumber, Precision)" />
View 3 Replies
May 25, 2011
I am making my site compatible to all browsers.For that on one page i am selecting the name from dropdownlist and on click of VIEW(button),i want to open a new window .i also want to send the value and text of ddl on new window. all of this i want to do on onClientClick or onClick of button...
for getting the value i hv tried this code:-
input name="button1" type="button" id="btnview" style="cursor:hand" class="Buttons" title="View" value="View" onclick="alert(document.all('<%=ddlScheme.ClientID%>').value);"
[Code]....
View 1 Replies
Mar 15, 2012
I have following code in aspx page:
<div id="a" runat="server" style="display:block;">
abc
</div>
[code].....
View 3 Replies
Jun 17, 2010
i have my first aspx page that has data thatthe user fills in. it is in format of textbox's and at the end of it all the user clicks submit and all data goes in the database. In the database each record gets an ID field. Now when the users clicks submit and goes to the next page, i want the ID's (they could be 1 to 1000+) from the DB that he just inserted and have them available on the second page. how can i take all the id's from page 1 to page 2? can i do it in session?
View 2 Replies
Sep 27, 2011
Apparently, part of the problem is that while an ASP:GridView has an OnDataBound() event (which you can use in the code-behind), the corresponding HTML table that is produced does NOT, so you can attach that event to JavaScript. (Did I get that right?) So, that's why I'm having trouble with that bit of the issue. Back to the drawing board. I'm a desktop developer (WinForms with VB.NET) transitioning into ASP.NET development. My mind is really bending around the DOM and JavaScript and Session State and all of the stuff that goes along with web development. I'm not stupid, and I've done research (including hours of video watching and hundreds of pages of "Intro to ASP.NET" reading), but I keep hitting the wall with what seem to be fairly straightforward problems.
Basically, my current situation can be summed up as follows:
I have a page that runs a very long process initiated by the user. The long process can take up to a few minutes , so I want to indicate to the user that SOMETHING is happening.When the process has completed, I either have:
a. Results to show in a GridView
b. No results to show
If I have results to show, I want to display them. If I have no results to show, I want to show a label to the user that says "No results to show."
[Code]...
View 3 Replies
Aug 30, 2009
I am trying to check all the checkboxes on a webform (aspx) page, which is inside a master page,depending on the ID of the checkbox. The checkboxes are created dynamically, so I only know the prefix for finding it. So, I need to find these checkboxes by iterating the controls on the page somehow. It's not working out.
[Code]...
View 4 Replies
Aug 16, 2011
I need to post some xml data to a different aspx page and redirect to the same page.I tried the following code it does post to the page sucessfully but i need to redirect to the same page with posted data
[Code]...
View 2 Replies
Jul 8, 2011
Is is possible to retrieve the ID value from the Request.QueryString from a aspx file and pass it onto a ascx file in order to successfully update a profile using the retrieved ID?
View 4 Replies
Apr 17, 2012
I'm using ASP.net; I have a popup browser window that contains an databound gridview with textboxes. It has an "Add to Order" button which takes the values entered and updates the database, then closes the popup and refreshes the parent. This currently works perfectly using window.opener.document.forms[0].submit();self.close(); in a RegisterScriptBlock
I now need to update the database on gridview page chage so that textbox values are not lost. I put window.opener.document.forms[0].submit(); into the PageIndexChanging event of the datagrid, but it does not refresh the parent window. Refreshing the parent window with the order lines helps the user see what they have already ordered. My update database method runs fine, just not the parent browser refresh. I also tried "window.opener.location.href = window.opener.location.href" to no avail.Refresh parent browser window on GridView page change?
View 1 Replies
Sep 11, 2009
Is there a way to trigger a GridView rebind from an html markup page using jQuery or jscript?
I have an ActiveX download control which passes all events via jscript.
So, a have a download complete event on the markup page but not the code behind.
Here is the main aspx page:<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">
<script type="text/javascript" src="aurigmaiuembed.js"></script>
<script type="text/javascript">
function FileDownloader_DownloadStep(Step){
//The file list is going to be downloaded - "2 = About to Start"
if (Step == 2){
[Code]...
View 1 Replies
Oct 28, 2011
I have aspx gridview with checkbox on evryrow, what is required is whenever we check any of the rows, a query should be launched to change the specific agent -each row consist of agentID, Pass, Status- to Paid Status. using javascriptWhat I need to know is how to loop to get the Checked row and get the ID of the row checked so that I can get THe ID of the Agent in thos row so that I can update its status.using javascriptI found something similar on stackflow:t GridView selected row DataKey in JavascriptBut it is not my case, what is needed is at the check of a checkbox a javascript function should launch through which I could update the selected row in grid view after having the index of this row and this all to avoid refreshing the page.
View 2 Replies
May 31, 2012
I have a gridView in ConsumerList page. When Edit button is clicked (in each row), it is navigated to a EditConsumer page. In the EditConsumer page, I need to get the values of the selected row using Page.PreviousPage.[code...
View 2 Replies
Mar 11, 2010
How to refresh a page from another page in asp.net?I have one page called Common.aspx.Once i click some button another page(Company.aspx)should refresh.How It possible?
[Code]...
View 2 Replies
Feb 16, 2012
How do I print the page title and the header of a GridView on each print page?
I want to add page title and GridView heading on each page.
I used page break to break the GridView into multiple pages, but only the first page comes with title and all other are without header and title page.
For a dynamic GridView, my code uses AutoGenerateColumns="true".
View 1 Replies
Mar 29, 2012
I try to access the MainContentBlock control from the aspx, but unable to do so. In the aspx file I have registered both controls:
[Code]...
View 3 Replies