Posted: 4/9/2009
there is a strange behaviour, during server postback the validation control will show the image area but not the image... The image is in right path...there is a complex ajax asp.net control which is used in one more asp.net control which need to be validatedjust below the complex ajax asp.net control we have custom validator <asp:CustomValidator ID="validator1" Display="Dynamic" ErrorMessage="Required!" Runat="server" > <img src='/../Images/Failed.gif' height='16' width='16' alt='Required!' /> </asp:CustomValidator>in the code behind in the isvalid propertyvalidator1.IsValid = is set to true or false based on some condition...when validator1.IsValid is false then this image should be displayed, but it will display only the image areaactual image is not shownwe also feel that this may not be related to ajax control...we checked in the net but no answers for this any one come across this problem earlier ?
it was path problem, but in aspx code editor in visual studio 2005 it shows invalid path/Path Not Found after correcting, when we run it, it will displays the image when validated. <img src='Images/Failed.gif' height='16' width='16' alt='Required!' />
one more thing I would like to highlight is invalid path/Path Not Found happens when the IIS Virtual Diectory Image Folder Path is diffrent from the path defined in Visual Studio Solution.