We help IT Professionals succeed at work.

asp.net open new page without popup blocker

ProgrammerAtAIMS
on
308 Views
Last Modified: 2017-03-14
Hello,
I am trying to open a new page(on a new window) on button click from client site using
ScriptManager.RegisterStartupScript(m_Page, m_Page.GetType(), "JSScript", window.open("url"), True)

Open in new window

.
I am getting a popup blocker on the browser .
is there a way to avoid this popup?
Comment
Watch Question

Chief Technology Ninja
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Hi Chinmay Patel,
Thank you for your reply.
Can you propose something else if i need to open a new web page in my web application? because clients did not like the fact that they are getting a popup.
I have a menu screen from where I choose to go to an option. this option must open in another tab or window.

(I know that if i write javascript function directly on "onclick" event it will not popup but i need to do it from code behind since I have lot of validation to do)
thank you in advance.
Chinmay PatelChief Technology Ninja
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Hi ProgrammerAtAIMS,

I am not sure exactly what you are trying to do with this popup but how about using AJAX and loading that page/content in a Blocking Layer(Div) in the same page?

Regards,
Chinmay.

Author

Commented:
Hi Chinmay,
I need to keep the  menu screen  open so the user can open multiple option at the same. I can not block the interface.
Chinmay PatelChief Technology Ninja
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Hi ProgrammerAtAIMS,

In that case do not make your divs blocking, just let them render on your page side by side.
PS : In my opinion, this is a bad UX. Users have to be educated on the same.

Regards,
Chinmay.

Author

Commented:
Sorry Chinmay but I did not get your idea about
In that case do not make your divs blocking, just let them render on your page side by side.
what do you mean by this? Can you give me an example of this? (I am a bit new to asp.net world).
And why it is a bad UX? If I have a page where user can create or add a new customer and on another page he can make an invoice for him and in another I can add items and..... I need this multiple window here no?
If I put  all these on the same screen my page size would be large and it will cause performance issue no?
Chinmay PatelChief Technology Ninja
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Thank you for your time Chinmay I will try your suggestion and will ask if I face problem.

Regards,
ProgrammerAtAIMS

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions