User Profile

Collapse

Profile Sidebar

Collapse
edurazee
edurazee
Last Activity: Nov 6 '18, 08:40 PM
Joined: Dec 14 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How can I convert a 1D byte array of a Bitmap into a 2D byte array?

    I have written a test program and loaded a PNG image into it,

    https://dotnetfiddle.ne t/XHwp7o

    Pixel format = 32 bit color
    Resolution of the Bitmap,
    Width = 512 pixels
    Height = 512 pixels
    Stride of the Bitmap = 2048 pixels
    Offset or Padding = (Stride - Width) = (2048 - 512) = 1336 pixels.
    Size of the 1D byte array = 1048576 bytes

    What would be the dimensions if...
    See more | Go to post

  • NHibernate unidirectional one-to-one mapping problem.

    I am trying to create a Unidirectional one-to-one relationship using NHibernate.

    Example: An Order is given by a Customer.

    Code:
    Customer{ID, Name, Address}
    OrderN{ID, Customer, OrderDate}
    Here, OrderN.Customer-field is intended to store Customer.ID as an FK. And this field doesn't have any unique constraint.

    (The OrderN-table is given such a name to avoid SQL keyword conflict.)
    ...
    See more | Go to post

  • In the connection string write
    Code:
    Data Source=|DataDirectory|/mohan.mdb
    See more | Go to post

    Leave a comment:


  • edurazee
    started a topic GridView dynamic footer row creation problem.

    GridView dynamic footer row creation problem.

    I am able to create BoundFields and Footer-rows dynamically like this in my GridView:

    Code:
        protected void Page_Load(object sender, EventArgs e)
                {
                    CreateGridView();
                }
        
                private void CreateGridView()
                {
                    GridView1.Columns.Clear();
        
                    DataTable dataTable = Book.GetBooksDataSet().Tables[0];
    ...
    See more | Go to post

  • You didn't get me.

    I was talking about BusinessObjects and O/R-Mapping along with ASP.NET.

    Suppose I have a BusinessObject named 'Product' and it is O/R Mapped. Then, when I call Product.Get(), what should it return? Obviously IEnumerable<Pro duct>.

    And if I want to use this BusinessObject named 'Product' in my asp.net code-behind, do I need SqlDataSource?

    Now, answer my previous question...
    See more | Go to post

    Leave a comment:


  • edurazee
    replied to how to upload my database on web server
    It depends on whether your domain provides the facility of hosting web applications.

    If it does, then there must be a control panel for that hosting service and also there must be a control panel for managing databases and tables.

    These control panels can be on the same UI or different.

    Contact your web administrator to inquire for these things.
    See more | Go to post

    Leave a comment:


  • Do we really need ASP.NET's xyzDataSource controls?

    I am from C# Winforms background and recently switched to ASP.NET in c#.

    After working with Winforms applications along with BusinessObjects , O/R Mapping frameworks, and logical layering techniques for months, I am just wondering, should we actually use ASP.NET ubiquitous xyzDataSource controls?

    We have our specific class-structures like:

    Code:
    class MyClass : IMyClass, IPersistant
    {
    public int
    ...
    See more | Go to post

  • edurazee
    started a topic c# composite data type persistance

    c# composite data type persistance

    Can anyone show me an example of persisting Composite Data in c#?

    Suppose I have a hierarchy of Areas.

    How to achieve CRUD with Area?

    Should I use a Proxy class and how?
    See more | Go to post

  • edurazee
    replied to MdiChildren
    Although not 100%, this code may help you.

    Code:
    public partial class MDIForm : Form
        {
            public string Message
            {
                get { return this.textBox1.Text; }
                set { this.textBox1.Text = value; }
            }
    
            public MDIForm()
            {
                InitializeComponent();
            }
    
            int cout = 0;
            private
    ...
    See more | Go to post

    Leave a comment:


  • I have graduated 2 years back. So I am not a student in any college/school anymore.

    I have just faced this problem while developing a code-generator this morning.

    So a terrible guess by you.
    See more | Go to post

    Leave a comment:


  • edurazee
    started a topic How to achieve unmodifiable object reference?

    How to achieve unmodifiable object reference?

    Please consider the following problem.

    Code:
        public class Server
        {
            private string _serverName;
            public string ServerName
            {
                get { return _serverName; }
                //set { _serverName = value; }
            }
    
            private static Server myVar;
            public static Server CurrentServer
            {
                get { return myVar;
    ...
    See more | Go to post

  • How to list enumerate MySQL running instances in c#?

    Suppose I am in a network.

    One or more MySQL services are running on a machine/several machines in the network including the localhost.

    How to write a C# code to list/enumerate the names of all the running instances of MySQL?
    See more | Go to post
No activity results to display
Show More
Working...