ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Set ASP.Net Hyperlink NavigateUrl QueryString parameter using C# and VB.Net<p>Hi <a class="username" rel="nauna"> nauna</a>,</p> <p>Please refer below sample.</p> <p><span style="text-decoration: underline;"><strong>HTML</strong></span></p> <pre class="brush: html">ID: &lt;asp:TextBox runat=&#34;server&#34; ID=&#34;txtValue&#34; /&gt; &lt;asp:Button ID=&#34;Button1&#34; Text=&#34;Assign&#34; runat=&#34;server&#34; OnClick=&#34;Assign&#34; /&gt; &lt;asp:HyperLink ID=&#34;hlURL&#34; runat=&#34;server&#34; Text=&#34;View&#34; /&gt;</pre> <p><span style="text-decoration: underline;"><strong>Code</strong></span></p> <p><strong>C#</strong></p> <pre class="brush: csharp">protected void Assign(object sender, EventArgs e) { hlURL.NavigateUrl = &#34;Default.aspx?ID=&#34; + txtValue.Text; }</pre> <p><strong>VB.Net</strong></p> <pre class="brush: vb">Protected Sub Assign(ByVal sender As Object, ByVal e As EventArgs) hlURL.NavigateUrl = &#34;Default.aspx?ID=&#34; &amp; txtValue.Text End Sub</pre> <p><span style="text-decoration: underline;"><strong>Screenshot</strong></span></p> <p><img src="https://imgur.com/RgX0Ge2.gif" alt="" width="349" height="153" /></p>https://www.aspforums.net:443/Threads/187143/Set-ASPNet-Hyperlink-NavigateUrl-QueryString-parameter-using-C-and-VBNet/https://www.aspforums.net:443/Threads/187143/Set-ASPNet-Hyperlink-NavigateUrl-QueryString-parameter-using-C-and-VBNet/Sun, 24 Feb 2019 23:57:22 GMT