Click here to Skip to main content
16,005,094 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionadd check box to gridview and get the checked rows in gridview to another gridview in c#.net Pin
senpriya23-May-08 1:46
senpriya23-May-08 1:46 
AnswerRe: add check box to gridview and get the checked rows in gridview to another gridview in c#.net Pin
sukkureddy23-May-08 2:01
sukkureddy23-May-08 2:01 
AnswerRe: add check box to gridview and get the checked rows in gridview to another gridview in c#.net Pin
Abhijit Jana23-May-08 3:04
professionalAbhijit Jana23-May-08 3:04 
QuestionHttp Handler Pin
soumyakanta23-May-08 1:35
soumyakanta23-May-08 1:35 
QuestionHow to get the selected value of a dynamically generated dropdown. Pin
SKP2423-May-08 1:29
SKP2423-May-08 1:29 
AnswerRe: How to get the selected value of a dynamically generated dropdown. Pin
Abhijit Jana23-May-08 2:56
professionalAbhijit Jana23-May-08 2:56 
GeneralRe: How to get the selected value of a dynamically generated dropdown. Pin
SKP2427-May-08 19:33
SKP2427-May-08 19:33 
QuestionPing Google Blog with rpc xml - Very slow Pin
eyeonspain23-May-08 1:01
eyeonspain23-May-08 1:01 
I am trying to use the following code to ping GoogleBlog but it is taking FOREEEEVER to load. Can anyone see any issue with the code that may be causing it to run so incredibly slow? I am at my wits end with this now so any help appreciated.

Thank

------pingblog.aspx----------



<title>Untitled Page



<asp:button id="Button1" runat="server" text="Button">
<asp:label id="lb_display" runat="server" text="">
Hello world





-------pingmyblog.vb------------

Imports Microsoft.VisualBasic
Imports System
Imports System.IO
Imports System.Net
Imports System.Text
Imports System.Xml

Public Class _pingmyblog

Inherits System.Web.UI.Page

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Response.Write(Send())
End Sub



Function Send()
Dim listToPing As New ArrayList
Dim pingURL As String = ""
Dim blogURL As String = "http://www.eyeonspain.com/blogs/lisa.aspx"
Dim blogName As String = "Confessions of a Property Manager"
Dim blogFeed As String = "http://www.eyeonspain.com/blogs/feeds/lisa.xml"

With listToPing
.Add("http://blogsearch.google.com/ping/RPC2")

End With

Dim ok As String = ""
Dim NG As String = ""

Try
pingURL = listToPing.Item(i).ToString
Dim technoratiPing As HttpWebRequest = CType(WebRequest.Create(pingURL), HttpWebRequest)
technoratiPing.Method = "POST"
technoratiPing.ContentType = "text/xml"
Dim streamPingRequest As Stream = CType(technoratiPing.GetRequestStream, Stream)
Dim xmlPing As XmlTextWriter = New XmlTextWriter(streamPingRequest, System.Text.Encoding.UTF8)
xmlPing.Formatting = Formatting.Indented
xmlPing.WriteStartDocument()
xmlPing.WriteStartElement("methodCall")

xmlPing.WriteElementString("methodName", "weblogUpdates.ping")

xmlPing.WriteStartElement("params")
xmlPing.WriteStartElement("param")
xmlPing.WriteElementString("value", blogName)
xmlPing.WriteEndElement()
xmlPing.WriteStartElement("param")
xmlPing.WriteElementString("value", blogURL)
xmlPing.WriteEndElement()

xmlPing.WriteStartElement("param")
xmlPing.WriteElementString("value", blogURL)
xmlPing.WriteEndElement()
xmlPing.WriteStartElement("param")
xmlPing.WriteElementString("value", blogFeed)
xmlPing.WriteEndElement()

xmlPing.WriteEndElement()
xmlPing.WriteEndElement()
xmlPing.WriteEndDocument()

xmlPing.Flush()

Dim technoratiPingResponse As HttpWebResponse = CType(technoratiPing.GetResponse, HttpWebResponse)
Dim streamPingResponse As StreamReader = New StreamReader(technoratiPingResponse.GetResponseStream)
Dim strResult As String = streamPingResponse.ReadToEnd
streamPingResponse.Close()
technoratiPingResponse.Close()
ok = ok & strResult & " "
Catch ex As Exception
'Add code here to flag a service as broken
NG = NG & CStr(i) & " "
End Try
Next

Return "OK = " & ok & " " & "NG = " & NG

End Function

End Class
AnswerRe: Ping Google Blog with rpc xml - Very slow Pin
eyeonspain23-May-08 4:03
eyeonspain23-May-08 4:03 
Questionhow to Bind the Custom Validator to GridView Control Pin
Johndas23-May-08 0:41
Johndas23-May-08 0:41 
AnswerRe: how to Bind the Custom Validator to GridView Control Pin
eyeseetee23-May-08 1:24
eyeseetee23-May-08 1:24 
GeneralRe: how to Bind the Custom Validator to GridView Control Pin
Johndas23-May-08 1:30
Johndas23-May-08 1:30 
Questionpassword field Pin
eyeseetee22-May-08 23:58
eyeseetee22-May-08 23:58 
AnswerRe: password field Pin
N a v a n e e t h23-May-08 0:06
N a v a n e e t h23-May-08 0:06 
GeneralRe: password field Pin
eyeseetee23-May-08 0:53
eyeseetee23-May-08 0:53 
GeneralRe: password field Pin
eyeseetee23-May-08 0:58
eyeseetee23-May-08 0:58 
GeneralRe: password field Pin
N a v a n e e t h23-May-08 2:41
N a v a n e e t h23-May-08 2:41 
QuestionWeb Service, how to get local path Pin
blackjack215022-May-08 23:50
blackjack215022-May-08 23:50 
AnswerRe: Web Service, how to get local path Pin
N a v a n e e t h23-May-08 0:13
N a v a n e e t h23-May-08 0:13 
GeneralRe: Web Service, how to get local path Pin
blackjack215023-May-08 0:21
blackjack215023-May-08 0:21 
QuestionDetailView Paging Pin
jason_mf22-May-08 21:41
jason_mf22-May-08 21:41 
AnswerRe: DetailView Paging Pin
Herman<T>.Instance22-May-08 23:29
Herman<T>.Instance22-May-08 23:29 
QuestionJavascript [modified] Pin
senthilsstil22-May-08 21:24
senthilsstil22-May-08 21:24 
AnswerRe: Javascript Pin
eyeseetee22-May-08 21:28
eyeseetee22-May-08 21:28 
GeneralRe: Javascript Pin
senthilsstil22-May-08 21:39
senthilsstil22-May-08 21:39 

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.