Your question has been submitted and is awaiting moderation.
I created a function to create a new item, and it works fine, I need to give a popup message for a client that the item was added. after he clicked on the add item button. I did this in side the onclick button. but it didn't work until I clicked twice on the add item button. is there any idea.
Button1.Attributes.Add("onclick", "return " + UrlUtils.PopUpUrl(DotNetNuke.Common.Globals.NavigateURL("thanks", "mid=" + this.ModuleId), this, PortalSettings, true, false, 500, 870));