Click here to Skip to main content
15,907,183 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

how to display popup window at the right hand side of the screen.
Sample Code:
C#
function ShowCallSummary()
			{
			    var program = "<%= hidFkProgramGlCode.ClientID.ToString()%>"; 
				var phase = '<%= hidPhaseNo.ClientID %>';
				var agent = '<%= hidAgentGlCode.ClientID %>';
				
				var myWindow = window.self;
				var WinSettings = "center:no; resizable:no; dialogHeight:190px; dialogWidth:120px; edge:Raised; help:No; status:No;"
				var programCode = document.getElementById(program).value;
				var phaseNo = document.getElementById(phase).value;
				var agentCode = document.getElementById(agent).value;
				var myArg = new Array(programCode, phaseNo, agentCode);
				window.showModalDialog("CallSummary.aspx?program=" + programCode + "&phase=" + phaseNo + "&agent=" + agentCode, myWindow, WinSettings);
			}


Pls reply me as soon as possible.

Thanks & Regards,
Minal Shah.
Posted
Updated 29-Apr-10 20:20pm
v3

1 solution

You need to use:
dialogLeft:sXPos
Sets the left position of the dialog window relative to the upper-left corner of the desktop.
dialogTop:sYPos
Sets the top position of the dialog window relative to the upper-left corner of the desktop

Read here for more details:
http://msdn.microsoft.com/en-us/library/ms536759(VS.85).aspx[^]

Now 3 things I would like to convey you about Code Project here:
1. Don't write something like:"Pls reply me as soon possible" - It looks rude and people here help at their convenience.
2. Don't use text speak. Use full words. It does not look professional.
3. If an answer helps you and resolves your doubt, make a habit of making it as Accepted Answer.
 
Share this answer
 

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



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