Hi,
I have the following HTML, storing in a string in C# code (string html = "below html";).
There are five tables in HTML and I want to remove table tag from string where table id = 'Location2'. Please advise
NOTIFICATION
Column-1
Column-1 Value
Column-2
Column-2 Value
Location-1
Name:
Location Name
AddrLine:
Location Address
Location-2
Name:
Location Name
AddrLine:
Location Address
Summary
Distance (Miles):
150
Distance (Meter):
200

Amit MohantyPosted Nov 8, 2022, 9:26 AM
Try this
Muhammad Imran AnsariPosted Nov 8, 2022, 9:00 AM
Thanks Brahma for reply.
I want to achieve this in C# code. HTML is in a tring veriable and want to remove table (where id = 'Location2') from string.
Brahma Prakash ShuklaPosted Nov 8, 2022, 5:21 AM
Put that table inside the div and use js code to remove table tag from the string then pass it to the server side in c# code.