Show only Vertical scrollbar in ModalDialog window?

RMN picture RMN · Nov 30, 2011 · Viewed 9.8k times · Source

I am using following code to open a modalwindow:

function OpenPopup(rn) {
     var winargs = null;
     var winsettings = "help:no;status:no;maximize:yes;minimize:no;dialogHeight:450px;dialogWidth:820px;edge:sunken;scroll:yes;center:yes;resizable:yes;";
     winargs = window.showModalDialog("../PopUp.aspx?id=" + rn , winargs, winsettings);
}

Here the property scroll provides only Yes and No option. I want only Vertical scroll bar and not Horizontal one. How should I achieve this ?

Can anyone help me on this issue ?

Answer

giftcv picture giftcv · Nov 30, 2011

Make sure that the width of PopUp.aspx is not more than the dialogWidth:820px;

try this

<body style="width:820px;">

on PopUp.aspx