Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i used myError.aspx in web congfig <customerrors mode="On" defaultredirect="myError.aspx">how to
when i use jquery load funtion, how to content of myError.aspx no load in div, thanks you
Posted
Comments
[no name] 24-Oct-14 1:53am    
What? I could not understand anything mate..
sinh dhqn 24-Oct-14 3:02am    
My project have error.aspx page. I used load() funtion get file text to div tag(id resultBaiVietCon),but when text file is not folder, content of error page is loaded div tag, how to content of error page no load dig tag?

Collapse | Copy Code
$(document).ready(function () {
$("#BaiGioiThieu").click(function () {
$("#resultBaiVietCon").load("CDBaiViet/k14/" + maSo + "/TextFile.txt", function (responseTxt, statusTxt, xhr) {
if (statusTxt == "success")
{
alert("External content loaded successfully!");
$("#resultBaiVietCon").show();

});
}
if (statusTxt == "error")
$("#resultBaiVietCon").show();
alert("Error: " + xhr.status + ": " + xhr.statusText);
});
});
});
[no name] 24-Oct-14 3:06am    
I suggest you to add this in your question itself. So that everyone can see it.
Sinisa Hajnal 24-Oct-14 2:40am    
Please try to explain in more detail with proper casing. With longer explanation you'll focus better and we could understand what you mean.
sinh dhqn 24-Oct-14 3:02am    
My project have error.aspx page. I used load() funtion get file text to div tag(id resultBaiVietCon),but when text file is not folder, content of error page is loaded div tag, how to content of error page no load dig tag?

Collapse | Copy Code
$(document).ready(function () {
$("#BaiGioiThieu").click(function () {
$("#resultBaiVietCon").load("CDBaiViet/k14/" + maSo + "/TextFile.txt", function (responseTxt, statusTxt, xhr) {
if (statusTxt == "success")
{
alert("External content loaded successfully!");
$("#resultBaiVietCon").show();

});
}
if (statusTxt == "error")
$("#resultBaiVietCon").show();
alert("Error: " + xhr.status + ": " + xhr.statusText);
});
});
});

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900