Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 11, 2009 10:01 AM by Edwin_Pro_Net
Oct 28, 2009 06:52 AM|LINK
Anyone can help me ?
Get viewsource data from HTML and yet set regular expression to ignore the unnecessary <TD></TD>, other html element as well. only need the text data.
txtOutput.Text = txtOutput.Text + raw_data[k].ToString();
// html.Text = results;
readcontents = sr.ReadLine();
html.Text = readcontents;
Oct 28, 2009 02:32 PM|LINK
What is the source of the html data in question?
Oct 29, 2009 02:31 AM|LINK
Oct 29, 2009 02:50 AM|LINK
how to get data only which mean ignore all the html element like <TR>,<TD> and etc ?
you can strip all the html tags with this expression: <(.|\n)*?>
refer here for additional info:
you could also consider using the
HtmlAgilityPack which will go through the elements and you'd be able to query it like with xml.
http://htmlagilitypack.codeplex.com/Thread/View.aspx?ThreadId=67224 - that's the support where you can see a similar example
I think, however, the first option should work for you.
strip html tags
text within html tags
Oct 29, 2009 03:01 AM|LINK
thx Pete, u such a genius.........
by the way, how to write the regular expression, mind to share with me ? coz it seem like complicated for me...
anyway , thanx a lot
Oct 29, 2009 05:45 AM|LINK
if you want to do this like, Page.FindControl
Oct 29, 2009 06:16 AM|LINK
how about ignore character and just need the numerical value only..........
I'm poor in regular expression writing...........
Oct 29, 2009 06:35 AM|LINK
Just go the article no need to write Regular Expression.
You only need to make sure replace runat ="server" with the control that you need in Page.
Oct 31, 2009 03:44 AM|LINK
Sorry, I dont really understand what you mean in that article.
1. These classes need to put in the single aspx.cs file ?
public class MyProvider : System.Web.Hosting.VirtualPathProvider
public class MyVirtualFile : System.Web.Hosting.VirtualFile
2. What mean by code statement below ? file provide ?
3. What's need to clear and where should i put the statement below ?
4. Can you include the namespace as well ?
(for eg using System.Web.Compilation etc ?)
5. Could you please show sample demo(asp.net C#) which available to download ?
Thank You Imran.......
Nov 01, 2009 02:37 AM|LINK
u such a..
wanna give some tips to people but not completed....
ask question didn't reply...
sigh..... go to ur site post question also didn't answer......