This project is read-only.



Sometimes you need to call SharePoint Ui like ModalDialog,WaitScreen,Notification And Status From Server Side Code So you need to use ”SPLightUiHelper “ very easy helper Class enable you to use most of SharePoint Client Side Ui from Server Side Code with very Easy way and extra benefits .
Deployment Steps & Using Guide
1- Download attached Files:
      A- : Test Visual Web Part show how to use the Tool
      B- SPLightUiHelper.wsp
2- Dependencies : you should reference jQuery inside you Master Page .
3- Deploy the SPLightUiHelper.wsp to your farm
4- Insert " SPLightHelper " web part in your Master Page.
5- In your SharePoint Solution reference SPLightHelper DLL from GAC -> "C:\Windows\assembly\gac_msil"

6- Enjoy using the SPLightHelper


protected void showPopUpButton_Click(object sender, EventArgs e)        {            SPLightUiHelper.UI.ShowPopUp(UpdatePanel1, "/Pages/Chiled.aspx", "my Title", 800, 500, false, false, false);        }
        protected void showPopUpWithRefreshButton_Click(object sender, EventArgs e)        {            SPLightUiHelper.UI.ShowPopUp(UpdatePanel1, "/Pages/Chiled.aspx", "my Title", 800, 500, false, false, true);        }
        protected void showWaitScreenButton_Click(object sender, EventArgs e)        {            SPLightUiHelper.UI.ShowWaitScreen(UpdatePanel1, "My Wait Message Loading ...", null, null);        }
        protected void getReturnedValueFromPopUpButton_Click(object sender, EventArgs e)        {            returnedValueFromPopUpTextBox.Text = SPLightUiHelper.UI.GetPopUpReturnedValue();        }
        protected void addNotificationButton_Click(object sender, EventArgs e)        {            SPLightUiHelper.UI.AddNotification(UpdatePanel1, "My Notification");        }
        protected void removeNotificationButton_Click(object sender, EventArgs e)        {            SPLightUiHelper.UI.RemoveNotification(UpdatePanel1);        }
        protected void showMessageButton_Click(object sender, EventArgs e)        {            SPLightUiHelper.UI.ShowMessage(UpdatePanel1, "My Message", "blue");        }
        protected void showInfoMessageButton_Click(object sender, EventArgs e)        {            SPLightUiHelper.UI.ShowInfoMessage(UpdatePanel1, "My Info Message");        }
        protected void showErrorMessageButton_Click(object sender, EventArgs e)        {            SPLightUiHelper.UI.ShowErrorMessage(UpdatePanel1, "Error Message");        }
        protected void showSuccessMessageButton_Click(object sender, EventArgs e)        {            SPLightUiHelper.UI.ShowSuccessMessage(UpdatePanel1, "Your Opeation Succeeded");        }
        protected void removeAllMessagesButton_Click(object sender, EventArgs e)        {            SPLightUiHelper.UI.RemoveAllMessages(UpdatePanel1);        }

Last edited Feb 28, 2013 at 8:22 AM by naady, version 6