ASP.NET 2.0 Modal Dialog Window

A

ABHIJIT B

Hi,

I am opening PopUp window using following code on Parent page Button
btnDatabase Click
as given below,

function btnDatabaseLookUp_Click()
{
window.event.returnValue=false;

//clear variables
var returnVal = '';
var serviceidVal = '';
var servicedescVal = '';
var databasenameVal = '';
var url = '';

databasenameVal = document.getElementById('<
%=txtDatabase.ClientID%>').value;

serviceidVal = document.getElementById('<
%=hidDCServiceID.ClientID%>').value;
servicedescVal = document.getElementById('<
%=hidDCServiceName.ClientID%>').value;

url = 'DCDatabaseShowModal.aspx?
Page=DCDatabase.aspx&DatabaseDesc=' + databasenameVal + '&ServiceID='
+ serviceidVal + '&ServiceDesc=' + servicedescVal;

returnVal =
window.showModalDialog(url,'','help:no;center:yes;scroll:no;resizable:no;dialogWidth:
550px;dialogHeight:300px;dialogHide:true;status:no');

if (returnVal == null)
{
document.getElementById('<%=txtDatabase.ClientID%>').value =
"";
}
else
{
document.getElementById('<%=txtDatabase.ClientID%>').value = "";
document.getElementById('<%=txtDatabase.ClientID%>').value
= returnVal;
}

return true;
}
-------------------------------------------------------------
DCDatabaseShowModal.aspx code :

protected void Page_Load(object sender, EventArgs e)
{
try
{
//Put user code to initialize the page here //Get the URL
myURL = Request.Url.ToString();

//Does the URL contain parameters?
ParamStart = myURL.IndexOf("?");

//If the URL has parameters, then get them. If not, return
a blank string
if (ParamStart > 0)
Params = myURL.Substring(ParamStart, myURL.Length -
ParamStart);
else
Params = string.Empty;

if (Request.Params["Page"] == null)
{
//No page was specified to load in the IFrame, so let
the user know
LiteralDBCDatabase.Text = "Error: No page was
specified in the parameters.";
}
else if (Request.Params["Page"] == "")
{
//No page was specified to load in the IFrame, so let
the user know
LiteralDBCDatabase.Text = "Error: No page was
specified in the parameters.";
}
else
{
//txtRET.Text = Request.Params["Page"] + Params;
//'Return the IFrame, and add the parameters to the
called (src) web page
LiteralDBCDatabase.Text = "<IFRAME
NAME='embeddedFrame'" +
" WIDTH='100%' HEIGHT='100%' SRC='" +
Request.Params["Page"] + Params + "' scrolling='yes'/
}
}

---------------------------------
This opens popup window but "Vertical scroll bar width is small".I
want to increase scroll bar width.

Kindly help me for above issue.


Best Regards,

Abhijit B
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top