<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>.NET General Forum RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from the '.NET General' forum at Programmer's Heaven, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Thu, 09 Feb 2012 03:56:08 -0800</pubDate>
    <lastBuildDate>Thu, 09 Feb 2012 03:56:08 -0800</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Cannot open Excel File from VB2005</title>
      <link>http://www.programmersheaven.com/mb/dotnet/427283/427283/cannot-open-excel-file-from-vb2005/</link>
      <description>Hi, I need help!!!&lt;br /&gt;
 &lt;br /&gt;
I developed a program in VB 2005 which opens an Excel file using Interop, and I call it from an SQL Stored Procedure using xp_cmdshell. Everything works fine when I am working under Windows 2003 Server. The problem is when I try to call my program the same way, but under Windows 2008 Server. It throws an exception at the moment my programs tries to open the Excel file. I assumed it was an authentication issue, so I changed the login for the SQL Server Service to an administrator account, and I granted Full Control to Everybody over the folder where the Excel file resides, but the problem persists.&lt;br /&gt;
 &lt;br /&gt;
The error message says that the Excel file cannot be accessed because either the file is in use by another program (which it isn't) or the user doesn't have enough privileges.&lt;br /&gt;
 &lt;br /&gt;
Same problem happens under Windows 7.&lt;br /&gt;
&lt;br /&gt;
I am using "Microsoft Excel 12.0 Object Library" in my Project.&lt;br /&gt;
&lt;br /&gt;
By the way, I tried to run my program with a double click in windows explorer and it opened the Excel file with no problem.  The problem is when I call my program from an SQL Server Stored Procedure using xp_cmdshell.&lt;br /&gt;
 &lt;br /&gt;
Any ideas?&lt;br /&gt;
 &lt;br /&gt;
Thanks in any advance for your help.&lt;br /&gt;
 &lt;br /&gt;
Giovanni @ Guatemala.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/427283/427283/cannot-open-excel-file-from-vb2005/</guid>
      <pubDate>Tue, 07 Feb 2012 17:12:23 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>Issue with ASP.net when moving web server</title>
      <link>http://www.programmersheaven.com/mb/dotnet/427272/427272/issue-with-aspnet-when-moving-web-server/</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I have just had to move our website to a new host and the ASP.net part of the web site now fails with the following error - HTTP Error 404.17 - Not Found&lt;br /&gt;
The requested content appears to be script and will not be served by the static file handler.&lt;br /&gt;
&lt;br /&gt;
The original host was ASP.net 2, II6 and classic mode the new one is ASP.net 2, II7 and classic mode. &lt;br /&gt;
&lt;br /&gt;
The new hosting company said that it is to do with web.config and I have attached a screen shot they sent me of the handlers. &lt;br /&gt;
&lt;br /&gt;
I program in PHP and I don't have any experience in ASP.net but I am desperate the sort this issue out.&lt;br /&gt;
&lt;br /&gt;
Is there anyone who could possibly tell me what I would need to change in my web.config based on the attachment.&lt;br /&gt;
&lt;br /&gt;
If you require any further information like the web.config file please ask.&lt;br /&gt;
&lt;br /&gt;
I would really appreciate any help here.&lt;br /&gt;
&lt;br /&gt;
Kind Regards&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/427272/427272/issue-with-aspnet-when-moving-web-server/</guid>
      <pubDate>Tue, 07 Feb 2012 02:10:08 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>Issue with ASP.net when moving web server</title>
      <link>http://www.programmersheaven.com/mb/dotnet/427271/427271/issue-with-aspnet-when-moving-web-server/</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I have just had to move our website to a new host and the ASP.net part of the web site now fails with the following error - HTTP Error 404.17 - Not Found&lt;br /&gt;
The requested content appears to be script and will not be served by the static file handler.&lt;br /&gt;
&lt;br /&gt;
The original host was ASP.net 2, II6 and classic mode the new one is ASP.net 2, II7 and classic mode. &lt;br /&gt;
&lt;br /&gt;
The new hosting company said that it is to do with web.config and I have attached a screen shot they sent me of the handlers. &lt;br /&gt;
&lt;br /&gt;
I program in PHP and I don't have any experience in ASP.net but I am desperate the sort this issue out.&lt;br /&gt;
&lt;br /&gt;
Is there anyone who could possibly tell me what I would need to change in my web.config based on the attachment.&lt;br /&gt;
&lt;br /&gt;
If you require any further information like the web.config file please ask.&lt;br /&gt;
&lt;br /&gt;
I would really appreciate any help here.&lt;br /&gt;
&lt;br /&gt;
Kind Regards&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/427271/427271/issue-with-aspnet-when-moving-web-server/</guid>
      <pubDate>Tue, 07 Feb 2012 02:08:17 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>WCF Data Contract</title>
      <link>http://www.programmersheaven.com/mb/dotnet/427231/427231/wcf-data-contract/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I want to send some complex types in WCF response message.&lt;br /&gt;
Can any one please help me in finding out a solution for this.&lt;br /&gt;
&lt;br /&gt;
Thanks &amp;amp; regards,&lt;br /&gt;
&lt;br /&gt;
Afreen&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/427231/427231/wcf-data-contract/</guid>
      <pubDate>Sun, 05 Feb 2012 00:06:49 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>WCF Data Contract</title>
      <link>http://www.programmersheaven.com/mb/dotnet/427230/427230/wcf-data-contract/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I want to send some complex types in WCF response message.&lt;br /&gt;
Can any one please help me in finding out a solution for this.&lt;br /&gt;
&lt;br /&gt;
Thanks &amp;amp; regards,&lt;br /&gt;
&lt;br /&gt;
Afreen&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/427230/427230/wcf-data-contract/</guid>
      <pubDate>Sat, 04 Feb 2012 23:51:51 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>Digital Image Processing vb.net</title>
      <link>http://www.programmersheaven.com/mb/dotnet/426816/426816/digital-image-processing-vbnet/</link>
      <description>I am trying to develop a image processsing application that will analyse some grayscale images, the images in question are basically biological photographs(PCR GEL Photographs) that have some bands which are lighter in shades, and these bands are arranged in some pattern( Mostly linear), Till now, i had suceeded to programatically identify those bands which are distinct and clearly seperated from other band, but the band, which are close, could not be identified as seperate band.&lt;br /&gt;
more over my algorithms fails miserably in case case of color photographs,and i am clueless for a better approach.&lt;br /&gt;
 &lt;br /&gt;
i will be grateful if somebody out there had any previous experience,to help me out&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/426816/426816/digital-image-processing-vbnet/</guid>
      <pubDate>Sat, 14 Jan 2012 09:03:09 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>Digital Image Processing</title>
      <link>http://www.programmersheaven.com/mb/dotnet/426814/426814/digital-image-processing/</link>
      <description>I am trying to develop a image processsing application that will analyse some grayscale images, the images in question are basically biological photographs(PCR GEL Photographs) that have some bands which are lighter in shades, and these bands are arranged in some pattern( Mostly linear), Till now, i had suceeded to programatically identify those bands which are distinct and clearly seperated from other band, but the band, which are close, could not be identified as seperate band.&lt;br /&gt;
more over my algorithms fails miserably in case case of color photographs,and i am clueless for a better approach.&lt;br /&gt;
 &lt;br /&gt;
i will be grateful if somebody out there had any previous experience,to help me out&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/426814/426814/digital-image-processing/</guid>
      <pubDate>Sat, 14 Jan 2012 08:58:23 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>Wrap text in a column while printing</title>
      <link>http://www.programmersheaven.com/mb/dotnet/426752/426752/wrap-text-in-a-column-while-printing/</link>
      <description>Hi,&lt;br /&gt;
 &lt;br /&gt;
I found a very good piece of code for printing the data gridview. But i am unable to wrap the data in a column if it is too long. Can any one please help me in letting me know what I am missing or how to wrap the data in a column or hide a column&lt;br /&gt;
 &lt;br /&gt;
            Font fnt = dataGridView.Font;&lt;br /&gt;
             Pen pen = new Pen(Color.FromArgb(0, 0, 0));&lt;br /&gt;
             Graphics gfx = e.Graphics;&lt;br /&gt;
             gfx.PageUnit = System.Drawing.GraphicsUnit.Display;&lt;br /&gt;
 &lt;br /&gt;
            SolidBrush foreBrush = new SolidBrush(this.dataGridView.DefaultCellStyle.Fore
Color);&lt;br /&gt;
             SolidBrush selectedRowBrush = new SolidBrush(Color.White);&lt;br /&gt;
 &lt;br /&gt;
            int yMargin = 0;&lt;br /&gt;
             int xMargin = 0;&lt;br /&gt;
             int intRowHeight = this.dataGridView.Columns[0].HeaderCell.Size.Heigh
t;&lt;br /&gt;
             int xPoint = xMargin;&lt;br /&gt;
             int yPoint = yMargin;&lt;br /&gt;
 &lt;br /&gt;
            int[] colPositions = new int[dataGridView.Columns.Count + 1];&lt;br /&gt;
             int intCount = 0;&lt;br /&gt;
             SizeF CaptionSize = gfx.MeasureString(dataGridView.Columns[0].HeaderTe
xt, fnt);&lt;br /&gt;
             Size s = new Size((Convert.ToInt32(CaptionSize.Width) + 1), Convert.ToInt32(CaptionSize.Height));&lt;br /&gt;
             Rectangle rect = new Rectangle(new Point(xMargin, yMargin), s);&lt;br /&gt;
             yPoint += s.Height;&lt;br /&gt;
             yMargin += s.Height;&lt;br /&gt;
 &lt;br /&gt;
            Font headerFont = new Font(fnt, FontStyle.Bold);&lt;br /&gt;
             SolidBrush selectedHeaderBrush = new SolidBrush(Color.LightGray);&lt;br /&gt;
 &lt;br /&gt;
            //Header loop&lt;br /&gt;
             foreach (DataGridViewColumn dgvc in dataGridView.Columns)&lt;br /&gt;
             {&lt;br /&gt;
                 if (xPoint &amp;lt; dataGridView.Bounds.Width &amp;amp;&amp;amp; xPoint &amp;lt; e.MarginBounds.Right - 100)&lt;br /&gt;
                 {&lt;br /&gt;
                     colPositions[intCount] = xPoint;&lt;br /&gt;
                     Rectangle rectColumn = new Rectangle(xPoint, yMargin, dgvc.Width, fnt.Height);&lt;br /&gt;
                     if (dgvc.Width &amp;gt; 0 &amp;amp;&amp;amp; dgvc.HeaderText != string.Empty)&lt;br /&gt;
                     {&lt;br /&gt;
                         gfx.FillRectangle(selectedHeaderBrush, new Rectangle(xPoint, yMargin, dgvc.Width, dgvc.HeaderCell.Size.Height));   &lt;br /&gt;
                         xPoint += dgvc.Width;&lt;br /&gt;
                         //Draw Vertical Line of column&lt;br /&gt;
                         gfx.DrawLine(pen, colPositions[intCount], yPoint, colPositions[intCount], yPoint + intRowHeight);&lt;br /&gt;
                         rectColumn = new Rectangle(colPositions[intCount], yPoint + 2, dgvc.Width + 2, fnt.Height + 1);&lt;br /&gt;
 &lt;br /&gt;
                    }&lt;br /&gt;
 &lt;br /&gt;
                    //Prints the column header text.&lt;br /&gt;
                     gfx.DrawString(dgvc.HeaderText, headerFont, Brushes.Black, rectColumn, StringFormat.GenericDefault);&lt;br /&gt;
                     intCount++;&lt;br /&gt;
                 }&lt;br /&gt;
                 else&lt;br /&gt;
                     break;&lt;br /&gt;
             }&lt;br /&gt;
             colPositions[intCount] = xPoint;&lt;br /&gt;
 &lt;br /&gt;
            //end vertical line&lt;br /&gt;
             gfx.DrawLine(pen, colPositions[intCount], yPoint, colPositions[intCount], yPoint + intRowHeight);&lt;br /&gt;
 &lt;br /&gt;
            //Draw the first horizontal line.&lt;br /&gt;
             gfx.DrawLine(pen, xMargin, yPoint, xPoint, yPoint);&lt;br /&gt;
             yPoint += this.dataGridView.Columns[0].HeaderCell.Size.Heigh
t; &lt;br /&gt;
&lt;br /&gt;
            //Draw the second horizontal line. After this line data gets printed&lt;br /&gt;
             gfx.DrawLine(pen, xMargin, yPoint - 1, xPoint, yPoint - 1);&lt;br /&gt;
             intRowHeight = this.dataGridView.Rows[0].Height;&lt;br /&gt;
 &lt;br /&gt;
            //Data loop&lt;br /&gt;
             for (int row = 0; m_gridRowsCount &amp;lt; dataGridView.Rows.Count; row++, m_gridRowsCount++)&lt;br /&gt;
             {&lt;br /&gt;
                 if (row &amp;gt;= MAXROWSTOPRINT)&lt;br /&gt;
                 {&lt;br /&gt;
                     break;&lt;br /&gt;
                 }&lt;br /&gt;
                 intCount = 0;&lt;br /&gt;
                 foreach (DataGridViewCell dgvc in dataGridView.Rows[m_gridRowsCount].Cells)&lt;br /&gt;
                 {&lt;br /&gt;
                     if (colPositions[intCount] &amp;lt; dataGridView.Bounds.Width &amp;amp;&amp;amp; colPositions[intCount] &amp;lt; e.MarginBounds.Right - 100)&lt;br /&gt;
                     {&lt;br /&gt;
                         Rectangle rectColumn = new Rectangle(colPositions[intCount], yPoint, dgvc.Size.Width, fnt.Height);&lt;br /&gt;
                         if (dgvc.Size.Width &amp;gt; 0)&lt;br /&gt;
                         {&lt;br /&gt;
                             gfx.FillRectangle(selectedRowBrush, new Rectangle(colPositions[intCount], yPoint, dgvc.Size.Width, fnt.Height + 4));&lt;br /&gt;
 &lt;br /&gt;
                            //Draw Vertical Line of column&lt;br /&gt;
                             gfx.DrawLine(pen, colPositions[intCount], yPoint, colPositions[intCount], yPoint + intRowHeight);&lt;br /&gt;
                             rectColumn = new Rectangle(colPositions[intCount], yPoint + 2, dgvc.Size.Width + 2, fnt.Height + 1);&lt;br /&gt;
                         }&lt;br /&gt;
                         if (dgvc.ValueType.Equals(typeof(DateTime)) &amp;amp;&amp;amp; dgvc.Value != DBNull.Value)&lt;br /&gt;
                             gfx.DrawString(Convert.ToDateTime(dgvc.Value).ToSt
ring("dd/MM/yyyy"), fnt, Brushes.Black, rectColumn, StringFormat.GenericDefault);&lt;br /&gt;
                         else&lt;br /&gt;
                             //Prints the column header text.&lt;br /&gt;
                             gfx.DrawString(Convert.ToString(dgvc.Value), fnt, Brushes.Black, rectColumn, StringFormat.GenericDefault);&lt;br /&gt;
                         intCount++;&lt;br /&gt;
                     }&lt;br /&gt;
                     else&lt;br /&gt;
                         break;&lt;br /&gt;
                 }&lt;br /&gt;
                 //Draw the last vertical line.&lt;br /&gt;
                 gfx.DrawLine(pen, colPositions[intCount], yPoint, colPositions[intCount], yPoint + intRowHeight);&lt;br /&gt;
                 &lt;br /&gt;
                yPoint += dataGridView.Rows[m_gridRowsCount].Height;&lt;br /&gt;
 &lt;br /&gt;
                //if (intCount &amp;lt; colPositions.Length)&lt;br /&gt;
                 //Draw the first horizontal line.&lt;br /&gt;
                 gfx.DrawLine(pen, xMargin, yPoint - 1, colPositions[intCount], yPoint - 1);&lt;br /&gt;
             }&lt;br /&gt;
 &lt;br /&gt;
            gfx.Dispose();&lt;br /&gt;
             e.Graphics.Dispose();&lt;br /&gt;
             m_noOfPagesToPrint--;&lt;br /&gt;
             if (m_noOfPagesToPrint &amp;lt;= 0)&lt;br /&gt;
             {&lt;br /&gt;
                 m_gridRowsCount = m_noOfPagesToPrint = m_printedRows = 0; &lt;br /&gt;
                m_noOfPagesToPrint = dataGridView.Rows.Count / MAXROWSTOPRINT;&lt;br /&gt;
                 if (dataGridView.Rows.Count % MAXROWSTOPRINT &amp;gt; 0)&lt;br /&gt;
                     m_noOfPagesToPrint++;&lt;br /&gt;
 &lt;br /&gt;
                e.HasMorePages = false;&lt;br /&gt;
             }&lt;br /&gt;
             else&lt;br /&gt;
                 e.HasMorePages = true;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/426752/426752/wrap-text-in-a-column-while-printing/</guid>
      <pubDate>Sun, 08 Jan 2012 12:37:53 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>I really miss my mum right now :(:(?</title>
      <link>http://www.programmersheaven.com/mb/dotnet/426746/426746/i-really-miss-my-mum-right-now-/</link>
      <description>im 15 and i havent seen my mum in nearly 5 years and it feels like forever i cant stop crying. she just didnt come home one night and she didnt phone or try and speak to me or my brother, she was addicted to drugs, that says it all really but i really miss her sometimes (like now) but when anyone asks i say i dont care, i cant talk to anyone or say how im feeling i just want her to tell me shes safe but i dont know how i could find her and its really killing me having to keep this inside me and crying to myself thats why im writing this not that anybody cares i just wanted somewhere no one knows me to put how im feeling&lt;br /&gt;
&lt;br /&gt;
 &lt;a href="http://www.epayebay.com/canada-goose-mens-expedition-parka-c-233_237.html"&gt;Canada Goose 4565M&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://www.epayebay.com/bmz_cache/4/4678c928a353e22be407bd0614f998ef.image.84x120.jpg" /&gt; &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/426746/426746/i-really-miss-my-mum-right-now-/</guid>
      <pubDate>Sat, 07 Jan 2012 22:19:34 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>Interesting article on Access Control in Multitenant-Applications</title>
      <link>http://www.programmersheaven.com/mb/dotnet/426691/426691/interesting-article-on-access-control-in-multitenant-applications/</link>
      <description>Defining "Who sees what" and "who does what" are the two important aspects of access control in any software application.&lt;br /&gt;
"Security" is a much larger subject, but this article focuses on just the access control aspects of Security in a software application.&lt;br /&gt;
&lt;br /&gt;
The Older Paradigm - Roles and Page level access controls&lt;br /&gt;
&lt;br /&gt;
When you build a custom application for a specific customer, the access control policies of the organization are often defined upfront as part of the requirements phase. Depending on the vertical, domain and the specific organizational structure of the business, first the roles are defined. And then each role is given access to a set of screens, forms, pages and reports. What role A sees might be different from what role B sees. What role A can do could be different from what role B is allowed to do. Of course, certain areas in the application can be accessed by multiple roles. While building software products (used by several customers), the roles are often generalized and predefined. The various access control policies of the product are often hard coded in to the roles. The customer will be able to assign one or more roles to their users.&lt;br /&gt;
&lt;br /&gt;
The new paradigm - Privilege based Access Controls&lt;br /&gt;
&lt;br /&gt;
In the new paradigm, before doing any action (including showing something on the screen - which is the View action), you check / demand for the privilege to view that information or do a certain action. It could be standard actions such as view, edit and delete or special privileges such as "Access to History Data" or "Access to information or content created by people other than myself. In the new paradigm, a user / roles privileges are resolved during run time - not hard coded at design time. This allows the product developer to complete the development just by demanding the necessary privileges at each step, without having to worry about the users and roles in the system.&lt;br /&gt;
&lt;br /&gt;
Mapping Privileges to Roles&lt;br /&gt;
&lt;br /&gt;
By enumerating the various privileges (entity wise or form wise standard privileges as well as special privileges) in an administration screen, we can allow the end customer to map the privileges to any specific role, during run time. This takes care of dynamic changes in organizational policy. This also allows the end customer to create completely new roles (not originally envisaged by the product designer) dynamically during actual usage and map a set of privileges to these new roles using an admin screen.&lt;br /&gt;
For example in a HR product, the product might have default roles such as "Employee" and "Manager" whereas a customer may create a new role called "Team Leader" or "Mentor".&lt;br /&gt;
&lt;br /&gt;
Subsequently, users can be assigned with one or more roles (including new custom roles). So when a user is using the system, the application can resolve who the user is, what his or her role is, what the privileges of the role are - all during run time. So before a particular action, the application can simply check whether the required privilege is available for the user and proceed. While this may seem little challenging from the software design/development front, it will bring in lot of flexibility for the customers.&lt;br /&gt;
&lt;br /&gt;
Relationship based Privileges&lt;br /&gt;
&lt;br /&gt;
Many a time, mapping privileges to roles and assigning roles to users is also not adequate. Let us illustrate this with an example:&lt;br /&gt;
userx@abc.com has logged in to a performance management product. She has been assigned the role of a "Manager" and a set of Privileges have been assigned to this role. For example she can add certain new skills in the skills master, which another user with an "Employee" role cannot do.&lt;br /&gt;
&lt;br /&gt;
But the real challenge however is in defining what she can and cannot see and what she can and cannot do with respect to the performance appraisal ratings of various employees.&lt;br /&gt;
&lt;br /&gt;
Out of the 300 people in the organization, userX, is a "Primary Manager" for 4 employees, "Co-Manager for 5 employees", "Mentor" for 5 employees, "Department Head for 40 employees", and "Peer" for 15 employees. She is not related to the rest of the employees in the organization (in the context of performance management)&lt;br /&gt;
&lt;br /&gt;
The privileges of what each of these "Relationships" can and cannot do is different. For example, a Mentor can view performance ratings but cannot edit them. A Primary Manager can edit ratings, but cannot approve them. And a Department head can approve/disapprove ratings, but cannot edit them.&lt;br /&gt;
How can we allow userX to login in once, view all the employees related to her in a single grid, but restrict her access depending on the relationship between her and the employee on whom she is performing the action?&lt;br /&gt;
&lt;br /&gt;
Step 1: Define relationships in a master: This could be added / edited by the end customer.&lt;br /&gt;
Step 2: Map each privilege to a set of relationships who are to be given this privilege.&lt;br /&gt;
Step 3: Resolve the relationship between the user and the employee during run time and accordingly deduce whether the user has or does not have the privilege to do an action.&lt;br /&gt;
&lt;br /&gt;
Static Data Scope&lt;br /&gt;
&lt;br /&gt;
Apart from defining what a role can or cannot do / see, we often also want to restrict the boundaries of the data that the user has access to. For example, "Can edit employee profile information - but - only for people in his division / department", "Can see salary details - but only for employees reporting to her or to her down the line reports". Another example is to say that the Sales manager can access leads / customers only from his territory.&lt;br /&gt;
These datascopes should not be hard coded in the product, but should be configurable by an end customer. For each role and privilege mapping, the data scope can also be mapped.&lt;br /&gt;
&lt;br /&gt;
The meanings of these datascopes are defined as "Meta data" which are nothing but Filter conditions. These filter conditions should be dynamically applied on the data set being accessed during run time, depending on the role-privilege-data scope resolved for the user context.&lt;br /&gt;
&lt;br /&gt;
Dynamic Data Scope&lt;br /&gt;
&lt;br /&gt;
This is an extended form of Data scope, where the variable being defined for the data scope is itself defined dynamically.&lt;br /&gt;
For example : "HR Administrator" role assigned to "User A" should administer for employees in "Location, P, Q and R" and "HR Administrator" role assigned to "User B" should administer for employees in "Location S, T and V" - where the location itself is user defined by the end customer in a Location Master.&lt;br /&gt;
&lt;br /&gt;
Or , Finance Manager should be able see the books of Divisions "A, B, C and D" where the Divisions itself is user defined by the end customer in a Division master.&lt;br /&gt;
&lt;br /&gt;
Multi-tenant Access Control&lt;br /&gt;
&lt;br /&gt;
When the roles, relationships, privileges, static and dynamic data scopes are user definable by the end customer, and when the sample application serves multiple customers / tenants (from a single instance of the application), then we need to store all these access control configurations - tenant wise. So during run time, we should not only resolve the data scopes-privileges-roles-users, but also apply the tenant context and look up the appropriate tenant specific access control settings, before deciding to allow or disallow a particular action in the application.&lt;br /&gt;
&lt;br /&gt;
Privilege mapping should be possible at the field Level, entity Level, form Level and page Level, so that the end customer / tenant has absolute control and flexibility in defining and modifying "Who sees what" and "Who can do what" in the system.&lt;br /&gt;
&lt;br /&gt;
Tying in Subscription/ License Control with Access Control&lt;br /&gt;
&lt;br /&gt;
Different tenants/ customers/ user groups should be given access or denied access to different modules and features in the product. This depends on the package that they have bought (in a SaaS product) or based on the Organizational Policy (in a Private/ Internal SaaS product).&lt;br /&gt;
&lt;br /&gt;
These modules and features have to be first defined as Meta data and the corresponding page level access controls have to be mapped to them. This will allow the product to hide or show certain menu items and links to users depending on the tenant context and the packages enabled for that tenant/ user group.&lt;br /&gt;
&lt;br /&gt;
Usage Based Quota and Access Control&lt;br /&gt;
&lt;br /&gt;
Many a times tenants are allowed to use the product for a specific no. of users or for a specified quota of usage (For example can do XXX no. of market surveys). These transactions and events have to be metered in the product, and once the defined quota is exceeded, the access control system should deny access to any user belonging to that tenant / user group.&lt;br /&gt;
&lt;br /&gt;
Summary&lt;br /&gt;
&lt;br /&gt;
The Access Control Paradigm of a Multi - tenant Application/ SaaS Product, should enlarge its frame of reference to include extensive customizability and configurability to suit different customers and organizations while still maintaining a single instance and code base.&lt;br /&gt;
The engineering stack of a Multi - tenant SaaS product, should have a robust and flexible Access Control layer, so that all the dynamic and run time capabilities are handled at the framework level. The developer then can focus on building the business functions, follow the guidelines provided by the underlying framework and demand a privilege before doing any significant action.&lt;br /&gt;
&lt;br /&gt;
Ramkumar R S&lt;br /&gt;
Director – Product Management&lt;br /&gt;
About author&lt;br /&gt;
Ramkumar is the Founder and Director of Mango DVM, a venture capital funded company in the digital music space, currently going through a third round of funding. He is also the Director of Product Management at Asteor Software Inc, where he was instrumental in incubating and bringing to market two new software products (Techcello &amp;amp; Synergita). He is also the Director of RSR Innovations, a consultancy firm specializing on Strategic Marketing, Innovation and Leadership Development. Before becoming an entrepreneur, Ramkumar had spent over two decades in various corporates; in functions such as Automation Engineering, Project management, Product management, Marketing and General management.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/426691/426691/interesting-article-on-access-control-in-multitenant-applications/</guid>
      <pubDate>Wed, 04 Jan 2012 04:03:39 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>Transperancy key not working properly</title>
      <link>http://www.programmersheaven.com/mb/dotnet/426509/426509/transperancy-key-not-working-properly/</link>
      <description>Hi All,&lt;br /&gt;
&lt;br /&gt;
I am having a problem with creating a tranperent background color for my form. &lt;br /&gt;
I used the transperency key with the same color as the background color of my form, but there is a known microsoft bug on this issue.&lt;br /&gt;
When working with color depth greater the 24bit -&amp;gt; it won't work all the time.&lt;br /&gt;
I have a windows XP with 32bit that does not support the transperancy. When changing it to 16bit - works. On another XP, it works fine with 32bit.&lt;br /&gt;
Microsoft published a known bug and workaround that does not seem to work for me:&lt;br /&gt;
&lt;a href="http://support.microsoft.com/kb/822495"&gt;http://support.microsoft.com/kb/822495&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Found another post that I found, which says that he found a solution, missing some explanation:&lt;br /&gt;
&lt;a href="http://www.megasolutions.net/cSharp/Windows-forms-with-Transparent-Backgrounds-53797.aspx"&gt;http://www.megasolutions.net/cSharp/Windows-forms-with-Transparent-Backgrounds-53797.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Did someone experienced this issue as well or can make out the solution from the second post ?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance&lt;br /&gt;
Calanit&lt;br /&gt;
 &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/426509/426509/transperancy-key-not-working-properly/</guid>
      <pubDate>Tue, 20 Dec 2011 16:51:44 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>This post has been deleted.</title>
      <link>http://www.programmersheaven.com/mb/dotnet/426508/426508/this-post-has-been-deleted/</link>
      <description>This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/426508/426508/this-post-has-been-deleted/</guid>
      <pubDate>Tue, 20 Dec 2011 16:49:50 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>Please Help - Convert This Excel Code To VB.NET</title>
      <link>http://www.programmersheaven.com/mb/dotnet/426399/426399/please-help---convert-this-excel-code-to-vbnet/</link>
      <description>Hello All,&lt;br /&gt;
&lt;br /&gt;
I have an application I am writing.  I have been searching for a solution to what I am doing.  I ran across this code for Excel.  It does on a Cell, what I need on a string.  Can anyone show how this code would look for VB.NET 2010 and for a sting, not a cell.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;Function ExtractNumber(rCell As Range, _
     Optional Take_decimal As Boolean, Optional Take_negative As Boolean) As Double

    

Dim iCount As Integer, i As Integer, iLoop As Integer

    Dim sText As String, strNeg As String, strDec As String

    Dim lNum As String

    Dim vVal, vVal2

     

     ''''''''''''''''''''''''''''''''''''''''''

     'Written by OzGrid Business Applications

     'www.ozgrid.com

     

     'Extracts a number from a cell containing text and numbers.

     ''''''''''''''''''''''''''''''''''''''''''

    sText = rCell

    If Take_decimal = True And Take_negative = True Then

        strNeg = "-" 'Negative Sign MUST be before 1st number.

        strDec = "."

    ElseIf Take_decimal = True And Take_negative = False Then

        strNeg = vbNullString

        strDec = "."

    ElseIf Take_decimal = False And Take_negative = True Then

        strNeg = "-"

        strDec = vbNullString

    End If

    iLoop = Len(sText)

        

            For iCount = iLoop To 1 Step -1

            vVal = Mid(sText, iCount, 1)

            

    

                If IsNumeric(vVal) Or vVal = strNeg Or vVal = strDec Then

                    i = i + 1

                    lNum = Mid(sText, iCount, 1) &amp;amp; lNum

                        If IsNumeric(lNum) Then

                            If CDbl(lNum) &amp;lt; 0 Then Exit For

                        Else

                          lNum = Replace(lNum, Left(lNum, 1), "", , 1)

                        End If

                End If

                 

                If i = 1 And lNum &amp;lt;&amp;gt; vbNullString Then lNum = CDbl(Mid(lNum, 1, 1))

            Next iCount

        

     

    ExtractNumber = CDbl(lNum)

     

End Function&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thank You All In Advance&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/426399/426399/please-help---convert-this-excel-code-to-vbnet/</guid>
      <pubDate>Thu, 15 Dec 2011 18:05:27 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>This post has been deleted.</title>
      <link>http://www.programmersheaven.com/mb/dotnet/426398/426398/this-post-has-been-deleted/</link>
      <description>This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/426398/426398/this-post-has-been-deleted/</guid>
      <pubDate>Thu, 15 Dec 2011 18:03:36 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>"Version 2.0 is not a compatible version" from VB host</title>
      <link>http://www.programmersheaven.com/mb/dotnet/425997/425997/version-20-is-not-a-compatible-version-from-vb-host/</link>
      <description>We are taking steps to upgarde our very large project to from VC++ 6.0 and VB 6.0 to .Net.  One of the first steps was to replace a COM module with .Net assembly.  To avoid having to rewrite the many calling programs, the COM module was also rewritten as a thin wrapper around the .Net libary.&lt;br /&gt;
&lt;br /&gt;
The COM object (written with VC++ 2008), which is a thin wrapper around a .Net assembly (C# 2008, .Net 3.5) runs correctly from a C++ 6.0 host program but will not load from a VB 6.0 host program, immediately producing a "Version 2.0 is not a compatible version" error instead.&lt;br /&gt;
&lt;br /&gt;
Any ideas why the language of the host program matters and what causes a "Version 2.0 is not a compatible version" error?&lt;br /&gt;
&lt;br /&gt;
Even a better description of a "Version 2.0 is not a compatible version" error could be helpful.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/425997/425997/version-20-is-not-a-compatible-version-from-vb-host/</guid>
      <pubDate>Tue, 29 Nov 2011 12:34:15 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>"Version 2.0 is not a compatible version" from VB</title>
      <link>http://www.programmersheaven.com/mb/dotnet/425996/425996/version-20-is-not-a-compatible-version-from-vb/</link>
      <description>We are taking steps to upgarde our very large project to from VC++ 6.0 and VB 6.0 to .Net.  One of the first steps was to replace a COM module with .Net assembly.  To avoid having to rewrite the many calling programs, the COM module was also rewritten as a thin wrapper around the .Net libary.&lt;br /&gt;
&lt;br /&gt;
The COM object (written with VC++ 2008), which is a thin wrapper around a .Net assembly (C# 2008, .Net 3.5) runs correctly from a C++ 6.0 host program but will not load from a VB 6.0 host program, immediately producing a "Version 2.0 is not a compatible version" error instead.&lt;br /&gt;
&lt;br /&gt;
Any ideas why the language of the host program matters and what causes a "Version 2.0 is not a compatible version" error?&lt;br /&gt;
&lt;br /&gt;
Even a better description of a "Version 2.0 is not a compatible version" error could be helpful.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/425996/425996/version-20-is-not-a-compatible-version-from-vb/</guid>
      <pubDate>Tue, 29 Nov 2011 12:30:44 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>Webinar : Building Multi-tenant SaaS Applications</title>
      <link>http://www.programmersheaven.com/mb/dotnet/425669/425669/webinar--building-multi-tenant-saas-applications/</link>
      <description>Webinar : Building Multi-tenant SaaS Applications &lt;br /&gt;
Brought to you by Symphony Services and Techcello&lt;br /&gt;
&lt;br /&gt;
November 16, 2011 at 10:00 AM PST &lt;br /&gt;
&lt;br /&gt;
Registration : &lt;a href="https://www1.gotomeeting.com/register/419842065"&gt;https://www1.gotomeeting.com/register/419842065&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
A multi-tenant architecture is the core of a SaaS (Software-as-a-service) application. However the success of a SaaS application relies on the way it is engineered, deployed and managed.&lt;br /&gt;
&lt;br /&gt;
Symphony has partnered with TechCello to bring multi-tenancy frameworks for .NET-based SaaS migrations that cut down migration and development cycles by 30 - 40%, further accelerating the time to market for these applications. Learn how organizations can use TechCello's CelloSaaS framework combined with Symphony's product engineering services to quickly migrate to a contemporary SaaS platform.&lt;br /&gt;
&lt;br /&gt;
Attendees of this webinar will learn about:&lt;br /&gt;
&lt;br /&gt;
•	Product engineering considerations of SaaS applications  &lt;br /&gt;
•	Deploying SaaS applications in the cloud  &lt;br /&gt;
•	Solving technical challenges involved with multi-tenancy  &lt;br /&gt;
•	Benefiting from multi-tenant frameworks &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/425669/425669/webinar--building-multi-tenant-saas-applications/</guid>
      <pubDate>Wed, 09 Nov 2011 00:08:02 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>multiple mouse emulation for vb.net</title>
      <link>http://www.programmersheaven.com/mb/dotnet/425410/425410/multiple-mouse-emulation-for-vbnet/</link>
      <description>anyone know of a way to emulate multiple mouses in vb.net? &lt;br /&gt;
my purpose is to create add/create pointers for mouse mischief and wish to move them around and getting them to left click. &lt;br /&gt;
Im want to do this for my kinectmultipoint project which soon i will implement in my soon. &lt;br /&gt;
The project is for emulating each person on the kinect as a mouse so they can use mouse mischief without the mouse devices being plugged in.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/425410/425410/multiple-mouse-emulation-for-vbnet/</guid>
      <pubDate>Thu, 27 Oct 2011 15:46:09 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>multiple mouse emulation for vb.net</title>
      <link>http://www.programmersheaven.com/mb/dotnet/425409/425409/multiple-mouse-emulation-for-vbnet/</link>
      <description>anyone know of a way to emulate multiple mouses in vb.net? &lt;br /&gt;
my purpose is to create add/create pointers for mouse mischief and wish to move them around and getting them to left click. &lt;br /&gt;
Im want to do this for my kinectmultipoint project which soon i will implement in my soon. &lt;br /&gt;
The project is for emulating each person on the kinect as a mouse so they can use mouse mischief without the mouse devices being plugged in.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/425409/425409/multiple-mouse-emulation-for-vbnet/</guid>
      <pubDate>Thu, 27 Oct 2011 15:44:18 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>ping g20 driver</title>
      <link>http://www.programmersheaven.com/mb/dotnet/425312/425312/ping-g20-driver/</link>
      <description>Geoff Ogilvy has been very difficult today. &lt;strong&gt;[url=http://www.chinadiscountgolf.com/ping-g20-driver_p17653.html]ping g20 driver[/url]&lt;strong&gt; Former U.S. Open champion in the flint most likely hole: the par-five second time behind only two, but 35 feet from the hole he has appeared four-putt, and bogeyed the last row, &lt;strong&gt;[url=http://www.chinadiscountgolf.com/mizuno-mp69-irons-39-p_p18126.html]mizuno mp-69 irons[/url]&lt;strong&gt; to produce 70, after two rounds the score was only 138, two under par, tied for 27th. Lee Westwood has got psychological guidance of Bob Rotella and putting tips of Dave Stockton, &lt;strong&gt;[url=http://www.chinadiscountgolf.com/titleist-ap2-712-irons-2012_p17671.html]Titleist 712 AP2 Irons[/url]&lt;strong&gt; he had also in the ranks of the title race, but the last 6 He lost four holes, after the surrender of 71, [url=http://www.chinadiscountgolf.com/taylor-made-r11-driver_p17633.html]TaylorMade R11 Driver[/url] and dropped to tied 27th. Saturday's starting time will be in advance, because the weather forecast said there will be thunderstorms possible. [url=http://www.chinadiscountgolf.com/ping-k15-fairway-woods_p17465.html]Ping K15 Fairway Wood[/url] In other words, Saturday is estimated that in the end take a long time to determine who can win the dominant position in the Bridgestone Invitational - PGA Championship. &lt;strong&gt;[url=http://www.chinadiscountgolf.com/callaway-razr-x-irons-39-ps_p17422.html]callaway razr x irons[/url]&lt;/strong&gt; Well, in front of his players immediately have to start the sprint. Into the weekend, four distributed within the range of 24 athletes, &lt;strong&gt;[url=http://www.chinadiscountgolf.com/taylormade-r11-irons-49-psa_p17665.html]taylormade r11 irons[/url]&lt;/strong&gt; including U.S. Open champion Michael Roy and Steve Stricker. They are only just behind the leader 3.&lt;br /&gt;
&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/425312/425312/ping-g20-driver/</guid>
      <pubDate>Wed, 19 Oct 2011 01:56:40 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>ping g20 driver</title>
      <link>http://www.programmersheaven.com/mb/dotnet/425311/425311/ping-g20-driver/</link>
      <description>Geoff Ogilvy has been very difficult today. &lt;strong&gt;[url=http://www.chinadiscountgolf.com/ping-g20-driver_p17653.html]ping g20 driver[/url]&lt;strong&gt; Former U.S. Open champion in the flint most likely hole: the par-five second time behind only two, but 35 feet from the hole he has appeared four-putt, and bogeyed the last row, &lt;strong&gt;[url=http://www.chinadiscountgolf.com/mizuno-mp69-irons-39-p_p18126.html]mizuno mp-69 irons[/url]&lt;strong&gt; to produce 70, after two rounds the score was only 138, two under par, tied for 27th. Lee Westwood has got psychological guidance of Bob Rotella and putting tips of Dave Stockton, &lt;strong&gt;[url=http://www.chinadiscountgolf.com/titleist-ap2-712-irons-2012_p17671.html]Titleist 712 AP2 Irons[/url]&lt;strong&gt; he had also in the ranks of the title race, but the last 6 He lost four holes, after the surrender of 71, [url=http://www.chinadiscountgolf.com/taylor-made-r11-driver_p17633.html]TaylorMade R11 Driver[/url] and dropped to tied 27th. Saturday's starting time will be in advance, because the weather forecast said there will be thunderstorms possible. [url=http://www.chinadiscountgolf.com/ping-k15-fairway-woods_p17465.html]Ping K15 Fairway Wood[/url] In other words, Saturday is estimated that in the end take a long time to determine who can win the dominant position in the Bridgestone Invitational - PGA Championship. &lt;strong&gt;[url=http://www.chinadiscountgolf.com/callaway-razr-x-irons-39-ps_p17422.html]callaway razr x irons[/url]&lt;/strong&gt; Well, in front of his players immediately have to start the sprint. Into the weekend, four distributed within the range of 24 athletes, &lt;strong&gt;[url=http://www.chinadiscountgolf.com/taylormade-r11-irons-49-psa_p17665.html]taylormade r11 irons[/url]&lt;/strong&gt; including U.S. Open champion Michael Roy and Steve Stricker. They are only just behind the leader 3.&lt;br /&gt;
&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/425311/425311/ping-g20-driver/</guid>
      <pubDate>Wed, 19 Oct 2011 01:54:49 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>Text file reading</title>
      <link>http://www.programmersheaven.com/mb/dotnet/425192/425192/text-file-reading/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I have one text file having the data in the below format&lt;br /&gt;
&lt;br /&gt;
AA| 12&lt;br /&gt;
BB | 15&lt;br /&gt;
CC| 10&lt;br /&gt;
AA|20 &lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
in this format first value(AA) is some name and second value (12) is count . so in my requirement i want to read that text file and want to check with the first column in the first line with all other lines in the first column ,if any match is found then the count of the first column shouuld be added to the match column's count.i.e. &lt;br /&gt;
AA in first line value is matched with fourth line first column then count of the second column in the first line will be 32 (12 +20).&lt;br /&gt;
&lt;br /&gt;
please help me out for the solution,.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/425192/425192/text-file-reading/</guid>
      <pubDate>Mon, 10 Oct 2011 01:54:53 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>Text file reading</title>
      <link>http://www.programmersheaven.com/mb/dotnet/425191/425191/text-file-reading/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I have one text file having the data in the below format&lt;br /&gt;
&lt;br /&gt;
AA| 12&lt;br /&gt;
BB | 15&lt;br /&gt;
CC| 10&lt;br /&gt;
AA|20 &lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
in this format first value(AA) is some name and second value (12) is count . so in my requirement i want to read that text file and want to check with the first column in the first line with all other lines in the first column ,if any match is found then the count of the first column shouuld be added to the match column's count.i.e. &lt;br /&gt;
AA in first line value is matched with fourth line first column then count of the first column will be 32 (12 +20).&lt;br /&gt;
&lt;br /&gt;
please help me out for the solution,.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/425191/425191/text-file-reading/</guid>
      <pubDate>Mon, 10 Oct 2011 01:53:03 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>How to compare two Date values in two different columns of a table</title>
      <link>http://www.programmersheaven.com/mb/dotnet/424822/424822/how-to-compare-two-date-values-in-two-different-columns-of-a-table/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
My application is in VS2008 coded in vb.net.I have a table with three columns&lt;br /&gt;
&lt;br /&gt;
FromDate,Todate and Schedule.FromDate and ToDate will have date values whereas Schedule will have a any of these values(weekly,Monthly,Yearly)&lt;br /&gt;
&lt;br /&gt;
In my Form i have given some provision to the user to check the records.My requirement is The currentdate that is Today's date should be compared with the values of Fromdate and ToDate.First it should be check whether Schedule value is Weekly or Monthly or Yearly.If it is weekly than it should check the record in between fromDate to ToDate with a increment of one week.That means it should first check the first value of fromDate than add 7 days to the value and then again check from fromDate and this should continue till it reaches Todate.&lt;br /&gt;
&lt;br /&gt;
Im trying something like this but its not giving me good logic.&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
 If Schedule = "Weekly" Then
 While Today &amp;gt;= FromDate And Today&amp;lt;= ToDate
 If Today = fromDate Then
  My application Code here
  End If
  fromDate.AddDays(7)
  End While
  End If
&lt;/pre&gt;&lt;br /&gt;
I dont think its making any sense.&lt;br /&gt;
&lt;br /&gt;
Please Guide at the earliest.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/424822/424822/how-to-compare-two-date-values-in-two-different-columns-of-a-table/</guid>
      <pubDate>Wed, 21 Sep 2011 01:24:10 -0800</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>Technical Stacks of a Multi-tenant SaaS product - Webinar (2 Hours)</title>
      <link>http://www.programmersheaven.com/mb/dotnet/424759/424759/technical-stacks-of-a-multi-tenant-saas-product---webinar-2-hours/</link>
      <description>Advanced 2 hour session for Architects and CTOs (Asia Pacific)&lt;br /&gt;
&lt;br /&gt;
Thursday 15th Sep 2011, 10 AM to 12 Noon IST (GMT + 5.30)&lt;br /&gt;
&lt;br /&gt;
A Multi-tenant application architecture allows a single instance of the application and database to serve multiple tenants / customers / user groups. A True Multi-tenant architecture not only isolates data between tenants, but also allows extensive customization and configuration of the product to suit different customers / user groups without having to change the underlying code base.&lt;br /&gt;
 &lt;br /&gt;
Multi-tenancy Maturity Models &lt;br /&gt;
Multi-tenancy at different layers : Infrastructure, Database and Application &lt;br /&gt;
Technical Challenges &lt;br /&gt;
Development Stacks &lt;br /&gt;
Multi-tenant Plumbing Stack &lt;br /&gt;
Multi-tenant Data Connection Abstraction &lt;br /&gt;
Multi-tenant Security : Authentication, Encryption, Audit Trail &lt;br /&gt;
Multi-tenant Security : Access Control, Role and Privileges Management &lt;br /&gt;
Multi-tenant Customization : Views, Data models, Custom Fields &lt;br /&gt;
Multi-tenant Customization : Business rules and Workflows &lt;br /&gt;
Multi-tenant Customization : Adhoc builders for Reports, Charts, Widgets &lt;br /&gt;
Multi-tenant Notification and Schedulers &lt;br /&gt;
Multi-tenant Feature / Package / Subscription Management &lt;br /&gt;
Metering, Billing and Price Book Management &lt;br /&gt;
Tenant and User Management &lt;br /&gt;
Bulk Import, Export and Data Management utilities &lt;br /&gt;
Multi-tenant SaaS Framework: Build vs Buy &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/dotnet/424759/424759/technical-stacks-of-a-multi-tenant-saas-product---webinar-2-hours/</guid>
      <pubDate>Fri, 09 Sep 2011 22:28:45 -0800</pubDate>
      <category>.NET General</category>
    </item>
  </channel>
</rss>
