{"id":16251106,"url":"https://github.com/erencrypt/asp.netmessagebox","last_synced_at":"2025-03-19T20:30:24.061Z","repository":{"id":152843365,"uuid":"306404746","full_name":"Erencrypt/Asp.NetMessageBox","owner":"Erencrypt","description":"This is a useful and simple class for using toastr notifications in asp.net.","archived":false,"fork":false,"pushed_at":"2024-02-29T16:59:13.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T20:41:05.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Erencrypt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-22T17:00:59.000Z","updated_at":"2024-05-09T17:05:04.000Z","dependencies_parsed_at":"2023-12-26T22:22:46.718Z","dependency_job_id":"5882246b-fd89-40bf-aa72-80237176109c","html_url":"https://github.com/Erencrypt/Asp.NetMessageBox","commit_stats":{"total_commits":14,"total_committers":3,"mean_commits":4.666666666666667,"dds":0.5,"last_synced_commit":"ff784f990c181dd3143211c118e6b5a3914a4cca"},"previous_names":["erencrypt/asp.netmessagebox"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erencrypt%2FAsp.NetMessageBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erencrypt%2FAsp.NetMessageBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erencrypt%2FAsp.NetMessageBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erencrypt%2FAsp.NetMessageBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Erencrypt","download_url":"https://codeload.github.com/Erencrypt/Asp.NetMessageBox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244014113,"owners_count":20383716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T15:08:57.113Z","updated_at":"2025-03-19T20:30:23.751Z","avatar_url":"https://github.com/Erencrypt.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MessageBox library for Asp.Net\n\nThis is a useful and simple class for using toastr notifications in **asp.net**. Last year when i was create one of my web project, i couldn't find **asp.net** library like this and i create one **:D**.\n\n## How to setup\n\n**It's very simple.**\n\n 1. download **MessageBox.dll** file.\nhttps://github.com/Erencrypt/Asp.NetMessageBox/releases/tag/Version1.0\n 2. extract **.dll** file from **.zip** archive.\n 3.\topen **\"solution explorer\"** and right click on **\"referances\"**.\n 4.\tclick **\"add referance\"** button from top of the list.\n 5.\tclick **\"Browse\"** button from bottom of the new opened window.\n 6.\tchoose the **MessageBox.dll** file.\n 7.\tbe sure checked little box on the left of dll file name and click **\"ok\"** button.\n \n**It's done**, now you can use it but before, **don't forget** to check out our **\"How to use\"** guide **:D**. \n\n# How to use\n\nNow, before use it you must add library:\n\n    using MessageBox;\nAnd create an object:\n\n    Message MessageBox = new Message();\nwe have **\"settings\"** and **\"clear\"** method, for our created objects individually.\nFirs we must create **\"settings\"** for **\"literal\"** who used in our **.aspx** files. \n\n    MessageBox.Settings(literal: Ltrmessage);\n\n## Settings\n\nIn **\"settings\"** method, we must set literal, all other parameters has default value, if you want to change any value  you can set;\n\n1. language (for now, only english and turkish available) (**default:** english)\nI'm put language option for \"headers default value\".\n2. timeout \n3. extended timeout\n4. escape html\n5. process bar\n6. close button\n \nif you chance only one of this you can use like this:\n\n\t    MessageBox.Settings(literal: Ltrmessage,processbar:false);\n\n## Clear\n**\"Clear\"** method is for cleaning **\"literal\"** so message instantly disappear.\n\n    MessageBox.Clear();\n\n## Show Message\n\n And finally we can create message, **\"show\"** method is very easy to use, for example:\n\n    MessageBox.Show(Message.Type.info, \"This is test message.\", \"Test\");\nin **\"show\"** method  we have 4 parameters\n\n1.  type\n2. message\n3. head\n4. position\n\n**Type:** this parameter chance type of message, for example:\n\n    MessageBox.Show(Message.Type.info, \"This is info and its color blue.\");\n    MessageBox.Show(Message.Type.warning, \"This is warning and its color yellow.\");\n    \n**Message:** its simply your message :D.\n\n**Head:** this parametter set header of messagebox, this parametter has default value, if you don't set, parameter automatically set header by **type** of message.\n\n**Position:** this parameter sets the position where the messagebox will appear on the screen, this parametter has default value, if you don't set, parameter automatically set position to **\"top right\"** on screen.\n**we have 6 position:**\n\n - top right\n - bottom right\n - top left\n - bottom left\n - top center\n - top full width\n - bottom center\n - bottom full width\n\n# Example Project:\nMore detailed version of example project is available in release page.\n\u003e**WebForm1.aspx.cs:**\n\n    using System;\n\tusing MessageBox;\n\n\tnamespace test\n\t{\n\t    public partial class WebForm1 : System.Web.UI.Page\n\t    {\n\t        Message MessageBox = new Message();\n\t        protected void Page_Load(object sender, EventArgs e)\n\t        {\n\t            MessageBox.Settings(literal: Ltrmessage, timeout:10000, processbar:false,closebutton:false);\n\t            MessageBox.Show(Message.Type.info, \"This is centered message.\", \"Test\",Message.Position.topCenter);\n\t        }\n\t        protected void Button1_Click(object sender, EventArgs e)\n\t        {\n\t            MessageBox.Show(Message.Type.info, \"This is test message.\", \"Test\");\n\t        }\n\t    }\n\t}\n\u003e**WebForm1.aspx**\n\n    \u003c%@ Page Language=\"C#\" AutoEventWireup=\"true\" CodeBehind=\"WebForm1.aspx.cs\" Inherits=\"test.WebForm1\" %\u003e\n\t\u003chtml lang=\"en\"\u003e\n\t\u003chead runat=\"server\"\u003e\n\t    \u003cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/\u003e\n\t    \u003ctitle\u003eTest\u003c/title\u003e\n\t\u003c/head\u003e\n\t\u003cbody\u003e\n\t    \u003cform id=\"form1\" runat=\"server\"\u003e\n\t        \u003cdiv\u003e\n\t            \u003casp:Button ID=\"Button1\" runat=\"server\" Text=\"info\" OnClick=\"Button1_Click\" /\u003e\n\t        \u003c/div\u003e\n\t    \u003c/form\u003e\n\n\t    \u003casp:Literal ID=\"Ltrmessage\" runat=\"server\"\u003e\u003c/asp:Literal\u003e\n\t\u003c/body\u003e\n\t\u003c/html\u003e \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferencrypt%2Fasp.netmessagebox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferencrypt%2Fasp.netmessagebox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferencrypt%2Fasp.netmessagebox/lists"}