Jquery - Colorbox- Get Value From Popup (Child.aspx) Page To The Parent (parent.aspx) Page?

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


ADVERTISEMENT

Asp.net - Enable/disable Web Elements Of A Parent Aspx Page From The Child Ascx Page?

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

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

Control Child Popup Page From Parent Page With Program?

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

How To Redirect To Another .aspx Page On Clicking On A Rectangle On A .aspx Page?

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

Asp.net - Access Control From Parent Aspx From Its Child Ascx?

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

.net - JQuery Trigger Click On Aspx Page Is Not Working?

Jan 20, 2012

my ASPX Markup is as below

<a id="lnkLogin" href="javascript:__doPostBack('ctl00$LoginReg1$lnkLogin','')">Login</a>

And my function is as below

function LogOut() {
$("#lnkLogin").trigger('click');
}

for some reason this trigger click is not working?I have also tried to do this from code behind like this

If Request.UrlReferrer IsNot Nothing AndAlso Request.UrlReferrer.AbsoluteUri.Contains("32088") Then
' Define the name and type of the client script on the page.
Dim csName As [String] = "ButtonClickScript"
Dim csType As Type = Me.[GetType]()

[code]....

View 1 Replies

Hide Div In Aspx Page And Show Div In Aspx.vb Page?

Mar 15, 2012

I have following code in aspx page:

<div id="a" runat="server" style="display:block;">
abc
</div>

[code].....

View 3 Replies

Store Multiple Id's From First Aspx Page To Next Aspx Page?

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

Javascript - How To Call The Jquery Function In .aspx Page To Usercontrols Controls In Asp.net

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

Asp.net - Using Javascript On An Aspx Page That Uses A Master Page - Which Contains The Page In A Form?

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

Why A Page Load Would Be Called Twice On Page When requesting Aspx page

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

Asp.net - Pass Cancel Or Update Button Click From Popup Back To Parent Page?

Apr 25, 2012

I have a popup aspx page that receives data from a parent page gridview Edit click. There is a great deal of parsing of data from parent page to pop up as the data is being translated in pop up, then sent back to parent page to be reassembled in the original text block before update.

When the popup passes the data back or is canceled, the parent page gridview is still in Edit mode.I would like to pass the Cancel or Update button click from the popup to the parent page gridview so it can complete the update or cancel event without asking the user to click the corresponding command button link from the gridview edit mode, to Update or Cancel.

UPDATE: There is also a jquery UIBlocker on the Parent page to prevent the user from returning to the page until the PopUp page processing has been completed. Below is the critical code:

PARENT Page:
function parentFunc(a) {
// Unblocks on return from popup page.
$.unblockUI({});

[code]...

Had a problem with preventing the popup from reloading. So there is an if condition in the load event. A dynamic number of controls are built on the popup as literals. So the Page Init event and Page Load event fire on non Postback to rebuild the controls.

View 1 Replies

Check All The Checkboxes On A Webform (aspx) Page, Which Is Inside A Master Page?

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

C# - Post XML Data To Aspx Page And Reditect To The Page From Code Behind?

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

Retrieve A Querystring Value From An .aspx Page And Pass It To Ascx Page?

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

Javascript - Jquery A Colorbox Popup Windows With Input Field?

Aug 11, 2011

the following sets my stage

vb.net
MasterPages
Usercontrol with defined events

This is what my usercontrol looks like:When the user clicks the 'Approve' button, an event is fired in the usercontrol that is then intercepted in the main page to do custom code (database update, mails etc...)

[Code]...

View 1 Replies

Asp.net - Downloading An Aspx Page?

May 30, 2011

In my web app, I have an aspx page which contains an html table and several lines of text. I need users to be able to download this whole page as a separate file.

In the past I have used the a webclient to do this:

Dim myWebClient As New System.Net.WebClient
myWebClient.DownloadFile(strSource, strDest)
Response.AddHeader("Content-Disposition", "attachment;filename=test.doc")
Response.Write("test.doc")

but it appears this is only able to download html pages.

View 2 Replies

Can't Add Some Of VB Classes To Aspx Page

Oct 27, 2009

I have 3 vb classes and I am trying to add them to my aspx vb page. I try to do

Dim Class1 as new class1 but only one of them works, the other 2 do not work. I made a sample class and put the following in it:

Public Class test
Public Sub test (byref test as string)
test = 5
end sub
End Class

Then I went and tried to do Dim test as new test but it doesn't work, what am I doing wrong? The other class works fine and I don't know why this one wouldn't.

View 3 Replies

Designing An Aspx / Vb Page?

Jan 2, 2012

I need help in designing an aspx / vb page (.NET 1.1):The result is a table with 3 rows A,B and C it should look like this:

A
B
C

A, B and C have fixed height of 5 lines / 20 lines / 5 lines B content are gathered from dataset and can be more than 20 lines and then it should be splat and hole new table is created under the the first one like this:

A
B part 1
C
A
B part 2

[code]....

View 1 Replies

Using ConfigurationManager From Aspx Page?

Aug 11, 2011

New to ASP.NET. Trying to be able to switch what text is being displayed based off a value in the Web.config file. Here is a sample of my code.

<td background="images/LoginBox_03.gif" width="350" height="151">
<table border="0" align="center" id="tblLogin" runat="server">
<tr id="trEmail" runat="server">

[code].....

View 3 Replies

Asp.net - Save An Aspx Page In Session?

Dec 30, 2011

I have a login page that return the userName to a page called User.aspx.The User.aspx shows the information about the user based on a sql select. I fill 12 labels on the page with the result of the select.I want to keep the information of my 12 labels if the user Quits and enter again in the page.I save my session

Session("UserPage") = (litHello.Text And litAddresse.Text And litAnimalGenre.Text And litCouriel.Text And litNomAnimal.Text And litPays.Text And litPostalCode.Text And litProvince.Text And litRace.Text And litTel.Text And litVille.Text)

Now how I can proceed too fill all my label with my saved session call UserPage??

View 3 Replies

Calling A Procedure In A Different Aspx Page?

Sep 9, 2011

In my asp.net project, I have two particular aspx pages (lets say PageA.aspx and PageB.aspx)

In the codebehind PageA.aspx.vb, I want to call "Sub GetDefaultValues()" which happens to be in PageB.aspx

Update:PageB.aspx has textbox controls that contain default values (which are being read in Sub GetDefaultValues). Those default values get populated into the textboxes of PageA.aspx (based on certain conditions)

Is there a way to do that?

View 1 Replies

Forms GridView On ASPX Page?

Apr 22, 2010

Is there a way to use a VB.NET Forms DataGridView object on an ASPX page?

View 1 Replies

Get The Print Of Section Of .aspx Page?

Aug 18, 2011

I am printing reports as tables in .aspx pageNow i want to print that section containing table. how can i print that section only?As I got javascript function to print the whole page with window.print() but I want only some section to get printed.

View 1 Replies

Host A WebService In An ASPX Page Using ASP.Net 2.0?

Apr 6, 2012

In the process of converting a page from normal postbacks to AJAX-calls (using JavaScript to load/control the UI entirely and use ASP.Net strictly as a backend), I found myself wanting to replace a GridView with a AJAX-sourced dataset.

[Code]....

View 2 Replies

Preserve Values In ASPX Page?

Feb 21, 2011

I am trying to figure out how to preserve the values of the controls on this page (just the user-submitted commission value and the sales region (eastern is 10% and western is 20%)).[code]...

View 2 Replies

Registry Key Value Setting In Aspx.page?

Nov 11, 2009

VB.net code for .aspx page

Dim header As String
Dim footer As String
Dim margin_left As String

[code].....

View 1 Replies

Run Javascript Function From Aspx Page?

Jul 1, 2011

I have written some code there are 27 different functions that execute like this..

[Code]...

View 1 Replies

Shell From Aspx Page To Local EXE?

Feb 25, 2011

On a web server i have an aspx page which calls an EXE, waits, gets the result and sends it back to the user through the browser.

command_line= "lsrunas.exe /user:Administrator /password*** /domain:myPC /command:""d:onair ts_app ts.exe /f:" & FileName & " " & Text & """ /runpath:""d:onair ts_app"""

tts.exe produces an mp3 file which contains synthesized speech based on the given text.lsrunas.exe is the known utility to run the exe as another user.

Shell( command_line, True ) If i run the 'command_line' from the Start->Run menu (its win xp pro), then the EXE works ok. But when it runs through the aspx page and Shell, it produces an error and terminates. Sorry i cant recall the error code (something like 0x400...) but in a little search i did it has something to do with DLL initialization, the app cant start correctly.

As i said, the 'command_line' (as given from me above) works ok using the start->run dialog. i am pretty sure it has something to do with Rights. This service made from me a year ago, it worked then after lot of headaches, but now after a new windows installation i cant remember what i did to make it work.

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved