Sorry for the long post, I'll try format it so it's easy to read 1. Explanation of what I'm doing 2. Explanation of problems I'm facing 3. Request.UrlReferrer is null in Firefox, but not Chrome or IE 1. Explanation of what I'm doing --------------------------- I'm using a swf file on my website that takes an xml file as input via the querystring I've created an aspx page that serves up xml. So my swf is run on a page like so: (in short) <embed src="SWF.swf?xml=xmlpage.aspx&63;pers
Articles similar to Denying outside access to a page + Request.UrlReferrer question:
Error Pages - MVC
Project Web.config
Code:
<customErrorsmode="On"defaultRedirect="Error.aspx">
<errorstatusCode="403"redirect="NoAccess.aspx"/>
<errorstatusCode="404"redirect="/Views/Shared/PageNotFound2.aspx"/>
</customErrors>
All the error page specifed above are in /Views/Shared folder.
Error.apsx and NoAccess.aspx are both created as "view".
PageNotFound2.aspx is a web form.
Why my PageNotFound2.aspx is resulting in "page not found"? Guess i need some break now.
Code:
Server Error in '/' Application.
The resource cannot be found.
Quick Tip – Separate Page Templates in Wordpress
There’s no need for bloating a single file with series of PHP loops to determine the file name and content. This is built in simplicity, and we’ll start with a brief explanation of how it works.Scipts Cancelling each other
I know this is a common question. I have read the posts, including http://www.javascriptkit.com/javatut...plejava3.shtml which illustrates this very problem. Wherein lies the heart of this issue is in my complete lack of knowledge of how Javascript works, and the literal examples in that explanation don't seem to be present in the scripts in question.
The subject page I'm trying to figure out is www.barkingtuna.com/indexMAG.html.
Problem applying PerWebRequest...
Originally, I wanted to use my nhibernate ISession on a per-web-request basis so all instances of my repositories were using the same ISession. I had a ton of problems getting this to work. I tried Application_BeginRequest with Application_EndRequest followed by an attempt at an HttpModule.
The problem that intermittently manifested itself was an occasional 'Session closed!' error. Sometimes it would be on the second refresh of a page, and sometimes the first. There didn't seem to be any reasonable explanation. I set some breaks and stepped through it, and sure enough, there were times were the session spontaneously closed itself between two successive lines of code, with nothing else in between.
getAttribute from servlet
Hi gurus,
I have a quick servlet that forwards the following to a jsp:
request.setAttribute("myString", myPointList);
RequestDispatcher view = getServletContext().getRequestDispatcher("/myjsp");
view.forward(request, response);
In my JSP file, I can access the content with:
${myString};
This may be a silly question, but here is my dilemma. I have a javascript in that JSP file:
<script type="text/javascript">
function onload() {
var testString = ${myString};
alert (testString);
}
</script>
Pagination to display results of MySQL
Hi all.
I need your help.
Use this pagination to display results of MySQL, but the link
Code:
<a href="?page=<%=currentPage+1%>">Next</a>
is always active even when there are no results to display:
Code:
<%
pageSize = 25
if(len(Request.QueryString("page"))=0)then
currentPage = 1
else
currentPage = CInt(Request.QueryString("page"))
end if
If Not IsNumeric (currentPage) Then currentpage = 1
If currentPage < 1 Then currentPage = 1
start = ((currentPage - 1) * pageSize)Ugh! Regex! #^@! Please help!
Greetings!
Don't know if I'm have some brain fog or what. But I wrote this simple script about a year ago to scrape my youtube playlist and display it on my own personal webpage. I attached the original code (as a text file) to this thread. Here it is --> Attachment 8843
Now .. as I've slowly progressed at this I took a look at this script to see how I could make it work better. And I saw that I had originally read the web page then wrote it to a file then read the file and then formatted the page. When I could just read the page and format as I go along.
The page I'm reading has NOT changed. But it's weird that my regular expression statement isn't working. And my eyeballs are not seeing my mistake!

