Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a grid row builder in an MVC helper class. Now, assigned to one of the rows is a link to javascript code:

XML
var link = string.Format(HTTPUtiltiy.UrlDecode(U.linkText), userId.linkText, row.ID);

sb.Append(string.Format("<a ref \javascript:openWin('{1}'\" title=\"User Edit\">{0}</a>",  row.USERID, link));


_____________________________________________________________________________

C#
View:

var link = Url.Action("EditUser", EditUser");

_____________________________________________________________________________




Simple controller:

public ActionResults UserEdit (id)

{

var user = new UserModel();

user = UserDAL.GetUserByID(id)

return View(user);

}

Now, when the controller opens the javascript window it displays the View in full screen. How can I make it look more like a dialog?

Thanks,

Steve Holdorf
Posted
Updated 7-Jul-14 0:48am
v3

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