473,781 Members | 2,280 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="buttonba r">
<a href="Albums.as px"><asp:imag e ID="Image2" runat="Server"
skinid="gallery " /></a>
&nbsp;&nbsp;&nb sp;&nbsp;
<asp:ImageButto n ID="ImageButton 1" Runat="server" CommandName="Pa ge"
CommandArgument ="First" skinid="first"/>
<asp:ImageButto n ID="ImageButton 2" Runat="server" CommandName="Pa ge"
CommandArgument ="Prev" skinid="prev"/>
<asp:ImageButto n ID="ImageButton 3" Runat="server" CommandName="Pa ge"
CommandArgument ="Next" skinid="next"/>
<asp:ImageButto n ID="ImageButton 4" Runat="server" CommandName="Pa ge"
CommandArgument ="Last" skinid="last"/>
</div>

So I wrote an event handler like this:

protected void FormView1_ItemC ommand(object sender,
FormViewCommand EventArgs e)
{
litComment.Text = String.Format(" {0}: {1}/{2}",
DateTime.Now, e.CommandName, e.CommandArgume nt);
}

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 1388
Okay, after some speculation, I decided to change the line:

<%@ OutputCache Duration="60" VaryByParam="No ne" %>

To:

<%@ OutputCache Duration="1" VaryByParam="No ne" %>

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***@softcirc uits.comwrote in message
news:ef******** ******@TK2MSFTN GP05.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="buttonba r">
<a href="Albums.as px"><asp:imag e ID="Image2" runat="Server"
skinid="gallery " /></a>
&nbsp;&nbsp;&nb sp;&nbsp;
<asp:ImageButto n ID="ImageButton 1" Runat="server" CommandName="Pa ge"
CommandArgument ="First" skinid="first"/>
<asp:ImageButto n ID="ImageButton 2" Runat="server" CommandName="Pa ge"
CommandArgument ="Prev" skinid="prev"/>
<asp:ImageButto n ID="ImageButton 3" Runat="server" CommandName="Pa ge"
CommandArgument ="Next" skinid="next"/>
<asp:ImageButto n ID="ImageButton 4" Runat="server" CommandName="Pa ge"
CommandArgument ="Last" skinid="last"/>
</div>

So I wrote an event handler like this:

protected void FormView1_ItemC ommand(object sender,
FormViewCommand EventArgs e)
{
litComment.Text = String.Format(" {0}: {1}/{2}",
DateTime.Now, e.CommandName, e.CommandArgume nt);
}

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
2183
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 ideas will be appreciated. I will look at anything that can be modified VS 2003.
1
1279
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 Server. I have installed the ..NET 2.0 framework and SQL Server Experess 2005. First I ran into trouble with the App_Data\*.mdb/ldb database files. Apparently, the SQL server did not have sufficient rights to modify them. I think I managed to fix...
5
1697
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: 'Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.'
4
1742
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 public, it defaults to Friends role. I have more roles like 'Family' and I want to be able to choose which roles have access to which albums. Is it possible? How? Thanks in advance!
2
1309
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. Is there a tag I need for the "Your Name Here | Home" part? Or maybe the "Your name" is supposed to be my web page and not the user name. Is it then possible to put a variable in there? <%@ Page Language="C#"...
0
2617
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: ------------------------------------------ Server Error in '/PersonalWebSiteStarter' Application. -------------------------------------------------------------------------------- An error has occurred while establishing a connection to the server. ...
0
1299
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 images in a DB and I am trying to adapt this to store other docs, such as .doc, .pdf etc I get the file to stoe into the DB ok, but when i try to save the
1
1586
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 and I uploaded all files to the hosting server. I ran my site http://www.srssite.com and everything was fine. I uploaded 1 picture and tested my site again. I noticed just a very small difference in speed (opening default page initially and...
2
1511
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 problems with the photos. At one point, it shows I have 4 photos where I administer the photos yet shows I have only 3 where photos are normally viewed. And when navagating those photos, sometimes it just shows the same photo again. But more often...
0
9636
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10075
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9931
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8961
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6727
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5504
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.