Click here to Skip to main content
15,901,284 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Make pc-phone,mobile dialer Pin
Manas Bhardwaj25-Jul-09 11:08
professionalManas Bhardwaj25-Jul-09 11:08 
AnswerRe: Make pc-phone,mobile dialer Pin
SpinyTel24-Oct-11 6:32
SpinyTel24-Oct-11 6:32 
Questionopen window Pin
ptvce24-Jul-09 23:14
ptvce24-Jul-09 23:14 
AnswerRe: open window Pin
r a m e s h24-Jul-09 23:46
r a m e s h24-Jul-09 23:46 
GeneralRe: open window Pin
ptvce24-Jul-09 23:54
ptvce24-Jul-09 23:54 
GeneralRe: open window Pin
r a m e s h25-Jul-09 0:35
r a m e s h25-Jul-09 0:35 
GeneralRe: open window Pin
K030625-Jul-09 0:37
K030625-Jul-09 0:37 
QuestionI use code to get HTML source of a url , but there is a problem!!! Pin
Nafiseh Salmani24-Jul-09 23:06
Nafiseh Salmani24-Jul-09 23:06 
I use the following code to get HTML source of a url , but there is a problem!!!


public string Gethtmlsourcecode(string url)
    {
        WebResponse response = null;
        WebRequest request = WebRequest.Create(url);
        response = request.GetResponse();
        string data = "";
        if ((response is HttpWebResponse && ((HttpWebResponse)response).StatusCode.ToString() == "OK") ||
            response is FileWebResponse)
        {
            StreamReader sr = new StreamReader(response.GetResponseStream());
            
            data = sr.ReadToEnd();
        }
        return data;
    
    }


whith this code for url : http://sme.ir/?p=product.profile&ProductID=53834[^]

part of data which is an html source of the url should be

<tr>
		  <td class="l lf" width="35%">نام:</td>
		  <td class="r rf">
		 	آماده سازی و بسته بندی قهوه-كاكائو-چای كیسه ای
		  </td>
		</tr>
						<tr>
		  <td class="l lf">نام‌ قانونی:</td>
		  <td class="r rf">
		 	<a href='http://parstalat.sme.ir'>پارس طلعت</a>
		  </td>
		</tr>



but data is

<tr>
		  <td class="l lf" width="35%">نام:</td>
		  <td class="r rf">
		 	
		  </td>
		</tr>
						<tr>
		  <td class="l lf">نام‌ قانونی:</td>
		  <td class="r rf">
		 	<a href='http://.sme.ir'></a>
		  </td>
		</tr>


you can see some part of HTML source code is not in data!! what should i do to solve this problem?!!!
QuestionTimeout expired error... Pin
specialdreamsin24-Jul-09 21:53
specialdreamsin24-Jul-09 21:53 
AnswerRe: Timeout expired error... Pin
Manas Bhardwaj24-Jul-09 22:45
professionalManas Bhardwaj24-Jul-09 22:45 
GeneralRe: Timeout expired error... Pin
specialdreamsin24-Jul-09 22:58
specialdreamsin24-Jul-09 22:58 
GeneralRe: Timeout expired error... Pin
r a m e s h24-Jul-09 23:10
r a m e s h24-Jul-09 23:10 
QuestionSome Times Tab container is not displaying Pin
Digvijay Pandey24-Jul-09 21:30
Digvijay Pandey24-Jul-09 21:30 
AnswerRe: Some Times Tab container is not displaying Pin
Manas Bhardwaj24-Jul-09 22:46
professionalManas Bhardwaj24-Jul-09 22:46 
QuestionUpdate Pin
KhandelwalA24-Jul-09 19:19
KhandelwalA24-Jul-09 19:19 
QuestionValidating login control Pin
janani1324-Jul-09 19:04
janani1324-Jul-09 19:04 
AnswerRe: Validating login control Pin
dan!sh 24-Jul-09 21:25
professional dan!sh 24-Jul-09 21:25 
QuestionMultiple Code Files in ASP.NET Project Pin
MarkMokris24-Jul-09 10:55
MarkMokris24-Jul-09 10:55 
AnswerRe: Multiple Code Files in ASP.NET Project Pin
Christian Graus24-Jul-09 11:14
protectorChristian Graus24-Jul-09 11:14 
Question[Message Deleted] Pin
mjc22524-Jul-09 7:55
mjc22524-Jul-09 7:55 
AnswerRe: Querying by with a variable for Date/Time in the Where clause Pin
Christian Graus24-Jul-09 11:18
protectorChristian Graus24-Jul-09 11:18 
Questionproblem with Bind Pin
Sider8924-Jul-09 7:33
Sider8924-Jul-09 7:33 
AnswerRe: problem with Bind Pin
Abhijit Jana24-Jul-09 7:38
professionalAbhijit Jana24-Jul-09 7:38 
AnswerRe: problem with Bind Pin
Brij24-Jul-09 7:42
mentorBrij24-Jul-09 7:42 
AnswerRe: problem with Bind Pin
Sider8924-Jul-09 7:51
Sider8924-Jul-09 7:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.