Results 1 to 4 of 4

Thread: How to give the hyperlink in inside the gridview row

  1. #1

    How to give the hyperlink in inside the gridview row

    How to give the hyperlink in inside the gridview row for a particular text. for example from a particular row has the following text,

    paid By cash Receipt number: EASA001.

    I want the link only for EASA001.
    pls tell me the solution


  2. #2
    Junior Member
    Join Date
    Jul 2007
    Answers
    1

    Smile Re: How to give the hyperlink in inside the gridview row

    1) Go to Griidview Task ->Edit Colums->
    2) Add columns as per the columns will be returned from the database by clicking on bound field.
    3) As soon as you add the bound field in the selected field. provide that field with the datafield.
    4) Now use convert into item template to operate on the field manually. This field will be your receipt number field.
    5) No open the source code. Search for
    Add the following code:


    Databind("recieptno")


    Regards,
    Rupesh More.


  3. #3

    Re: How to give the hyperlink in inside the gridview row

    Hi
    You just give the hyperlink field inside the gridview code in source code (aspx page)
    regards
    santhanaM


  4. #4
    Contributing Member
    Join Date
    Jun 2007
    Answers
    65

    Re: How to give the hyperlink in inside the gridview row

    Hi Santhana,

    You can do that by
    1. Create an ItemTemplate in gridview and define ur static hyperlink here ie. you know for any of the item
    2. go to HTML view and replace the static values in hyperlink by <%# DataBinder.eval(COLUMNNAME) %>

    COLUMNNAME is the name of the datacolumn

    How's that!!

    --V V--
    Vikas Vaidya


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact