I'd like 1st of all to thank you.
The code is:
Private Sub sendComment_Click(ByVal sender As System.Object, ByVal e
As System.Web.UI.ImageClickEventArgs) Handles sendComment.Click
If PostName.Value.Length = 0 OrElse PostBody.Value.Length = 0
OrElse PostTitle.Value.Length = 0 Then
Response.Redirect("/FeedBack.aspx?Page=AddComment&Status=incorrect")
Exit Sub
End If
Dim ds As DataSet
Dim Articleid As Int64
ds = DataCon.GetDataset("Select * from articles where ArticleID="
+ CleanRequest(Request.QueryString("v")).ToString + "")
Articleid = CInt(ds.Tables(0).Rows(0)("ArticleID"))
ds = Nothing
If AddArticlePost(Articleid, stripTag(PostBody.Value),
stripTag(PostTitle.Value), stripTag(PostName.Value)) Then
LogArticlePropertiy(Articleid, , , 1)
Response.Redirect("/FeedBack.aspx?Page=AddComment&Status=correct")
End If
End Sub
1st IF statment check if the length of the 3 fields are not equal to zero
DataCon is a public class that handels all DB functions.
GetDataSet is a method that accepts a SQL St. and return a dataset [in
this case we need the article id]
AddArticlePost is the method that will insert into the database a new
record that represents the comment.
Now in case that AddArticlePost run without a problem then we will Call
another method to increase number of comments that hase been posted of
this article, then we will redirect the end user to a feedback page.
The problem is that the code is running from only one computer that its
IP is listed in the IP Pool of the Firewall of the ISP,
and also the code is running from any computer in case that the comment
body is less than 1250 bytes.
and the code was working without any problem just 5 days ago.
Best regards,
Juan T. Llibre said:
Ammar,
to repeat your statements :
If the comment length is more that 1249 bytes, then displaying that the
page not found!!!!
If the message is less than or equal to 1249 then no problem.
If it is "a configuration problem", as you say,
why does it work for messages less than 1249 bytes ?
Shouldn't it, in that case, *never* work ?
RFC 2616 says that 400 Bad Request means that
"the request could not be understood by the server
due to malformed syntax".
Are you modifying the headers ?
Or adding too many characters to the querystring ?
Please post the coding methods you use to store/retrieve
the comments if you want me to be able to try to help you.
I cannot help you by remote osmosis.
Hello Juan,
The problem not in the code.
The logfile of the web server contains Protocol-Status 400,
Now I have a computer that contains a static IP that is listed in the
IP Pool of ISP firewall, and that computer is working without any
problem.
Do you think that installing SP1 of the framework V 1.1 will solve the
problem.
I think that it is a configuration problem.
Thanks a lote.
Regards,
Ammar,
how are you storing the comment ?
Please post the code you use to store the comment.
Dear All,
I'm facing a small problem.
I have a portal web site, that contains articles, for each article,
the end user can send a comment about the article.
The problem is:
I the comment length is more that 1249 bytes, then the progress bar
of the browser will move too slow and then displaying that the page
not found!!!!
If the message is less than or equal to 1249 then no problem.