473,387 Members | 1,321 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Troubleshooting Personal Website Starter Kit

Okay, I've spent considerable time trying to figure out why I get random
problems when browsing the images in the Personal Website Starter Kit.
(Note: I found a number of these sites on the Web, and all their photos
browse just fine. Something is screwy even after recreating the database.)

Although a few things are going on, one is that the navigation buttons stop
working at some random point. When I click them, the page appears to refresh
but it then shows the same image.

The navigation buttons are part of a FormView's ItemTemplate and look like
this:

<div class="buttonbar">
<a href="Albums.aspx"><asp:image ID="Image2" runat="Server"
skinid="gallery" /></a>
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:ImageButton ID="ImageButton1" Runat="server" CommandName="Page"
CommandArgument="First" skinid="first"/>
<asp:ImageButton ID="ImageButton2" Runat="server" CommandName="Page"
CommandArgument="Prev" skinid="prev"/>
<asp:ImageButton ID="ImageButton3" Runat="server" CommandName="Page"
CommandArgument="Next" skinid="next"/>
<asp:ImageButton ID="ImageButton4" Runat="server" CommandName="Page"
CommandArgument="Last" skinid="last"/>
</div>

So I wrote an event handler like this:

protected void FormView1_ItemCommand(object sender,
FormViewCommandEventArgs e)
{
litComment.Text = String.Format("{0}: {1}/{2}",
DateTime.Now, e.CommandName, e.CommandArgument);
}

Initially, this creates a comment that is as expected each time I click a
navigation button. But at some point, this event is no longer called! Again,
when I click a navigation button, the page appears to refresh but the time
string is exactly the same (as are the command name and argument). What on
Earth could cause the event to stop being called?

I've searched the Web and not seen a description of anything like this.
Could it be related to running older code on ASP.NET 3.5?

If anyone has a suggestion on what I might try next, I would love to hear
it.

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Jun 27 '08 #1
1 1372
Okay, after some speculation, I decided to change the line:

<%@ OutputCache Duration="60" VaryByParam="None" %>

To:

<%@ OutputCache Duration="1" VaryByParam="None" %>

And... it appears to work.

So, I don't really understand ASP.NET caching yet. On the one hand, it makes
sense that it would stop working as it was simply returning the cached
version of the page. But then how did this ever work for anyone, and how
come it's working for other people. Is anyone able to shed some light on
this?

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:ef**************@TK2MSFTNGP05.phx.gbl...
Okay, I've spent considerable time trying to figure out why I get random
problems when browsing the images in the Personal Website Starter Kit.
(Note: I found a number of these sites on the Web, and all their photos
browse just fine. Something is screwy even after recreating the database.)

Although a few things are going on, one is that the navigation buttons
stop working at some random point. When I click them, the page appears to
refresh but it then shows the same image.

The navigation buttons are part of a FormView's ItemTemplate and look like
this:

<div class="buttonbar">
<a href="Albums.aspx"><asp:image ID="Image2" runat="Server"
skinid="gallery" /></a>
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:ImageButton ID="ImageButton1" Runat="server" CommandName="Page"
CommandArgument="First" skinid="first"/>
<asp:ImageButton ID="ImageButton2" Runat="server" CommandName="Page"
CommandArgument="Prev" skinid="prev"/>
<asp:ImageButton ID="ImageButton3" Runat="server" CommandName="Page"
CommandArgument="Next" skinid="next"/>
<asp:ImageButton ID="ImageButton4" Runat="server" CommandName="Page"
CommandArgument="Last" skinid="last"/>
</div>

So I wrote an event handler like this:

protected void FormView1_ItemCommand(object sender,
FormViewCommandEventArgs e)
{
litComment.Text = String.Format("{0}: {1}/{2}",
DateTime.Now, e.CommandName, e.CommandArgument);
}

Initially, this creates a comment that is as expected each time I click a
navigation button. But at some point, this event is no longer called!
Again, when I click a navigation button, the page appears to refresh but
the time string is exactly the same (as are the command name and
argument). What on Earth could cause the event to stop being called?

I've searched the Web and not seen a description of anything like this.
Could it be related to running older code on ASP.NET 3.5?

If anyone has a suggestion on what I might try next, I would love to hear
it.

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: William | last post by:
Looking for a pre built dot net website for consulting business. I am trying to put up a quick business web for a dot net frame work. I have a provider already. I am trying to save time. Any...
1
by: Bendik Engebretsen | last post by:
I have made an ASP.NET 2.0 site using the Personal Website Starter Kit. I did this on an XP machine and it the site runs fine on this machine. I have then tried to publish it to our Windows 2003...
5
by: Bendik Engebretsen | last post by:
Developed this personal WEB site with the new ASP.NET 2.0 Beta: http://www.techsoft.no/bendik/ It has got this problem: After a while browsing through pictures on the site, an error occurs: ...
4
by: rpm | last post by:
I have started using Personal Site Starter Kit with Visual Web Developer 2005. I realized that for the photo gallery portion, I can have an album set to be public or not. And if I set it not to be...
2
by: Cindy Lee | last post by:
Sorry I'm new, this must be easy, but how do you add the log in name to the title of the web page? (This is using the Microsoft Personal Web page starter kit), the top of the page is listed below....
0
by: Larry Rebich | last post by:
I am trying to use the sample web template that is distributed with Visual Studio 2005 called 'Personal Web Site Starter Kit'. After running for awhile it fails with the following message: ...
0
by: Karl | last post by:
Hi All, I am trying to get to grips with storing files in a database instead of on the webservers file system. I have been playing with Microsoft's Personal Web Starter Kit which stores...
1
by: esha | last post by:
I created my first WEB application from Personal WEB Starter Kit template (C#). I made just minor changes like Connection String and some texts. I created SQL Server database on the hosting server...
2
by: Jonathan Wood | last post by:
I decided to give another go at getting the Personal Site Starter Kit working for me. I'd really love to get this working. But I've had nothing but trouble. Specifically, there are all sorts of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.