|
You can access controls of parent page using
window.opener.document.getElementById.
So by using it you can access parent page and do
communication between child and parent page.
For more information refer this[^] link.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
If you want to know in server side then pass a query string value ( ex: page1.aspx?ref=page2) and get the querystring value in server side using Request.QueryString["ref"] . Hope this will solve ur problem.
|
|
|
|
|
Dear, the request object is null.
KnightGuy
|
|
|
|
|
I have Two POP-UP pages. I need to display those data in One page.
For Example:
In First POP-UP Page I have One TextBox and in Second another TextBox. I need to dispaly those two in One Page. How can I do this?
|
|
|
|
|
It is very simple. Just merge these two popup into one.
Create new popup and put both textbox and other functionalities
in this one.
That's it.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
I have 11 POPUp pages. I do not display 11 at a time. Based on condition i need to display 3 or 4. I don't want to redesign them.
|
|
|
|
|
How you are showing your popup?
Are you loading aspx page into popup?
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Yes. I tried using Iframe. It working fine but only thing bothers me is height of the frame. It should be increased based on page content.
|
|
|
|
|
You can try to fix height and width of frame.
i.e.
<iframe src="news.htm" name="content" width="628" height="380" frameborder="0"></iframe>
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
But I am loading aspx page to frame dynamically (code behind). So Height depends on content page. How can I find height of to be loaded page.
HtmlControl frmPL = (HtmlControl)e.Row.Cells[0].FindControl("frmPL");
frmPL.Attributes["src"] = "../SiteProgress/" + PLName + ".aspx";
|
|
|
|
|
Try this one.
frmPL.Attributes["width"]=628;
frmPL.Attributes["height"]=380;
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
If I fix height of frame, what is the situation if page's height is 500. i don't want to scroll the frame. How can I give Page's height to frame.
|
|
|
|
|
You can refer this[^] link to set height of the frame as the height and width of browser display height.
You need to get your frame by using document.getElementById function and
set it's height and width as shown in example in the forum.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
But I am loading page into frame from code behind. Is there any solution to find aspx page height from code behind.
|
|
|
|
|
Hello All,
I am doing Localization in my application, and using following script for Post Date Alert for making sure user does not select date earliar than today..
Problem is if I login as Chinese culture or other except English, I choose date from calander which is greater than today, it gives popup and then display Todays date in English.
I am using EnableScriptGlobalization= "true" in ToolkitScriptManager so as calander will display in respective culture.
function checkDate(sender, args) {
if (sender._selectedDate > new Date()) {
alert("Alert");
sender._selectedDate = new Date();
sender._textbox.set_Value(sender._selectedDate.format(sender._format));
}
}
Thanks.
|
|
|
|
|
You need to set CultureInvariantValues = true for the control
you are using as sender.
Whether it is calendar control or textbox, from where you are refering
date.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Thanks for Reply,
I am using Calander Extender and display is coming as per the choosen language,
Only PRoblem coing when I choose date bigger than toady it gives Popup and then dispaly image in English.. I want it to display in selected language.
CultureInvariantValues = "true" is giving error when I apply it as calander extender property.
|
|
|
|
|
|
Well, this is a very nice issue. I'm trying to figure out how in earth's name I can create the following application, and of course my bosses and co-workers aren't providing any help.
The application should do the following:
- Allow users to create/edit/delete (e-mail)accounts in Paralells Plesk Panel (for Windows).
- Allow users to create/edit/delete subdomains
It should be an ASP.Net application, but I have no idea where to start. I've looked into the API RPC Protocol, however, I do not understand like 99% of the protocol.
Can anyone please tell me how to work with the API (if someone has ever worked with it) to create the above situation? Any help would be much appreciated!
|
|
|
|
|
Hi To All,
I have a Ajax tab container A. The tab container A has one tab panel A1.
In tab panel A1, first I have placed web user control(.ascx) and then added one tab container B. B tab container has three sub tab panels B1, B2, B3.
I want to hide the user control only when tab panel B2 is selected.
So, How can I hide the ASP.Net Web User Control using JavaScript or code behind?
Any Help regarding this will be greatly appreciated..
Thanks in Advance...!!!!
|
|
|
|
|
If u have registered the user control on the page, then
try this code on Tab index change event of Tab container B
UserControlID.Visible = true;
Let me know if it works.
Tej Aj,
http://opexsolution.com/forum/[^]
Fan of:
http://www.abtstudioz.com/[^]
modified on Tuesday, July 20, 2010 2:39 AM
|
|
|
|
|
Thanks for the reply Tej..
Yeah, I have already registered the User Control on the Page.
I have earlier tried with the OnActiveTabChanged event of the tab container and set the AutoPostBack property to True.
But, I have the older version of Ajax Control toolkit, which not supported the AutoPosBack event for tab container. So the tab index changed event not fired when I changed the tabs.
Now, I update the reference to newer version 3.0. Earlier it was 1.0
That's resolved my problem..
Thanks a lot once again for ur reply..
Have a gr8 day.....
|
|
|
|
|
Hi
I have minor problem which I need help with.
I need to write a method that takes my xsd and my xml file, when I compare my xsd with my xml, if there are any elements in the xml data missing to add them into the xml file as empty. Firstly, let me say, I am not validating the xml file, this is not the purpose. All I am doing is comparing the two files, and adding back in any elements that are missing. The result of the new xml file is then displayed to the user.
Can anyone give me some pointers on how to do this, please?
|
|
|
|
|
I don't have sure, but if you wanna search something about "ReadXmlSchema" method.. maybe this can help you
|
|
|
|
|
Sure, use the xsd.exe tool to create a .net class file from your xml schema file. Serialize your xml file to your .NET object. Reflect over the object changing all of the fields that are in the default or null value to a non-default value. Serialize to the file system. The other option is to change your xsd file to require given elements using the minimumOccurs="1" thus a valid xml will always have a "default" value. With this method you will not have to reflect after serialization to the object.
|
|
|
|