16,018,264 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by mathidioticz (Top 25 by date)
mathidioticz
8-Jul-12 2:45am
View
Hi, can anyone please help? I had been stuck with this problem for weeks.. Thanks.
mathidioticz
5-Jul-12 9:29am
View
If i take out the WHERE clause from the update query, the detailsview can update sucessfully, however the new updated value will update all the records in that table instead of just that particular record.. if i add in the WHERE clause, the problem are just like above explained post.. "page post back after the update button is pressed with no change to it"
mathidioticz
5-Jul-12 9:26am
View
Hi. Nope, it is not changing..
mathidioticz
5-Jul-12 8:56am
View
Deleted
Hi. Nope, it is not changing..
mathidioticz
4-Jul-12 11:50am
View
i got a website call "testing". Inside "testing" I have many folders(example: AbtUs, cart, Images). and apsx file are kept inside each folder and all my images are stored inside Images. All the aspx files are linked to the masterpage.
mathidioticz
4-Jul-12 11:20am
View
Hi, I didn't maybe it wasn't because the the path because I didn't change the images's file path. After adding the child pages, it automatically couldn't display images
mathidioticz
1-Jul-12 8:39am
View
I didn't set any primary key in Details table. as using UserId already make the row unique
mathidioticz
1-Jul-12 7:23am
View
I added in as what you said, it still the same. All the records in the table had updated with the new value.
mathidioticz
1-Jul-12 6:29am
View
but my UserId was set as uniqueIdentifier..
mathidioticz
1-Jul-12 5:59am
View
Hi, after I added in DataKeyNames="UserId" into the code, the error:
System.InvalidCastException: Object must implement IConvertible appeared.
Stack trace:
[InvalidCastException: Object must implement IConvertible.]
System.Convert.ChangeType(Object value, TypeCode typeCode, IFormatProvider provider) +3760921
System.Web.UI.WebControls.Parameter.GetValue(Object value, String defaultValue, TypeCode type, Boolean convertEmptyStringToNull, Boolean ignoreNullableTypeChanges) +126
System.Web.UI.WebControls.Parameter.GetValue(Object value, Boolean ignoreNullableTypeChanges) +63
mathidioticz
1-Jul-12 5:18am
View
Hi, sorry what u mean by where I set the UpdateParameters?
mathidioticz
1-Jul-12 1:47am
View
Damith!!! I solved the error!
e.Command.Parameters["@UserId"].Value = currentUser.ProviderUserKey.ToString();
I parse the UserId to String and the error was solved.
Thanks for your great help, you saved my life!! (:
Thanks a million!
mathidioticz
1-Jul-12 1:40am
View
However, another error appeared.
After I logged-in, and click the "UserProfile" hyperlink to direct me to UserProfile page, this error appeared:
Exception Details: System.InvalidCastException: Object must implement IConvertible.
I just researched on this problem.. would it be parse the UserId to string??
This is the first 3 lines from stack trace:
[InvalidCastException: Object must implement IConvertible.]
System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) +9509637
System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType) +5089538
[InvalidCastException: Failed to convert parameter value from a Guid to a String.]
mathidioticz
1-Jul-12 1:33am
View
Deleted
After changing it to ["@UserId"] that error was solved! (:
However, another error appeared.
After I logged-in, and click the "UserProfile" hyperlink to direct me to UserProfile page, this error appeared:
Exception Details: System.InvalidCastException: Object must implement IConvertible.
This is the first 3 lines from stack trace:
[InvalidCastException: Object must implement IConvertible.]
System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) +9509637
System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType) +5089538
[InvalidCastException: Failed to convert parameter value from a Guid to a String.]
mathidioticz
1-Jul-12 1:30am
View
Deleted
After changing it to ["@UserId"] that error was solved! (:
However, another error appeared.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. (LINE 21)
Source Error:
Line 19: // Get a reference to the currently logged on user
Line 20: MembershipUser currentUser = Membership.GetUser();
Line 21: e.Command.Parameters["@UserId"].Value = currentUser.ProviderUserKey;
mathidioticz
1-Jul-12 1:19am
View
Hi, thanks for your reply.
I had adding your suggestions to my code, however for the "e.Command.Parameters("@UserId").Value = currentUser.ProviderUserKey;" lines, it occured an error.
- non-invocable member 'System.Data.Common.Dbcommand.Parameters' cannot be use like a method.
mathidioticz
27-Jun-12 5:16am
View
Hi, Previously there should be an URL in the email, right now the email body have the hyperlink look like this : [[VerifyUrl]]. Instead of coming out the website URL, it only appear the word "VerifyURL".
- is it because the e.message.body was empty?
mathidioticz
27-Jun-12 5:09am
View
Hi, I tried your method with the [[..]], and my code now become like this: < a href="[[VerifyUrl]]">[[VerifyUrl]]
Previously there should be an URL in the email, right now the email body have the hyperlink look like this :
[[VerifyUrl]]
. Instead of coming out the website URL, it only appear the word "VerifyURL"
mathidioticz
26-Jun-12 13:17pm
View
hi, what you mean by keep it like [[....]] ???
mathidioticz
26-Jun-12 13:14pm
View
what you mean?? sorry, i am new to c#
mathidioticz
26-Jun-12 12:44pm
View
All the words inside the html file appeared on the email. Except from the URL
mathidioticz
25-Jun-12 11:58am
View
The "Your login attempt was not successful. Please try again" was default. It came together along when I drag and drop into my website.
mathidioticz
25-Jun-12 11:20am
View
Login1 is asp.net drag and drop login control. Login1 is build inside LoginView.
The error code are inside the login.aspx.cs file
mathidioticz
22-Jun-12 3:51am
View
Deleted
I just change the web.config file and insert , but the password requirement remain unchanged.
<configuration>
<connectionstrings>
<add name="ASPNETDBConnectionString1">
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient"
/>
<system.web>
<authentication mode="Forms">
<membership>
<providers>
<add name="ASPNETDBConnectionString1">
type="System.Web.Security.SqlMembershipProvider"
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0"
/>
</providers>
<compilation debug="true" targetframework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">
mathidioticz
22-Jun-12 3:50am
View
Deleted
I just change the web.config file and insert <membership> , but the password requirement remain unchanged.
<configuration>
<connectionstrings>
<add name="ASPNETDBConnectionString1"
="" connectionstring="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providername="System.Data.SqlClient">
<system.web>
<authentication mode="Forms">
<membership>
<providers>
<add name="ASPNETDBConnectionString1"
="" type="System.Web.Security.SqlMembershipProvider" connectionstring="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" minrequiredpasswordlength="6" minrequirednonalphanumericcharacters="0">
</providers>
<compilation debug="true" targetframework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">
Show More