On click on link, I'm need to change route and open page in modal, but if page reloaded or visited via link, page must load as page (not in modal). Is it possible?
As example a Bitrix24 profile page:
Related
I have Login -> Lobby -> (Master/Detail pages).
The Lobby is the main page that I need one instance only, where you can as well access some of the details pages from it. The Lobby it self is a content page that is not a detail page of any master page.
The problem I have is that once I navigate to the a master-detail page I lose the Lobby from the navigation stack, so once I press the back button on the Android tablet it is as if I have clicked the Home button. I want the Lobby page to remain on the root of the stack.
I have tried initializing the Lobby from the MasterPageViewModel however this caused a problem of opening an initial empty master/detail page.
Kindly advise.
I have a user control (toolbar). It is located in the master page and most pages in the project use this master page and therefore the toolbar user control. Print button in the toolbar control has to open print page in a new window. It is a hyperlink with target = '_blank'. In most of the pages it opens in a new window and in only one page it opens in the same window (which is wrong). This weird page has the same master page and hyperlink properties is the same during debugging.
Sounds strange, I would check the markup of that specific page where target="_blank" doesn't work and see if it contains any broken markup which could possibly cause that behavior. Maybe the attribute isn't read correctly on that page due to invalid markup somewhere else on that same page.
I have an aspx page: Main.aspx which has several components that cause
a postback. In the page Main.aspx I also have an iframe which contains
a multi-page pdf file.
The problem I am facing is that whenever the user does an action which
causes a postback on the main page Main.aspx, the page posts back and
the pdf file in the iframe is reloaded. This is a problem becuase if
the user has rotated or magnified the page then that is lost.
Is there anyway that the content in the iframe is not refreshed?
I have a back and next buttons and Iframe in main page.
On pressing next button next pages (which are forms to take input) are displayed in Iframe from server side.
I want to save data of current page in DB and then load 2nd page in Iframe. On clicking again save data of Page2 in DB and then load 3rd page in Iframe.
Similarly if user clicks back button he should get data of previous page.
Please suggest me how it can be achieved.
Thanks
To chane iframe src just use JS
function changeFrm(NewSrc){
document.getElementById('YOUR IFRAME ID').src=NewSrc;
};
And in your button add onClick="ChangeFrm('NEW SOURCE');"
Good luck!
I have a page showing all products in a gridview.
I have a link in the page clicking on it opens a modal window.
In the modal window there is a form to enter product and save.
When I fill the form and save product I need to make the parent page to be refreshed so that
the new product is listed in the gridview and a message will be shown in a label in the modal window. I need to refresh the product list page without closing the modal window.
How to do it?
Please help.
You can refresh it with the following JavaScript:
window.opener.location.reload(true);
window.opener.location.reload(true);
true makes sure that the page is reloaded from the server instead of the browser's cache.
This will work only if the second page was opened by the first page using javascript and not when you open a link in the first page in a new window - window.opener will be null in the later case. Even in the former case, Firefox will throw a 'permission denied' error if both pages are not from the same domain.