I am making a CRUD list item Page.
When I add or edit list item, I want to load those page as a Modal popup.
For now I just use redirect and move to another page.
And I heard that use SP.UI.ModalDialog option, but I don`t know how to use it.
My Code is below, Please somebody help me.
protected void lnkbtnAdd_Click(object sender, EventArgs e)
{
string siteUrl = SPContext.Current.Web.Url;
string listBaseUrl = ddlList.SelectedItem.Text;
string listUrl = listBaseUrl.Replace("/sites/dev/", "");
Response.Redirect(string.Format(siteUrl + "/_layouts/15/ListItemControl/AddNewItem.aspx?parm={0}", listUrl));
}