I can't seem to figure this out and it appears to be a bug so I am posting it here.
I've read much about validating on the edit_events page to stop errors but how do you validate the "durationpicker" control?? Or rather I should say, how do you declaratively validate the datepicker inside the durationpicker???
There is a try/catch codeblock in the datepicker code but I can't seem to get it to work. I'd like to reuse this durationpicker but if I can't get it to validate then it is useless to me.
----------------------------------------------------------------------------------------------------
Public Property SelectedDate()
As Date
Get
EnsureChildControls()
Dim d As
Date
Try
d = Date.Parse(_innerTbx.Text)
errorText =
Nothing
_innerCal.SelectedDate = d
Catch
errorText =
"Date needs to be specified as mm/dd/yyyy"
End Try
Return d
End Get
Set(ByVal value
As Date)
EnsureChildControls()
_innerCal.SelectedDate = value
_innerTbx.Text = value.ToShortDateString
End Set
End
Property
-----------------------------------------------------------------------------------------------------------------------
Is anyone else having this problem? Can anybody out there please help me???
<add name="AspNetXmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true" siteMapFile="Web.sitemap"/>
If you cannot connect using Your sql 2005 connection. I found this connection string is very effective.
<connectionStrings>
<
add
name="ClubSiteDB"
connectionString="Data Source=Connection;Initial Catalog=clubsite;User Id=clubsite;Password=password"
providerName="System.Data.SqlClient"/>
<!--This allows you to access the Security Tab under WebSite, ASP.NET Configuration-->
This seems to work when all connections fail. Database using is MS-SQL 2005 express.
If you need .net hosting with Ms-sql 2000 or Ms-sql 2005. You can try
http://www.Depositdata.com a small company that is still growing. But one thing I love about this company if you submit a ticket to a problem 24 hours someone always fixes or get back to you within a hour or less.
And they are cheap but effective. And have been around since 2000 based out of Arizona and Whiteplains NY for there back up servers.
I'm getting the following error when using this code:
Server Error in '/ClubWebSite1' Application.
Object reference not set to an instance of an object.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 87: Dim FirstButton As Button
Line 88: FirstButton = CType(PageButtons.FindControl("P1"), Button)
Line 89: FirstButton.Style("background-color") = "#990000"
Line 90: FirstButton.Style("color") = "#FFFFFF"
Line 91: End If
Source File: C:\Documents and Settings\rrodriguez\Personal\Visual Studio 2005\WebSites\ClubWebSite1\News_List.aspx.vb Line:
89
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
News_List.Page_Load(Object sender, EventArgs e) in C:\Documents and Settings\rrodriguez\Personal\Visual Studio 2005\WebSites\ClubWebSite1\News_List.aspx.vb:89
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
I have been sifting through the help topics and have not seen this so forgive me if I'm repeating a previous entry. I am brand new to this, and I have just installed the club site first edition. I am getting an error while trying to create my first user.
It keeps kicking out an invalid password error telling me that a minimum of 7 digits and one has to be numeric. I assure you that I have been doing just that. The error keeps comming. Can anyone help?
swerver
Member
3 Points
2 Posts
Help desparately needed!! Re: Edit_Events.aspx
May 30, 2007 04:06 PM|LINK
I can't seem to figure this out and it appears to be a bug so I am posting it here.
I've read much about validating on the edit_events page to stop errors but how do you validate the "durationpicker" control?? Or rather I should say, how do you declaratively validate the datepicker inside the durationpicker???
There is a try/catch codeblock in the datepicker code but I can't seem to get it to work. I'd like to reuse this durationpicker but if I can't get it to validate then it is useless to me.
----------------------------------------------------------------------------------------------------
GetPublic Property SelectedDate() As Date
EnsureChildControls()
Dim d As Date Try d = Date.Parse(_innerTbx.Text)errorText =
Nothing_innerCal.SelectedDate = d
CatcherrorText =
"Date needs to be specified as mm/dd/yyyy" End Try Return d End Get Set(ByVal value As Date)EnsureChildControls()
_innerCal.SelectedDate = value
_innerTbx.Text = value.ToShortDateString
End Set End Property-----------------------------------------------------------------------------------------------------------------------
Is anyone else having this problem? Can anybody out there please help me???
Thanx
sevensnake
Member
8 Points
4 Posts
Re: Identified bugs and fixes for the ClubSite Starter kit
Jun 07, 2007 03:58 AM|LINK
hI i GOT THE cLUBSITESTARTER KIT AND I KEEP GETTING THIS ERROR http://www.anointedvesseldanceministry.org/advm7/DEFAULT.ASPX
http://www.anointedvesseldanceministry.org/advm7/
I add the database and I change the app settings to
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<location path="events_edit.aspx">
<system.web>
<authorization>
<allow roles="Administrators"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="admin">
<system.web>
<authorization>
<allow roles="Administrators"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="locations_edit.aspx">
<system.web>
<authorization>
<allow roles="Administrators"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="news_edit.aspx">
<system.web>
<authorization>
<allow roles="Administrators"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="photoalbum_new.aspx">
<system.web>
<authorization>
<allow roles="Administrators"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="member_list.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
<location path="member_details.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
<connectionStrings>
<add name="ClubSiteDB" connectionString="data source=ipaddress;initial catalog=catalog;user ID=userid;password=password;" />
<!-- <add name="ClubSiteDB" connectionString="initial catalog=ClubDB;Data Source=.\SQLExpress;Integrated Security=true;AttachDBFileName=|DataDirectory|Club.mdf;User Instance=True" providerName="System.Data.SqlClient"/>
-->
</connectionStrings>
<system.web>
<xhtmlConformance mode="Strict"/>
<roleManager enabled="true"/>
<authentication mode="Forms"/>
<compilation debug="true">
wonder can you help me with this
<assemblies>
<add assembly="System.Xml, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Messaging, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
<membership defaultProvider="AspNetSqlMembershipProvider"/>
<siteMap defaultProvider="AspNetXmlSiteMapProvider" enabled="true">
<providers>
<remove name="AspNetXmlSiteMapProvider"/>
<add name="AspNetXmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true" siteMapFile="Web.sitemap"/>
</providers>
</siteMap>
<customErrors mode="Off"/>
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
</system.web>
</configuration>
sevensnake
Member
8 Points
4 Posts
Re: Identified bugs and fixes for the ClubSite Starter kit
Jun 07, 2007 02:06 PM|LINK
http://www.anointedvesseldanceministry.org/advm7/DEFAULT.ASPX
sorry this is the url do you think because my database ((using ms-sql2005)) should be dbo.data
thank the created one when I ran the query
sevensnake
Member
8 Points
4 Posts
Re: Identified bugs and fixes for the ClubSite Starter kit
Jun 07, 2007 02:13 PM|LINK
You have an issue I see there is and Administration page here.
sevensnake
Member
8 Points
4 Posts
Re: Cannot connect using sql remote server
Jun 14, 2007 08:27 PM|LINK
If you cannot connect using Your sql 2005 connection. I found this connection string is very effective.
<connectionStrings><
add name="ClubSiteDB" connectionString="Data Source=Connection;Initial Catalog=clubsite;User Id=clubsite;Password=password" providerName="System.Data.SqlClient"/> <!--This allows you to access the Security Tab under WebSite, ASP.NET Configuration--><
remove name="LocalSqlServer"/> <add name="LocalSqlServer" connectionString="Data Source=Connection;Integrated Security=True;User Instance=clubsite;Password=password" providerName="System.Data.SqlClient" /></
connectionStrings>This seems to work when all connections fail. Database using is MS-SQL 2005 express.
If you need .net hosting with Ms-sql 2000 or Ms-sql 2005. You can try http://www.Depositdata.com a small company that is still growing. But one thing I love about this company if you submit a ticket to a problem 24 hours someone always fixes or get back to you within a hour or less.
And they are cheap but effective. And have been around since 2000 based out of Arizona and Whiteplains NY for there back up servers.
ta4ka
Member
53 Points
22 Posts
Re: Identified bugs and fixes for the ClubSite Starter kit
Sep 12, 2007 05:05 PM|LINK
I guess the c# code for the same would be:
Convert.ToInt32("0" + AlbumList2.SelectedValue), i'm trying this now and it seems ok.
ta4ka
Member
53 Points
22 Posts
Re: Unable to update Email field
Sep 12, 2007 05:32 PM|LINK
The c# code:
protected void update_Click(object sender, System.EventArgs e) {
MembershipUser user = Membership.GetUser();
DataSetTableAdapters.MemberInfoTableAdapter da = new DataSetTableAdapters.MemberInfoTableAdapter();
if ((Email.Text != user.Email)) {
user.Email = Email.Text;
Membership.UpdateUser(user);
}
try {
da.Update(((Guid)(user.ProviderUserKey)), Addr.Text, Phone.Text, fname.Text, lname.Text, ((Guid)(user.ProviderUserKey)));
ContactStatus.Text = "Details have been updated sucessfully.";
ContactStatus.ControlStyle.ForeColor = Drawing.Color.Black;
}
catch (Exception ex) {
ContactStatus.Text = ("Error updating contact details: " + ex.Message);
ContactStatus.ControlStyle.ForeColor = Drawing.Color.Red;
}
}
rrrodz
Member
2 Points
5 Posts
Re: locations_list.aspx bad event wireup
May 05, 2008 05:24 PM|LINK
I'm getting the following error when using this code:
Server Error in '/ClubWebSite1' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 87: Dim FirstButton As Button Line 88: FirstButton = CType(PageButtons.FindControl("P1"), Button) Line 89: FirstButton.Style("background-color") = "#990000" Line 90: FirstButton.Style("color") = "#FFFFFF" Line 91: End IfSource File: C:\Documents and Settings\rrodriguez\Personal\Visual Studio 2005\WebSites\ClubWebSite1\News_List.aspx.vb Line: 89
Stack Trace:
phoenyx33
Member
2 Points
2 Posts
Re: locations_list.aspx bad event wireup
Jul 01, 2008 08:10 PM|LINK
Because there are no pagebuttons until you get more then a page of items, they don't exist.
Put a 'try...catch...end try' around it that sinks the exception when they aren't there.
zazzzmannn
Member
4 Points
2 Posts
Re: Identified bugs and fixes for the ClubSite Starter kit
Oct 25, 2008 03:40 PM|LINK
I have been sifting through the help topics and have not seen this so forgive me if I'm repeating a previous entry. I am brand new to this, and I have just installed the club site first edition. I am getting an error while trying to create my first user. It keeps kicking out an invalid password error telling me that a minimum of 7 digits and one has to be numeric. I assure you that I have been doing just that. The error keeps comming. Can anyone help?