User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 456,545 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,363 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 2905 | Replies: 6
Reply
Join Date: Sep 2007
Posts: 29
Reputation: manjusaharan is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
manjusaharan manjusaharan is offline Offline
Light Poster

how to get the row id of the clicked row in a HTML table using c#

  #1  
Oct 15th, 2007
hi All,
I m new to c#.I m using a HTML table in web browser control and wants to get the rowid of the clicked row in HTML table.bt dont have any idea how to get.
IS there any method for getting the row id of the clicked cell.
Please help me in solving the problem thanx in advance.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 763
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: how to get the row id of the clicked row in a HTML table using c#

  #2  
Oct 15th, 2007
if you used GridView, DataList, .... controls you can bind the data to them and get the value of something if you clicked (or take a specific action) on specific row.
but html table used for alignment and design requirements...
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 763
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: how to get the row id of the clicked row in a HTML table using c#

  #3  
Oct 15th, 2007
oooh, that's ASP.NET not HTML, if you need to learn asp.net go to www.asp.net you'll find all resources to be professional web developer
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Sep 2007
Posts: 29
Reputation: manjusaharan is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
manjusaharan manjusaharan is offline Offline
Light Poster

Help Re: how to get the row id of the clicked row in a HTML table using c#

  #4  
Oct 15th, 2007
No Sir,
I have only Html files and i have to access it in c# sothst i can use that module in my application.
isn't there any method in c# by which i can get the clicked row's Id.
Please help.
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 763
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: how to get the row id of the clicked row in a HTML table using c#

  #5  
Oct 15th, 2007
how can u got the data inside the tables (access db) by html, if you could by Java Script you can't identity the rows let me give you example
1
2
5
6
7
can u give a way if you pressed on number 6 tell you that u clicked on the 4th row??!!

u've raw data without any specific structure so you can't make use else read it.
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Sep 2007
Posts: 29
Reputation: manjusaharan is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
manjusaharan manjusaharan is offline Offline
Light Poster

Help Re: how to get the row id of the clicked row in a HTML table using c#

  #6  
Oct 15th, 2007
Sorry Sir,
i m not accessing Access tables ,in fact i m using tables created in Html using<table>,<tr>,<td > tags.
I think u misuderstood me.
Am i right????????
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 763
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: how to get the row id of the clicked row in a HTML table using c#

  #7  
Oct 15th, 2007
yes, I am; but my answer for what I understood and what you mean.
else you in each row have a value you assign. HTML == static
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C# Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C# Forum

All times are GMT -4. The time now is 5:04 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC