.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

What is the difference betweem source property and connected property for a dimension?

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :Sql Server
Hi, I need to know the difference between the source property and the connected property from a technical and functional point of view ThanksThe complexity resides in the simplicity

View Complete Post

More Related Resource Links

SSAS 2008 - The OLAP data source has no property fields available for this dimension


Last week I was able to view member properties for my Product Dimension in Excel 2010 pivot tables. Suddenly, without having made any changes to the dimension (for example, in the Attribute Relationships window of the dimension), those member properties are no longer available in Excel. I get the error "The OLAP data source has no property fields available for this dimension" when I try to select "Show Properties in Report" or "Show Properties in Tooltips" in the Pivot Table. At the same time, member properties are available for all other dimensions. I have also not made any changes to the data source connection in Excel and in any event, there is no option in the data source connection to enable or disable member property visibility. I am using BIDS 2008 and SQL Server 2008 R2 (10.50.1600.1). Does anybody have an idea why this might be happening?


abstract away the source of the connection string using a class with a static property.

ASP.NET provides a configuration system we can use to keep our applications flexible at runtime. In this article we will examine some tips and best practices for using the configuration system for the best results.

The element of a web.config file is a place to store connection strings, server names, file paths, and other miscellaneous settings needed by an application to perform work. The items inside appSettings are items that need to be configurable depending upon the environment, for instance, any database connection strings will change as you move your application from a testing and staging server into production.

Let's abstract away the source of the connection string using a class with a static property.

Bug in Socket.Connected property

Hi!I've built a server which is listening to port 55.I run the current code: (VB.NET) Code Block Imports System.NetImports System.Net.SocketsModule Module1    Sub Main()        Dim sck As Socket = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)        Dim myip As IPAddress = IPAddress.Parse("")        Dim myep As EndPoint = New IPEndPoint(myip, 55)        sck.Connect(myep)        Console.ReadKey() 'After this click I manually close the server        Console.WriteLine("Connected: {0}", Con(sck))        Console.ReadKey() 'Again...        Console.WriteLine("Connected: {0}", Con(sck))    End Sub    Public Function Con(ByRef Client As Socket) As Boolean        Try            Dim tmp(0) As Byte            client.Blocking = False            client.Send(tmp, 0, 0)        Catch e As SocketException            ' 10035 == WSAEWOULDBLOCK            If e.NativeErrorCode.Equals(10035) Then                Con = True            Else                Con = False            End If        End Try        Con = Client.Connected    End FunctionEnd Module As you can understand from the code, I connect to the server I've built, Waiting for the user to press 2 Enters in my program to show the state of the connection.It shows every Enter if the socket is connected (sck.Connected).So, I closed my server while they are connected, a

A field or property with the name 'FieldName' was not found on the selected data source


I'm attempting to load a GridView dynamically on a button is pressed.

The gridview has AutoGenerateColumns="True" (set in skin definition) and has a declarative column definitions as follows:

<asp:GridView runat="server"
        SkinID="GridViewDetail" ID="gvReport"
            <asp:TemplateField HeaderText="Date">
                        <asp:LinkButton  OnClick="

Force update of bound combobox when validation changes bound source property


.NET 3.5SP1, VS 2008

I have inherited a system for maintenance and I'm working my way through defect reports.  Once such issue involves insuring a combobox value is reset to a known good value when a validation failure occurs.  The combobox is bound to a source property loaded which is initialized when the user selects a case for update.  According to this post it is an issue inside of WPF to ignore value changes when processing an update to the source (at least that's how I interpret the post).  Unfortunately for me, the UpdateSourceTrigger for a combobox is PropertyChanged, so the suggested approach does not fit my needs.  I tried it anyway, just to be certain.

I've created a test app which mimics the application design and exhibits the behavior I'm attempting to work around.  At this point, I'm at a loss how to proceed further.  I'm certain there's something I'm missing and would appreciate a nudge in the proper direction.

xaml window:

<Window x:Class="TestWpf.ComboTest

A field or property with the name 'User_x0020_Name' was not found on the selected data source.


I am trying to bind the XML data to a datagrid from an XML file.  I don't know why I am getting the message: "A field or property with the name 'User_x0020_Name' was not found on the selected data source."

The "User_x0020_Name" field does exist in the XML file.  This is a portion of the XML file.

<?xml version="1.0" encoding="utf-8" ?> 
<DataSet xmlns="http://www.----------.com">
 <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
 <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
 <xs:choice minOccurs="0" maxOccurs="unbounded">
 <xs:element name="Table">
 <xs:element name="User_x0020_Name" msdata:ReadOnly="true" minOccurs="0">
 <xs:restriction base="xs:string">

Difference between UserProfile & User Information List Property Values?


If I checks the FirstName & LastName Property values in UserProfile it has someValue however the same properties does not have anyValue in User Information List, what would the reason behind this?

Even I could see comma (",") separated value for some Field in UIL however the same value is in UserProfile without comma (",") ....

ProfileSync and/or QuickSync will update the UIL with same Information avail in UserProfile, isn't it? In that case both should have the same value, right?

Karthikeyan | MCTS | India

Binding a ValidationRule property - Cannot find source for binding with reference 'ElementName=...'



I'm playing around with a custom ValidationRule that will make sure date 1 is less than date 2 (or visa versa). My ValidationRule exposes a public property for date2. If I want to explicitly set the date, that would be enough, but I wanted to be able to bind date2 to the SelectedDate of a DatePicker control. So I changed my ValidationRule's property type to a custom class, named DependencyDate, which exposes a date as a dependency property. Now I should be able to apply my ValidationRule to the binding on one DatePicker and bind the date 2 to another DatePicker's SelectedDate. The problem is, my binding is yielding the message "Cannot find source for binding with reference 'ElementName=dtEnd'". Here is the code:

<DatePicker Grid.Column="1" Name="dtStart">

Key Columns property when creating dimension hierarchy in Analysis Services 2008


HI All

I have 3 dimensions in our Data Warehouse, dimCampaign, dimCampaignList and dimCampaignTarget
Think of dimCampaign as a marketing campaign, that contains one or more Campaign Lists (offers) for which many customers (dimCampaignTargets) receive.  The are foreign key relationships between these 3 tables, and it is the dimCampaignTarget ids that are written to associated fact tables

I have created a single dimension in Analysis Services 2008 that contains these 3 tables and their respective relationships were set up in the DSV so that I could do this.  Rather than use the 'referenced' dimension method, I wanted a 'single' dimension containing the 3 tables and their snowflake relationships in order that I can create a hierarchy that contains attributes from differing tables (namely the Campaign Description from dimCampaign, and Campaign List Description from dimCampaignList). 

My hierarchy has those 2 levels, top level is Campaign (description), and the 2nd level is Campaign List (description).  The Campaign Targets are not shown in the hierarchy, their attribute is only used in the dimension as the join to most of the fact tables.

Problem is when I set up my hierarchy, I go to change the Key Columns property of the Campaign List attribute to make it a collection of keys (Campaign and Campaign List) as I did in

WPF / Silverlight tutorial: Visibility property and binding

Visibility property is a very powerful and yet often overlooked property available in both WPF and Silverlight. It enables you to set Visibility of certain UIElement objects to different states like: Visible, Collapsed and Hidden (not supported by Silverlight). This tutorial shows you how to use it and how to bind to Visibility property

Get pixel format, raw format, property id list and property items image in VB.net - C#.net.

n this simple article you will learn that how we can get pixel format, raw format, property id list and property items image in VB and C#.net.

Get Pixel Format:

Image consists of pixels to get the format of the pixel we have a property named pixel format. This property returns an enumeration of pixel format. This enumeration tells the pixel format.

To demonstrate make a window application. Drag one button and a picture box on form.

Now write the following code on Button click event:

Jscript error: Object does not support property or method


 Hi, i have little knowledge on javascript but i need to use this code get from somewhere for a jquery to work.

I face this "Jscript runtime error: Object does not support property or method" whenever im trying to run this page.

In my experience, im get this error msg 9 out of 10 times i use javascript in my system.

Im using Microsoft Visual web developer 2008, i wonder if this is related to my problem, i not sure there is anything i need to add as reference or update anything.

But anyway, in short, i just couldn't use javascript code when using this development tool because of this sort of error.

Anyway, it happen that last time i tried use the same type of jquery code in another project and it seems to work well without an error.

But now when im try to use it again in this recent project i created, it come out with this error and i have no idea how to solve it even look through google and this forum.

It doesn't really seems like its the code problem itself although im not sure, because any javascript code just couldn't work.

So below is my code that i need to use.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script type="text/javascript" src=&quo

Is it possible to populate property choices from a database?


I'm creating my first server control, and have it working where I can set up an enum and the user can set a property's choices,  based off of that enum.  But I'd like it to pull records from a database and populate the list of choices for the property from a database.  This would allow me to add a new "Host System" to the database, and the other designers wouldn't have to get a new copy of the dll.



Custom Server Control Property not maintaining state


I have created a server control consisting of a TextArea and a div under it.  My goal is to create my own asp:TextArea type control.  the div is for a Character count of the text area and seems to work ok but i added a CharacterCountVisible property to the control that is always returning true.  See Proptery definition below


<Bindable(False), Category("Appearance"), DefaultValue("True"), Localizable(True)> Property CharacterCountVisible() As Boolean
        Return _CountBoxVisible
    End Get
    Set(ByVal value As Boolean)
        _CountBoxVisible = value
    End Set
End Property

Note the _CountBoxVisible variable is define inside the class as :

Dim _CountBoxVisible as Boolean = True

What I am trying to do is give the user/coder the option to show/utilize the char count feature.  Can make it disappear with textarea1.CharacterCountVisible = False but setting it to true will not make it display.


What am i missing





Category attribute of user control property does not work correctly in categories tab.



I have a User Control (ascx) and a property which a want to display in my categories tab in Visual Studio in the category named "Styles".

[Category("Styles"), DefaultValue(""), Description("The value for formating something.")]
public String MyFormatProperty
set { /* the code for set */; }
get { /* the code for get */; }

And here is the problem: Actually I do not need a get, because I only have to set the property (write only property). But when I omit the get, the property is displayed in the "Misc" category in the categories tab in Visual Studio. Only when I code the get as well, then the property is displayed correctly in the "Styles" category in the categories tab in Visual Studio.

Does anybody know why? How can I display the category correctly only with set?

Thanks, S.

Need to know (the value of a) clientside property on the serverside


I need to know on the serverside, if a RadioButton has been disabled (by javascript) on the clientside.


The (serverside) Enabled property is not the same as the (clientside) disabled property. Using MyRadioButton.Attributes("disabled") doesn't do the trick either.


Any clue?

Using Dynamic Property inside Html Helper with Razor fires an error



I have the following with Razor:

@Html.GoogleAjax(View.GoogleAjaxKey, new String[,] { { "jquery", "1.4.2" } })

And the I get a strange error:

  'System.Web.Mvc.HtmlHelper<object>' has no applicable method named 'GoogleAjax' but appears to have an extension method by that name. Extension methods cannot be dynamically dispatched. Consider casting the dynamic arguments or calling the extension method without the extension method syntax.

What is strange is that it works fine using:

@Html.GoogleAjax("123", new String[,] { { "jquery", "1.4.2" } })

I tried the following code line:


And the key is displayed just fine so the problem is how I use the value of @View.GoogleAjaxKey into Html.GoogleAjax.

Do I need to change something on my Html Helper? Here it is:

    public static MvcHtmlString GoogleAjax(this HtmlHelper helper, String key, String[,] libraries) {

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend