Click here to Skip to main content
15,920,632 members
Home / Discussions / C#
   

C#

 
GeneralRe: Method Overriding and Method Overloading Differnce with simple example Pin
Rameez Raja27-Apr-09 19:51
Rameez Raja27-Apr-09 19:51 
GeneralDynamic Image Resizing for Line Chart Generator Pin
Caio198527-Apr-09 16:17
Caio198527-Apr-09 16:17 
QuestionMouse Over Event (C Sharp) Pin
misCafe27-Apr-09 15:33
misCafe27-Apr-09 15:33 
AnswerRe: Mouse Over Event (C Sharp) Pin
TannerB27-Apr-09 16:52
TannerB27-Apr-09 16:52 
GeneralRe: Mouse Over Event (C Sharp) Pin
misCafe27-Apr-09 18:34
misCafe27-Apr-09 18:34 
GeneralRe: Mouse Over Event (C Sharp) Pin
12Code27-Apr-09 20:34
12Code27-Apr-09 20:34 
GeneralRe: Mouse Over Event (C Sharp) Pin
misCafe30-Apr-09 0:00
misCafe30-Apr-09 0:00 
QuestionOverloading a return value to a property in a webcontrol. Ambiguous Match Found Error. Pin
Andre Vianna27-Apr-09 14:32
Andre Vianna27-Apr-09 14:32 
I'm creating a CustomGridView based (of course) on the GridView.
I'm writen my on PagerProperties with a diferent class and diferent properties.
Everything works ok with the default values but if I set any value I receive the "Ambiguous Match Found" error.

Here is a sample code of what is happening:

public sealed class MyPagerSettings : IStateManager {

...
	[Category("Appearance")]
	[DefaultValue(true)]
	[NotifyParentProperty(true)]
	public bool Visible {
		get { return (bool?)mViewState["Visible"] ?? true; }
		set { mViewState["Visible"] = value; }
	}

...
}


public class MyGridView : GridView {

...

	MyPagerSettings mPagerSettings;


	[Category("Paging")]
	[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
	[NotifyParentProperty(true)]
	[PersistenceMode(PersistenceMode.InnerProperty)]
	<code>new</code> public virtual MyPagerSettings PagerSettings {
		get {
			if (mPagerSettings == null) {
				mPagerSettings = new MyPagerSettings(this);
				if (IsTrackingViewState)
					((IStateManager)mPagerSettings).TrackViewState();
			}
			return mPagerSettings;
		}
	}

...

}


The new modifier should hide the base property.

On the consuming page:

			<awc:MyGridView ID="MyGridView1" runat="server" AllowPaging="True" PageSize="10">
				<code><PagerSettings Visible=false />   <-- The error happens here!</code>
				<Columns>
...
				</Columns>
			</awc:MyGridView>



Please any help on how to work around it?
Please... I don't want to change the name of the property!!! So no obvious answers please.
Thanks.
QuestionHow to change language at runtime Pin
maxgit_100027-Apr-09 11:36
maxgit_100027-Apr-09 11:36 
AnswerRe: How to change language at runtime Pin
Rolando CC27-Apr-09 11:49
professionalRolando CC27-Apr-09 11:49 
QuestionHow to write simple com service in C# ? Pin
Yanshof27-Apr-09 11:25
Yanshof27-Apr-09 11:25 
AnswerRe: How to write simple com service in C# ? Pin
adatapost27-Apr-09 17:03
adatapost27-Apr-09 17:03 
QuestionCertificate Management / SslStream encryption Pin
guest100127-Apr-09 11:08
guest100127-Apr-09 11:08 
AnswerRe: Certificate Management / SslStream encryption Pin
guest100128-Apr-09 19:41
guest100128-Apr-09 19:41 
Questionftp key_press_evevt(help) Pin
T_Teef27-Apr-09 10:33
T_Teef27-Apr-09 10:33 
AnswerRe: ftp key_press_evevt(help) Pin
Rolando CC27-Apr-09 10:54
professionalRolando CC27-Apr-09 10:54 
GeneralRe: ftp key_press_evevt(help) Pin
T_Teef27-Apr-09 11:33
T_Teef27-Apr-09 11:33 
QuestionBinary files Pin
hamziak27-Apr-09 10:26
hamziak27-Apr-09 10:26 
AnswerRe: Binary files Pin
Rolando CC27-Apr-09 10:47
professionalRolando CC27-Apr-09 10:47 
AnswerRe: Binary files Pin
hamziak27-Apr-09 10:52
hamziak27-Apr-09 10:52 
GeneralRe: Binary files Pin
Rolando CC27-Apr-09 11:35
professionalRolando CC27-Apr-09 11:35 
Questionsearch through sql tables Pin
piticcotoc27-Apr-09 10:09
piticcotoc27-Apr-09 10:09 
AnswerRe: search through sql tables Pin
Christian Graus27-Apr-09 10:11
protectorChristian Graus27-Apr-09 10:11 
QuestionSendMessage WM_GETTEXT....Please help me. Pin
jdogg423227-Apr-09 10:06
jdogg423227-Apr-09 10:06 
AnswerRe: SendMessage WM_GETTEXT....Please help me. Pin
Luc Pattyn27-Apr-09 10:28
sitebuilderLuc Pattyn27-Apr-09 10:28 

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.