From: JohnE on
I have a gridview (master) that when a linkbutton is used it opens the
formview (detail) for the record. It is all working. The linkbutton opens a
showModalDialog rather then the modalpopupextender.

function ShowChangeRequestDetail(ChangeRequestID)
{
window.showModalDialog("ProteusListDetailView.aspx?ChangeRequestID="
+ ChangeRequestID, "",
"dialogWidth:700px; dialogHeight:500px; resizable:no;
scrollbars:no");
}

As mentioned, it all works like it should.

The issue is when I use the Edit button on the formview it opens another
window with all the internet webpage controls on it (favorites, menus, etc).
Plus the window is almost the size of the screen. What is controlling the
Edit button was done when the formview was created. Both of these are not
acceptable for the users. How do I go about controlling the window that the
Edit button (not linkbutton) opens up for editing? Any examples, samples,
links are welcomed.

Thanks... John


From: Mark Rae [MVP] on
"JohnE" <JohnE(a)discussions.microsoft.com> wrote in message
news:DE9AAB20-1C57-444E-B91D-5D734D31FEAE(a)microsoft.com...

> window.showModalDialog(
> As mentioned, it all works like it should.

But in IE only!

showModalDialog is *COMPLETELY* non-standard and should be avoided at all
costs. As it stands, your app is not cross-browser compliant...
http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=showModalDialog+cross+browser

The AJAX modal popup extender is designed specifically to get round this
problem...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

From: JohnE on


"Mark Rae [MVP]" wrote:

> "JohnE" <JohnE(a)discussions.microsoft.com> wrote in message
> news:DE9AAB20-1C57-444E-B91D-5D734D31FEAE(a)microsoft.com...
>
> > window.showModalDialog(
> > As mentioned, it all works like it should.
>
> But in IE only!
>
> showModalDialog is *COMPLETELY* non-standard and should be avoided at all
> costs. As it stands, your app is not cross-browser compliant...
> http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=showModalDialog+cross+browser
>
> The AJAX modal popup extender is designed specifically to get round this
> problem...
>
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net
>

I guess what I did is a no-no. I tried the modalpopupextender but couldn't
get it to work properly. Saw there was a function in one of the articles
with a work around to the cross brower as well as other methods. Will
bookmark this google search and go back to the modal to try it again.

Any suggestions since what I have is working (other then the edit) to keep
the repair time down?

From: Mark Rae [MVP] on
"JohnE" <JohnE(a)discussions.microsoft.com> wrote in message
news:4472F3EC-26D5-43D6-BA4C-1FC4AA6AF47D(a)microsoft.com...

> Any suggestions since what I have is working (other then the edit) to keep
> the repair time down?

Not while you continue to use showModalDialog...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

From: JohnE on


"Mark Rae [MVP]" wrote:

> "JohnE" <JohnE(a)discussions.microsoft.com> wrote in message
> news:4472F3EC-26D5-43D6-BA4C-1FC4AA6AF47D(a)microsoft.com...
>
> > Any suggestions since what I have is working (other then the edit) to keep
> > the repair time down?
>
> Not while you continue to use showModalDialog...
>
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net
>

And if I vacate the showModalDialog (which I probably will be doing) what
suggestions do you have?


 |  Next  |  Last
Pages: 1 2 3
Prev: Call Function from aspx
Next: url rewrites