Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code> //DLL: Intelligencia.UrlRewriter.dll //web.config &lt;configuration&gt; &lt;configSections&gt; &lt;section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/&gt; &lt;/configSections&gt; &lt;/configuration&gt; &lt;system.web&gt; &lt;httpModules&gt; &lt;add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/&gt; &lt;/httpModules&gt; &lt;/system.web&gt; &lt;rewriter&gt; &lt;rewrite url="~/(.+)/CompanyHomePage" to="~/Home.aspx"/&gt; &lt;/rewriter&gt; //C#: string strTitle = Session["company_name"].ToString(); strTitle = strTitle.Trim('-'); strTitle = strTitle.ToLower(); char[] chars = @"$%#@!*?;:~`+=()[]{}|\'&lt;&gt;,/^&amp;"".".ToCharArray(); strTitle = strTitle.Replace("c#", "C-Sharp"); strTitle = strTitle.Replace("vb.net", "VB-Net"); strTitle = strTitle.Replace("asp.net", "Asp-Net"); strTitle = strTitle.Replace(".", "-"); for (int i = 0; i &lt; chars.Length; i++) { string strChar = chars.GetValue(i).ToString(); if (strTitle.Contains(strChar)) { strTitle = strTitle.Replace(strChar, string.Empty); } } strTitle = strTitle.Replace(" ", "-"); strTitle = strTitle.Replace("--", "-"); strTitle = strTitle.Replace("---", "-"); strTitle = strTitle.Replace("----", "-"); strTitle = strTitle.Replace("-----", "-"); strTitle = strTitle.Replace("----", "-"); strTitle = strTitle.Replace("---", "-"); strTitle = strTitle.Replace("--", "-"); strTitle = strTitle.Trim(); strTitle = strTitle.Trim('-'); Response.Redirect("~/" + strTitle + "/CompanyHomePage", false);//Redirect to ~/Home.aspx page //reference: CompanyHomePage same in web.config &lt;rewrite url="~/(.+)/CompanyHomePage" to="~/Home.aspx"/&gt; which company is log in to sight that company name show in url like this http://abcd//CompanyHomePage </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload