Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3220638
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:47:04+00:00 2026-05-17T15:47:04+00:00

I am using datagrid and I have a <asp:TemplateField> I have passed some parameters

  • 0

I am using datagrid and I have a <asp:TemplateField> I have passed some parameters in it the code is as follow:

<asp:TemplateField HeaderText="Download">
    <ItemTemplate>
        <asp:LinkButton ID="lnkname" runat="server" Text="Download" PostBackUrl='<%#"~/logout.aspx?ID="+Eval("ID")+"&category=mobile"%>'></asp:LinkButton>
    </ItemTemplate>
</asp:TemplateField>

I have numeric field (ID) which i need to send through URL I have tried to send the String type data and its working fine but while I am sending numeric type (ID) I am facing this error

Conversion from string “~/logout.aspx?ID=” to type ‘Double’ is not valid

I know something I need to change in the syntax near Eval("ID"). How should I send numeric data in query string?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T15:47:05+00:00Added an answer on May 17, 2026 at 3:47 pm
    <asp:TemplateField HeaderText="Download">
                    <ItemTemplate>
                   <asp:LinkButton ID="lnkname" runat="server" Text="Download" PostBackUrl='<%# String.Format("~/logout.aspx?ID={0}&category=mobile", Eval("ID")) %>'></asp:LinkButton>
                   </ItemTemplate>
                   </asp:TemplateField>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using .NET 1.1, I have a DataGrid that contains three columns for each row.
In Flex I'm using the following code to allow sorting in a DataGrid (the
I have a datagrid where some of the text needs to span multiple columns.
I have an ASP.NET Datagrid with several text boxes and drop down boxes inside
I am using one DataGrid with templatecolumn of Asp:Label Control. In Design Page i
Let say i have one asp.net application that is having some page that uses
Using the WPF DataGrid I have the need to change various display and related
Hello all i am using datagrid and it doesnot have auto numbering. so i
I have a Datagrid with a DataGridTextColumn. This is populated by using databinding, and
I have a datagrid in which i manually specify the columns (AutoGenerateColumns=false). I'm using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.