|
I have a ASP.NET website that use an HTTP handler (.ashx) to load some images from a database. Like this:
<br />
<img src="Attach.ashx?article=homepage&attach=EucalyptoLogoSmall.png&mode=show" /><br />
I have created an ASP.NET log to report all the errors and I have noticed that sometime I receive from the internet wrong requests.
Basically the request converts the '&' character to '& amp ;' (like an html encoded string).
Like this:
<br />
Attach.ashx?article=homepage& amp ;attach=EucalyptoLogoSmall.png& amp ;mode=show<br />
(I have used the spaces inside the '& amp ;' otherwise this forum convert it to &)
Do you have an idea on how to solve this problem?
Thanks
Davide
-- modified at 11:26 Friday 20th April, 2007
|
|
|
|
|
Perhaps some browser is correcting the url in an unexpected way.
To write the url correctly in the html code, you should use & in the url:
<img src="Attach.ashx?article=homepage&attach=EucalyptoLogoSmall.png&mode=show" />
Try if correcting the code makes the problem go away.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks for your response.
You are right I have written a wrong example. Actually I use exactly your syntax. (sorry for the copy and paste bug but I think that the forum has replaced the characters ...).
If you want you can see the real page at www.devage.com .
As you can see the image at the center of the page use the right syntax but I still receive the wrong request from internet.
It is possible that the request came from a search spider or something similar?
Here a line of the log that cause the error:
2007-04-19 09:26:49 W3SVC946387459 80.67.115.122 GET /Wiki/Attach.ashx article=homepage&amp;attach=EucalyptoLogoSmall.png&amp;mode=show 80 - XXX.XXX.XXX.XXX Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) www.devage.com 200 0 0
(I hope that the forum display it correctly)
Seems to be a XP with IE 6 but it is not always the same.
Ideas?
Thanks in advance
Davide
|
|
|
|
|
Hi every one.
I am developing a web application which shows complicated graphs.
The graphs are not simple.
Can any one suggest which graph control is more flexible?
Regards,
Arun Kumar.A
|
|
|
|
|
Hi Arun,
Some of our applications, we have used ChartFX http://www.softwarefx.com/[^]controls and Dundas http://www.dundas.com/[^].
Both are nice tools. Also you can create any test application using both chart controls and check for the memory allocation using any profiler tool and decide which one you need to go for
Thanks
Rakheesh
|
|
|
|
|
Thank U very much.
I will check it out.
Regards,
Arun Kumar.A
|
|
|
|
|
when i was using VS.NET 2005, can't see external classes in one namespase.
In VS.NET 2003 all works.
How can i get access methods & functions of another class in the project.
|
|
|
|
|
In my experience, and to my knowledge, there were no changes to visibility rules between Visual Studio 2003 and Visual Studio 2005. Unfortunately, your post doesn't give us much by the way of details to work with, so let me begin by asking some basic questions:- Is the class that you're trying to access defined in the same assembly, or a referenced assembly?
- Is the namespace for the class that you are trying to access explicitly defined?
- Is the class that you are trying to access in the same namespace? If not, is the namespace referenced with the class or in a
using statement? - Is the class that you're trying to access declared explicitly as
public [or internal for a class in the same assembly]? - Are the members/properties/methods that you're trying to access in the class declared explicitly as
public [or internal for a class in the same assembly]? Hopefully, those will give you an idea of some things to check, and if they don't solve your problem, will give us some better perspective on your situation.
--Jesse "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
|
|
|
|
|
YOU WROTE:
>> Is the class that you're trying to access defined in the same assembly, or a
>> referenced assembly?
I'm not shoure, how to check if classes are defined in the same assembly.
>> Is the namespace for the class that you are trying to access explicitly
>> defined?
How can i explicitly define namespace in the project?
>> Is the class that you are trying to access in the same namespace?
Yes, the class i'm trying to access is in the same namespace.
>> Is the class that you're trying to access declared explicitly as public?
Both classes are declared as public.
>> Are the members/properties/methods that you're trying to access in the class
>> declared explicitly as public?
All members are declared as public.
|
|
|
|
|
The easiest way for you to determine if your classes are defined in the same assembly is to verify that they appear in the same Visual Studio project. If your solution contains multiple projects, each project will be compiled into its own assembly. Any classes that you are consuming from an externally referenced .dll are also in a different assembly.
As far as defining a namespace, do you see the namespace keyword at the top of the file? I ask because Visual Studio creates some namespaces when using website projects that produce results that you may not be expecting.
--Jesse "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
|
|
|
|
|
U can use group name property otherwise post the code....
|
|
|
|
|
|
Ahish JV wrote: asp:RadioButton id="rd1" runat="server" in a template column
Add common Groupname to each radio button
group="name" which is the property for the radio button
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
I have done same but with check box.
This is the code to read Gridview rows:
Private Function ReadGridRows() As String
Dim intGridRowcnt As Int16
Dim strFinalString As String = ""
Try
For intGridRowcnt = 1 To GridViewForm.Rows.Count
strFinalString = strFinalString & GridViewForm.DataKeys(intGridRowcnt - 1).Item("FormID").ToString & ","
'strFinalString = strFinalString & GridViewForm.Rows(intGridRowcnt).RowIndex & ","
If CType(GridViewForm.Rows(intGridRowcnt - 1).FindControl("chkAdd"), CheckBox).Checked Then
strFinalString = strFinalString & "A"
Else
strFinalString = strFinalString & "X"
End If
If CType(GridViewForm.Rows(intGridRowcnt - 1).FindControl("chkModify"), CheckBox).Checked Then
strFinalString = strFinalString & "M"
Else
strFinalString = strFinalString & "X"
End If
If CType(GridViewForm.Rows(intGridRowcnt - 1).FindControl("chkDelete"), CheckBox).Checked Then
strFinalString = strFinalString & "D"
Else
strFinalString = strFinalString & "X"
End If
If CType(GridViewForm.Rows(intGridRowcnt - 1).FindControl("chkView"), CheckBox).Checked Then
strFinalString = strFinalString & "V"
Else
strFinalString = strFinalString & "X"
End If
If CType(GridViewForm.Rows(intGridRowcnt - 1).FindControl("chkPrint"), CheckBox).Checked Then
strFinalString = strFinalString & "P"
Else
strFinalString = strFinalString & "X"
End If
strFinalString = strFinalString & "," & IIf(CType(GridViewForm.Rows(intGridRowcnt - 1).Cells(7).Text, Boolean) = True, 1, 0)
strFinalString = strFinalString & "/"
Next
'
Return strFinalString
Catch ex As Exception
Return ""
End Try
End Function
|
|
|
|
|
Are you writing whole code Varsha
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
what is this button for???
The code which u have given works fine but I didnt get y u r using button???
|
|
|
|
|
Use this link to change ur code from VB to C# :
http://www.developerfusion.co.uk/Utilities/convertcsharptovb.aspx
Hope it helps u...
|
|
|
|
|
I think this may help U.
Click Here
Regards,
Arun kumar.A
|
|
|
|
|
One Post is enough.
Regards,
Satips.
|
|
|
|
|
I implement a feature for a website, and use openModelWindow() to open another browser to choose a date. it works well in IE, but the firefox, it never comes.
is there any solution for that? Thanks
Wilson
|
|
|
|
|
The solution is not to use it.
openModalWindow is a non-standard method that only exists in Internet Explorer. If you don't want to make IE specific applications, stick to the standards.
---
single minded; short sighted; long gone;
|
|
|
|
|
IE is not w3 Compliant in true sence
You need to take care of your script it should not contain against this specifications
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Thanks very much!
Hoa Ho Hoa Bi Nan Hoa Cot
Tri Nhan Tri Dien Bat Tri Tam
|
|
|
|
|
|
Hi All,
I need to show empty GirdView, I mean when dataset is empty girdview should show only column with no rows.
Please help me...
Thanks in advance...
|
|
|
|