Click here to Skip to main content
16,007,858 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: deploying webform? Pin
kiran kumar[Intelligroup]17-Jan-07 2:21
kiran kumar[Intelligroup]17-Jan-07 2:21 
GeneralRe: deploying webform? Pin
nclauder17-Jan-07 19:21
nclauder17-Jan-07 19:21 
QuestionCropping images in asp.net Pin
yogita charhate16-Jan-07 19:41
yogita charhate16-Jan-07 19:41 
AnswerRe: Cropping images in asp.net Pin
Rahithi17-Jan-07 4:30
Rahithi17-Jan-07 4:30 
QuestionAudio Streaming Pin
M A A Mehedi Hasan16-Jan-07 19:17
M A A Mehedi Hasan16-Jan-07 19:17 
QuestionDataGrid Pin
Rahithi16-Jan-07 17:35
Rahithi16-Jan-07 17:35 
AnswerRe: DataGrid Pin
kiran kumar[Intelligroup]16-Jan-07 20:28
kiran kumar[Intelligroup]16-Jan-07 20:28 
QuestionCreate Profile. Going crazy ... Pin
shapper16-Jan-07 13:46
shapper16-Jan-07 13:46 
Hello,

I am creating a new profile to a user:

Dim profile As ProfileCommon = CType(ProfileCommon.Create(user.UserName, True), ProfileCommon)
With profile.Contact
.City = tbCity.Text
.District = CType(Int32.Parse(ddlDistrict.SelectedItem.Value), Enumeration.District)
End With
With profile.Options
.Newsletter = cbNewsletter.Checked
End With
profile.Save()

I get the error:
Type 'System.Web.Profile.ProfileBase' in Assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable.

Contact and Options are classes with properties and a few methods which are defined as:
<Serializable()> _
Public Class Options
...

And in my Web.Config, under profile, I have:
<properties>
<add allowAnonymous="false" name="Contact" type="Contact" serializeAs="Binary"/>
<add allowAnonymous="false" name="Options" type="Options" serializeAs="Binary"/>
</properties>

Any idea what might be going on?

Thanks,
Miguel

QuestionGridView RowDeleting event not firing Pin
alimohammed16-Jan-07 10:04
alimohammed16-Jan-07 10:04 
AnswerRe: GridView RowDeleting event not firing Pin
Venkatesh Mookkan16-Jan-07 17:28
Venkatesh Mookkan16-Jan-07 17:28 
QuestionBrowser back button Pin
javierarka16-Jan-07 9:12
javierarka16-Jan-07 9:12 
AnswerRe: Browser back button Pin
alimohammed16-Jan-07 10:52
alimohammed16-Jan-07 10:52 
AnswerRe: Browser back button Pin
MoustafaS16-Jan-07 13:12
MoustafaS16-Jan-07 13:12 
Questionbuttons and ajax (best practice) Pin
Leo Smith16-Jan-07 8:58
Leo Smith16-Jan-07 8:58 
AnswerRe: buttons and ajax (best practice) Pin
Christian Graus16-Jan-07 9:04
protectorChristian Graus16-Jan-07 9:04 
GeneralRe: buttons and ajax (best practice) Pin
Leo Smith16-Jan-07 9:30
Leo Smith16-Jan-07 9:30 
GeneralRe: buttons and ajax (best practice) Pin
Christian Graus16-Jan-07 13:14
protectorChristian Graus16-Jan-07 13:14 
GeneralRe: buttons and ajax (best practice) Pin
Leo Smith16-Jan-07 14:31
Leo Smith16-Jan-07 14:31 
GeneralRe: buttons and ajax (best practice) Pin
Leo Smith17-Jan-07 2:15
Leo Smith17-Jan-07 2:15 
AnswerRe: buttons and ajax (best practice) Pin
Bassam Saoud16-Jan-07 9:22
Bassam Saoud16-Jan-07 9:22 
GeneralRe: buttons and ajax (best practice) Pin
Leo Smith16-Jan-07 14:36
Leo Smith16-Jan-07 14:36 
QuestionRe: buttons and ajax (best practice) Pin
Venkatesh Mookkan16-Jan-07 17:23
Venkatesh Mookkan16-Jan-07 17:23 
AnswerRe: buttons and ajax (best practice) Pin
Leo Smith17-Jan-07 0:26
Leo Smith17-Jan-07 0:26 
QuestionSpecial Character Replacement Pin
Marc Paliotti16-Jan-07 8:58
Marc Paliotti16-Jan-07 8:58 
AnswerRe: Special Character Replacement Pin
Guffa16-Jan-07 12:15
Guffa16-Jan-07 12:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.