Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 16th, 2005, 12:34 PM
Friend of Wrox
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default How grap the passed value in URL ?

Hi guys i am passing a aspx page with teamno value( teamsandmatchs.aspx?team=2 ) I do not know how i can grap that passed value and place it inside html url. i want the passed value to be placed after teamno=.

p><a href="http://localhost/updatemachrecord/insertmatchviateam.aspx?teamno=">Add Record</a>
i be happy if some one show me how i put passed value team after ?teamno= in the url.Thanks

here is my page code
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="teamsandmatches.aspx.vb" Inherits="updatemachrecord.teamsandmatches"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
        <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
        <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
        <meta name="vs_defaultClientScript" content="JavaScript">
        <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <body MS_POSITIONING="GridLayout">
        <form id="Form1" method="post" runat="server">
            <asp:DataGrid id="DataGridTeams" style="Z-INDEX: 101; LEFT: 24px; POSITION: absolute; TOP: 64px"
                runat="server" Width="264px" Height="208px" BorderColor="White" BorderStyle="Ridge" CellSpacing="1"
                BorderWidth="2px" BackColor="White" CellPadding="3" GridLines="None" PageSize="5" AllowPaging="True">
                <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#9471DE"></SelectedItemStyle>
                <ItemStyle ForeColor="Black" BackColor="#DEDFDE"></ItemStyle>
                <HeaderStyle Font-Bold="True" ForeColor="#E7E7FF" BackColor="#4A3C8C"></HeaderStyle>
                <FooterStyle ForeColor="Black" BackColor="#C6C3C6"></FooterStyle>
                    <asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
                    <asp:HyperLinkColumn Text="Edit" DataNavigateUrlField="MATCHNO" DataNavigateUrlFormatString="http://localhost/updatemachrecord/matchupdateteams.aspx?match={0}"></asp:HyperLinkColumn>
                <PagerStyle HorizontalAlign="Right" ForeColor="Black" BackColor="#C6C3C6" Mode="NumericPages"></PagerStyle>
        <p><a href="http://localhost/updatemachrecord/insertmatchviateam.aspx">Add Record</a>
            <asp:Label id="Label1" style="Z-INDEX: 102; LEFT: 168px; POSITION: absolute; TOP: 16px" runat="server"
                Height="32px" Width="184px">Matches Record by teams</asp:Label></p>
Old June 17th, 2005, 08:05 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Use an asp:hyperlink control instead of literal HTML. Then you can programmatically change the NavigateUrl property to include the query string parameter.


Similar Threads
Thread Thread Starter Forum Replies Last Post
string being chopped off when passed through url ronny Classic ASP Basics 6 October 30th, 2007 09:53 AM
How grap the passed value in select where clause method ASP.NET 1.x and 2.0 Application Design 1 June 16th, 2005 10:53 AM
How to grap passed data and send it to db method Access ASP 0 March 15th, 2005 02:59 PM
extract URL from Favorites (.URL Files) PhilHawks VB.NET 2002/2003 Basics 2 November 2nd, 2004 04:35 AM
Value in Querystring not being passed u_heet Classic ASP Professional 2 September 16th, 2004 07:15 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.