Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
I

Icarus123

@Icarus123
About
Posts
32
Topics
20
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • RIA Service not generating custom property
    I Icarus123

    Hi, I have the following demo code:

    [Serializable]
    [DataContract(Name = "A", Namespace = "")]
    [KnownType(typeof(B))]
    public class A
    {
    public A()
    {
    Id = 0;
    b = new B();
    }

       \[Key\]
       \[DataMember\]
       public int Id { get; set; }
    
       \[DataMember\]
       public B b { get; set; }
    

    }

    [Serializable]
    [DataContract(Name = "B", Namespace = "")]
    public partial class B : ComplexObject
    {
    public B()
    {
    Id = 0;
    Description = string.Empty;
    }

       \[Key\]
       \[DataMember\]
       public int Id { get; set; }
    
       \[DataMember\]
       public string Description { get; set; }
    

    }

    The problem that I am having is that the RIA service is only generating the following object:

    /// <summary>
    /// The 'A' entity class.
    /// </summary>
    [DataContract(Namespace="", Name="A")]
    public sealed partial class A : Entity
    {

       private int \_id;
    
       #region Extensibility Method Definition
    
       #endregion
    

    Can anyone please help me fix this problem, or explain why it does not generate the custom "B" Property? Thanks

    WPF help question

  • Google [modified]
    I Icarus123

    Thank you Abhishek for all the information. you have been most helpfull!

    ASP.NET csharp asp-net

  • Google [modified]
    I Icarus123

    Thanks you very much for the reply, it is what i wanted to know.. So as per building a site in a specific structure, makes no difference to the way it would appear in google?

    ASP.NET csharp asp-net

  • Google [modified]
    I Icarus123

    Why? Is it because you dont understand the question, or is it because there is no way to do this in asp.net?

    ASP.NET csharp asp-net

  • listview check box change event
    I Icarus123

    Why not use the following: foreach( ListViewItem lvi in lvEmployee.Items) { CheckBox chk = (CheckBox)lvi.FindControl("ICheck"); if (chk.Checked) { getchoice11 += lvi[1].ToString().Trim() + ","; } }

    ASP.NET help

  • listview check box change event
    I Icarus123

    what i would do is: add a button after the listview, and in the button_click event, go through the list view, row for row, and then use the : CheckBox box = (CheckBox)Row.FindControl(CheckBoxID) if (box.checked) { } else { }

    ASP.NET help

  • Google [modified]
    I Icarus123

    Hi there. Just want to know, what i have to do to my asp.net site, so that google will display my site and the main headings in my site in one section. Eg. if you search for Asus, you will find ASUS international, and the headings (Products, United kingdom,Autralia, Repairs... etc.) Thanks.

    modified on Friday, August 29, 2008 6:34 AM

    ASP.NET csharp asp-net

  • saving files from database
    I Icarus123

    thanks for the example. one last question, because the file has no path, only byte[], how would i populate the FileInfo, so that i can use that information in the headers and WriteFile?

    C# database help question

  • saving files from database
    I Icarus123

    it is a bit unclear, what header are you talking about? "you set the header to say you're downloading the file". could you give me an example of this? Sorry about the "Not being in an asp forum"..

    C# database help question

  • saving files from database
    I Icarus123

    no, but how would you integrate the fields with Response.WriteFile

    C# database help question

  • saving files from database
    I Icarus123

    Hi there. I have saved an MS word file to my database. I retrieve the following fields when accessing the DB: byte[], filename, extension I now want to, in code behind, open an "Download to" window, where i can save the file on my local machine. P.S i dont just save word files... i want to save any type of file. Can anyone help me with the problem?

    C# database help question

  • Image size checking
    I Icarus123

    Hi there. I am uploading images to my website and them writeing it into a DB. I want to do validation on the image that i upload. At the moment i am checking the size(bytes) of the image. what i also need to do, is check the Physical lenght of the image. Can anyone help me with this? Thanks

    ASP.NET database help question

  • Information
    I Icarus123

    Hi there. I have the following XML file: resource identifier="6B3B1BD6_FB84_4B23_8B50_29E6EAA07429" width="380" height="280" type="image/jpeg"> uri>img012.jpg"); } }

    C# xml learning

  • Specific values [modified]
    I Icarus123

    Hi there. I have this: img024.jpg <![CDATA[ Securing and Configuring Exchange Distributed Services Using IIS Lockdown ]]> I can get the value, but i cannot get the value. Can anyone help with this?? Thanks -- modified at 0:57 Saturday 16th June, 2007 </x-turndown>

    XML / XSL windows-admin help question

  • Image Types
    I Icarus123

    Hi there. Can anyone help me. I need to convert System.Drawing.Image to System.web.UI.Webcontrol.Image so that i can display an foto in a imagebox. Thanks

    ASP.NET graphics design help

  • Displaying a picture
    I Icarus123

    Thanks, it works. But do you how i can use that Image in an imagebox? i am getting a cannot implicitle convert type 'System.Drawing.Image' to 'System.web.UI.Webcontrol.Image'

    C# database help question

  • Displaying a picture
    I Icarus123

    Hi there. I have loaded a picture into a DB. Now when i take it out again, I save it as a Byte[] variable. What i want to do, is to use that Byte[] variable with the information and display it in an imageBox. Can anyone help me with this? Thanks

    C# database help question

  • Gridview
    I Icarus123

    Hi there. My gridview is populated by a Dataset, with things like name, surname... and Edit(link to another page). What i want to do, is populate a dropdown with the values of the column header of the gridview, as the "Text" of the dropdown, and the "Value" of the dropdown with the columns of the dataset. the problem is with the Edit, which i do not want to add. Can anybody help me with this problem? Thanks

    ASP.NET help question

  • Null value
    I Icarus123

    Hi there. I want to know, if i am using an Select statement in SQL, and it should return a value, but returns Null, how do i set the null value to a '0'? Thanks

    Database question database

  • Saving images to the server folder
    I Icarus123

    Hi there I want to save an image from the website into a folder on the website while in run time. Please can anyone help me with this code? Thanks

    ASP.NET sysadmin help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups