snipt

Ctrl+h for KB shortcuts

C#

Making use of rewritemaps.config

1
2
3
4
5
6
7
<system.webserver>
  <rewrite>
    <rules>
      <rewriteMaps configSource="rewritemaps.config" />
    </rules>
  </rewrite>
</system.webserver>
https://snipt.net/embed/d9f035d8600541498c21621a39cbb0ba/
https://snipt.net/raw/d9f035d8600541498c21621a39cbb0ba/
d9f035d8600541498c21621a39cbb0ba
csharp
C#
7
2016-09-18T07:39:11
True
False
True
Jan 12, 2013 at 04:18 PM
/api/public/snipt/53118/
making-use-of-rewritemapsconfig
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="p">&lt;</span><span class="n">system</span><span class="p">.</span><span class="n">webserver</span><span class="p">&gt;</span> </span><span id="L-2"><a name="L-2"></a> <span class="p">&lt;</span><span class="n">rewrite</span><span class="p">&gt;</span> </span><span id="L-3"><a name="L-3"></a> <span class="p">&lt;</span><span class="n">rules</span><span class="p">&gt;</span> </span><span id="L-4"><a name="L-4"></a> <span class="p">&lt;</span><span class="n">rewriteMaps</span> <span class="n">configSource</span><span class="p">=</span><span class="s">&quot;rewritemaps.config&quot;</span> <span class="p">/&gt;</span> </span><span id="L-5"><a name="L-5"></a> <span class="p">&lt;/</span><span class="n">rules</span><span class="p">&gt;</span> </span><span id="L-6"><a name="L-6"></a> <span class="p">&lt;/</span><span class="n">rewrite</span><span class="p">&gt;</span> </span><span id="L-7"><a name="L-7"></a><span class="p">&lt;/</span><span class="n">system</span><span class="p">.</span><span class="n">webserver</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
asp.net, c#, rewritemaps.config, web.config

VB.net

ASP.Net String Manipulation (Split and Last Character)

1
2
3
str.Remove(str.Length - 1, 1)

Dim StatusArray As String() = s.Split(New Char() {","c})
https://snipt.net/embed/d423874ea7d4a5e4435085f8d0ab639a/
https://snipt.net/raw/d423874ea7d4a5e4435085f8d0ab639a/
d423874ea7d4a5e4435085f8d0ab639a
vb.net
VB.net
3
2016-09-21T13:25:32
True
False
False
/api/public/snipt/49301/
aspnet-remove-last-character
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="n">str</span><span class="p">.</span><span class="n">Remove</span><span class="p">(</span><span class="n">str</span><span class="p">.</span><span class="n">Length</span> <span class="o">-</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="k">Dim</span> <span class="n">StatusArray</span> <span class="ow">As</span> <span class="kt">String</span><span class="p">()</span> <span class="o">=</span> <span class="n">s</span><span class="p">.</span><span class="n">Split</span><span class="p">(</span><span class="k">New</span> <span class="kt">Char</span><span class="p">()</span> <span class="p">{</span><span class="s">&quot;,&quot;c</span><span class="p">})</span> </span></pre></div> </td></tr></table>
asp.net, character, last, remove, split
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.