Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friend, I have been working on a Asp.Net MVC project in which I have to implement a condition like click on a Link open window on a tab.

On new window opened with the View having some links Create,Submit not working on that. So please friends help me to get it working.


For more clarification:
#1- Click on a Link new tab window opened .
#2:- On that window View display having some links like Create,Submit,etc.

C#
a onclick="HyperCallToCreateIntervention()" OPEN NEW WINDOW a 


function HyperCallToCreateIntervention() {   
    finalURL = baseAddress + 'Intervention/InterventionByLasterLibraryforPopup?masterLibraryId=0&requestMode=popup';
    window.open(finalURL, '_blank');
}


So all these Create/Submit links not working.
Posted
Updated 8-Jan-14 0:02am
v4
Comments
Tejas Vaishnav 7-Jan-14 8:02am    
Have you got any error or something else... have you tried to debug your code and check it out why the code not working...

please also share some part of your code....
Arav Pradeep Gupta 7-Jan-14 8:10am    
Thanks for your response. I did not get any error actually to open tab window following the code i am using

a href="@Url.Action(" interventionbylasterlibraryforpopup=", " intervention=", new { masterLibraryId = 0, requestMode = " popup=" }) " önclick="window.open(this.href); return false;" target="_newtab" style="color: #034AF3">
OPEN WINDOW


And in tag window for create link we are making a ajax call like
a önclick="Create()" but when we click Create it executed the Action " OPEN WINDOW".

Please help me
Arav Pradeep Gupta 8-Jan-14 4:47am    
Hello Tejas, please have a look at my revised question it might be make more clear way.

Thanks in advanvce
Sampath Lokuge 8-Jan-14 5:44am    
Plz put your code snippets ?
Arav Pradeep Gupta 8-Jan-14 5:50am    
a onclick="HyperCallToCreateIntervention()" OPEN NEW WINDOW a


function HyperCallToCreateIntervention() {
finalURL = baseAddress + 'Intervention/InterventionByLasterLibraryforPopup?masterLibraryId=0&requestMode=popup';
window.open(finalURL, '_blank');
}

And Window I have a create anchor link where we have onclick="Create()" but when click Create on window it always call for previous link which open new window.

Thanks In advance.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900