Forgive me for my abundance of posts over the past few days. I won't promise there will not be more but thank you all in advance.
I'd like to be able to change the default page size on Photos.aspx for Jeremy Wadsworth starter kit from "8" to "All" I've spent a fair amount of time hunting around but can't find where this is set.
I'm on a roll. I've solved 2 of my own problems in a single day. Here is the answer to my post:
To change the default drop down page size on the Photos.aspx page for Jeremy Wadsworth extended starter kit do the following:
Open Photos.aspx.vb file and move ".Items(1).Selected =
True" and change the 1 to an 8 in my case which will show ALL the pictures on the page by default.
With drpPageSize
.Items.Insert(0,
New ListItem("4",
"4"))
.Items.Insert(1, New ListItem("8",
"8"))
'.Items(1).Selected = True
.Items.Insert(2, New ListItem("12",
"12"))
.Items.Insert(3,
New ListItem("16",
"16"))
.Items.Insert(4, New ListItem("20",
"20"))
.Items.Insert(5,
New ListItem("24",
"24"))
.Items.Insert(6, New ListItem("28",
"28"))
.Items.Insert(7,
New ListItem("32",
"32"))
.Items.Insert(8, New ListItem("All",
"10000"))
Member
1 Points
41 Posts
Change default page size on Photos.aspx for Jeremy Wadsworth starter kit
Nov 28, 2007 06:07 PM|tcorneto|LINK
Forgive me for my abundance of posts over the past few days. I won't promise there will not be more but thank you all in advance.
I'd like to be able to change the default page size on Photos.aspx for Jeremy Wadsworth starter kit from "8" to "All" I've spent a fair amount of time hunting around but can't find where this is set.
Thanks as always.
Member
1 Points
41 Posts
Re: Change default page size on Photos.aspx for Jeremy Wadsworth starter kit
Dec 04, 2007 03:40 PM|tcorneto|LINK
I'm on a roll. I've solved 2 of my own problems in a single day. Here is the answer to my post:
To change the default drop down page size on the Photos.aspx page for Jeremy Wadsworth extended starter kit do the following:
Open Photos.aspx.vb file and move ".Items(1).Selected = True" and change the 1 to an 8 in my case which will show ALL the pictures on the page by default.
With drpPageSize.Items.Insert(0,
New ListItem("4", "4")) .Items.Insert(1, New ListItem("8", "8")) '.Items(1).Selected = True .Items.Insert(2, New ListItem("12", "12")).Items.Insert(3,
New ListItem("16", "16")) .Items.Insert(4, New ListItem("20", "20")).Items.Insert(5,
New ListItem("24", "24")) .Items.Insert(6, New ListItem("28", "28")).Items.Insert(7,
New ListItem("32", "32")) .Items.Insert(8, New ListItem("All", "10000")).Items(8).Selected =
True