Rank: Member
Joined: 2/12/2007(UTC) Posts: 73
|
I tried to add the pager control to a new page, and the result is that on the line
Dim page as new string = Request.Querystring("page") never return valid result. The only key that is in the collection is categoryid, and despite on the address bar the word page=X is displayed accross the url rewriting process the page value isn't passed.
The strange thing is that accessing to the context value of the request querystring the page is there, but accessing to the individual property doesn't return anything again.
It's really strange.
What could be the matter?
Thanks Andrea
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
It is possible to get the exact url that you are seeing? |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 2/12/2007(UTC) Posts: 73
|
Sorry for the delay ... it doesn't work in local environment. I didn't test on the sample web site, but using your theme or mine it produces the same result. Doesn't move through the pages. Always stay on page number 1.
I don't know how to let you see this. But the result of the Response.Write(Request.QueryString("page")) in the aspx page - so in the final layer - wouldn't pass back the real number passed by the link's querystring.
|
|
|
|
Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
I had this problem as well with my own template. It has to do with a change you did to the template but I can't remember what I did to fix it. I know it took me a while to get it running again and for me it was a change I did. Try to change the theme back to a standard one and check if that works. If it does not, install a new website in theme, make sure that one works and do a diff on the files to see what you've changed. Corneliu. |
|
|
|
|
Rank: Member
Joined: 2/12/2007(UTC) Posts: 73
|
Couldn't send me your pager control? Maybe the problem is there, also if not sure of this, since I just changed the look & feel. I would really like an interest by the support team. It seems that if a thing isn't repro on their side, the problem doesn't exist at all.
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
My best suggestion would be to look at the normal category pages and emulate the way they interact with the pager control. This control is working fine on all of our category templates and we have not had any reports of it not working on an unmodified store. Once you start modifying the pages it is extremely hard for us to help you when things don't work as expected. If you can post the modified page we will look at it and see if we can spot anything out of the ordinary. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 2/12/2007(UTC) Posts: 73
|
Could you please give me a list of the files you want? Pager control and ?
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
Pager control (if modified) and the category template page that it isn't working on. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 2/12/2007(UTC) Posts: 73
|
Attached there are the files requested. I use bulk order list template. File Attachment(s): Pager.ascx (1kb) downloaded 4 time(s).You cannot view/download attachments. Try to login or register.
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
I don't see anything initially wrong, but what do the links in the pager look like? When you hover over the numbers, what does the link actually display? |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 2/12/2007(UTC) Posts: 73
|
This is an example:
http://vestigium/analisi/analisi_del_testo.aspx?page=2
and the matter is that that querystring wasn't corretly get between the controls because it returns always 0
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
The interesting part about this is that when you say Request.QueryString("page") and you are getting nothing back, this is all being handled by asp.net. We aren't really doing anything here, it is built into the tools. Could you do me a favor and make your CurrentPage property in the Pager control look like this:
Public ReadOnly Property CurrentPage() As Integer Get Dim page As String = Request.QueryString("page") If page IsNot Nothing Then EventLog.LogEvent("Pager Control", "Current Page: " & CInt(page) & " Url: " & Me.Page.Request.RawUrl, Metrics.EventLogSeverity.Information) Return CInt(page) Else Return 1 End If End Get End Property
Then click on the buttons on the pager control a few times and let me know what these messages display in the event log. (Options > Event Log in the admin) |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 2/12/2007(UTC) Posts: 73
|
I'm running on IIS 7 and Vista .. but a REquest.Querystring for what I Know had always worked since asp 1.0 :)
|
|
|
|
Rank: Member
Joined: 2/12/2007(UTC) Posts: 73
|
It doesn't produce anything because Request.Querystring return a null object so it never pass inside that if condition
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
So, you are seeing in the address bar of your browser a "page=2" but when you get the Request.QueryString("page") variable it is null? If that is the case then something very wrong appears to be happening in your environment, or something is reassigning that querystring variable. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 2/12/2007(UTC) Posts: 73
|
Well, all other web site works fine, and a simple request.querystring ... in a new page, new web site works fine. Also in the same web site of your shopping cart I don't have problems. But I get it using the control. What's the logic that the page follow? It could be that with all that page switch, control's load etc ... something is lost along the track.
Bye Andrea
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
In the PageLoad event move the LoadProducts method call outside of the If Not Page.IsPostBack Then block. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 2/12/2007(UTC) Posts: 73
|
|
|
|
|
Rank: Member
Joined: 2/12/2007(UTC) Posts: 73
|
I think that the problems derive due to the fact that I edited the page starting from a different controls present in your set. I can say this because within the original block id the page wasn't working at all, so I used the block id of the real category bulk order list. Now, since I've other problems clicking on the checkbox and pressing add to cart (elements selected aren't added to the cart) I'm doing some debug. Unfortunately I deleted your original file. Could you please:
1) try to explain what's the role of the block id in your page 2) send me both .vb and .aspx original code of the bulk order category list?
Thanks.
|
|
|
|
Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
I think it has to do with the url rewriter that does not handle some case correctly. If only I would remember which was the case. Can you verify on all categories? I think you might have some duplicate category name or a category with some special chars in the name. I'm quite positive that it's a url rewriter thing and not a pager related issue. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.