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

  • SEARCH
  • Home
  • 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 200385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:06:25+00:00 2026-05-11T17:06:25+00:00

I was wondering how, from an event on the child object inside a templatefield

  • 0

I was wondering how, from an event on the child object inside a templatefield belonging to a gridview, I could reference the row.

[edit: apparently I’m wrong and parent is not null, weird stuff, is all.]

Thing is, there is a checkbox representing a boolean state in relation to a user’s relation to an ID. I have to update that information manually, either by deleting the target row or inserting it, depending of the checkbox state.

The username I can get quite easily, the actual state too, through a function.

So, how do I get the ID that is in the row my gridview is referencing, from within that event?

I absolutely need that information, I can’t use a workaround implying modifications to the database or the method used to do what I intend to do. I absolutely have to use a checkbox, and that event.

  • 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-11T17:06:25+00:00Added an answer on May 11, 2026 at 5:06 pm

    Seems the simplest solution I could use was to add an hiddenfield bound on the ID and refer to that instead of going knee deep in esoteric references. It became a simple matter of FindControl.

    like (myChkBox.Parent.FindControl(“myHiddenField”) as HiddenField).Value

    Maybe not as sexy as it could be, but still, it works, I guess.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm coming from the C# event model, and I'm wondering if there is a
I was wondering if there's a way to get event from ajax success? For
I was wondering what's the proper way of raising events from C++/CLI. In C#
Wondering if anyone has gotten the infamous database is locked error from Trac and
Just wondering which is faster: DELETE FROM table_name WHERE X='1' DELETE FROM table_name WHERE
Wondering if anyone knows a nice way to execute a Java command-line program from
Wondering if there is any way to get the lambda expressions that result from
I was wondering how you can recover data from your logfile. I'm using sql
Following on from my other post about primary keys I am wondering if there
Reading some posts from Jimmy Boggard and wondering - how exactly is it possible

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.