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

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

Can someone explain this inheritance?

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :SharePoint
I am having trouble understanding the inheritance listed in http://msdn.microsoft.com/en-us/library/cc406686(office.12).aspx <%@ Page Debug="true" Language="C#" MasterPageFile="~/_admin/admin.master" Inherits="MSDN.SharePoint.Samples.WarmupJobManager, MSDN.SharePoint.Samples.SharePointWarmupJob, Version=, Culture=neutral, PublicKeyToken=7fd1d26c5854f031" %> It almost looks to me like two classes are being inherited - WarmUpJobManager AND SharepointWarmupJob. Is this correct?...or even possible?? Neither class is a partial class. Sorry I am new to this and was trying to deploy this example but the inheritance displayed here has me confused. Thanks in advance, Jake.

View Complete Post

More Related Resource Links

Master Pages: Master Your Site Design with Visual Inheritance and Page Templates


Master pages in ASP.NET 2.0 solve a problem many Web developers have been solving on their own with a variety of techniques for years - providing a single master template for an entire site. This article covers the details of master pages, discussing their usage and implementation and how they are a natural evolution of custom techniques developers are using today.

Fritz Onion

MSDN Magazine June 2004

Can someone please explain what this line of code is actually doing

I took this line of control from this post http://forums.asp.net/t/1201593.aspx I'm actually trying to do the same dynamic accordion.   MyAccordion.ItemDataBound += new EventHandler<AccordionItemEventArgs>(MyAccordion_ItemDataBound);    I converted to vb.net and this is the equivalent. MyAccordion.ItemDataBound += New EventHandler(Of AccordionItemEventArgs)(MyAccordion_ItemDataBound) when I type  that line in my code I get an error.. Error 3 'Public Event ItemDataBound(sender As Object, e As AjaxControlToolkit.AccordionItemEventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.    and   Error 4 Delegate 'System.EventHandler(Of AjaxControlToolkit.AccordionItemEventArgs)' requires an 'AddressOf' expression or lambda  

Problems with inheritance in WCF

Hi, I've got some code written using remoting that I'm considering updating to use WCF as WCF has some pretty nice features, however I've been having real problems getting inheritance to work going across WCF using binary serialization, I created some simple test code to get my head round whats going on using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Tcp; using System.ServiceModel; using System.ServiceModel.Channels; namespace Test { [ServiceContract] public interface IServer { [OperationContract] BaseType Get(); } public class Server : MarshalByRefObject, IServer { public BaseType Get() { return new InhertitedType(); } } [Serializable] public abstract class BaseType { public abstract string Name{ get;} } [Serializable] public class InhertitedType : BaseType { public override string Name{ get { return "Working"; } } } class Program { static int port=8888; static string ip = ""; static void Main(string[] args) { var binding = new NetTcpBinding(); var endpoint = new EndpointAddress(string.Format("net.tcp:/

Can someone explain this assembly in WSP deployment behavior?

I was building a SP timer Job feature. Upon successive feature deployment and retractions using the Visual Studio environment the code changes were not being deployed. I dug around and found this in the AssemblyInfo.cs // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] So I changed what was the following line from [assembly: AssemblyVersion("")] to the stated [assembly: AssemblyVersion("1.0.*")] and all is well (yippee). This seems to make good sense to me. But why is it not the default build/deploy setting? Is there an IDE interface for this setting. Is it related to the the Solution Configuration or build target or an IIS reset timing or GAC cache.....anything like that?

explain me how many functions are their in sql server with examples

explain me how many functions are their in sql server with examples ?

How can I reset inheritance to regain controll of a subsite/subweb?

How can I reset inheritance to regain controll of a subsite/subweb?Kevin W. Gagel

while trading in stock market it was chnaging dynamically how it was working explain with examples

while trading in stock market it was chnaging dynamically how it was working explain with examples

ViewModel and inheritance.

Let's say I get DataContract class from a Service reference. Now I want to use this class in a viewmodel because I need extended functionality. Can you guys recommend if the ViewModel class should inherit the class from the service or should the viewmodel have the class as a property instead? I've used both these approaches but I'm more and more thinking that using the class as property instead of inherit it is an easier way. Thanks for help!

Can someone explain how SharePoint determines what to display as the Title of the document for searc

I would it expect it to be the the actual title of the documnet but instead I have noticed that it looks in the document and displays the first word or two as the title.

Can anyone explain how SQL Server performance scales with CPUs/Cores, memory, disk drives, etc?

I have experienced the situation where our application running on an expensive system with two 4 core CPUs ran slower than on a cheap machine with one dual core CPU. Both machines had similar memory capacity. In each case, the same query was being run by only one user. It would be nice to find a way to increase performance, but if adding cores doesn't help, what can a poor developer do? Customers get annoyed when they spend a truckload of money on a new server and nothing changes... Another potential problem is when customers have an expensive SAN system Sometimes the performance is much slower then on a system with conventional storage. Can anyone explain the relationship between SQL Server perfomance and hardware ?

Estimated Explain Plan does not return



I have a query which takes a very long time to complete appx 1 hour. If I run an estimated execution plan on the query, this can run for over an hour and doesn't return the plan. Any ideas why the plan should take so long. Is the only way around this to clear the cache?



IScriptControl and inheritance


For some time now, I have been creating script controls (in VB).  I have been inheriting Label and implementing IScriptControl, as that works well for me. Looking at where I am now, it's clear that there is a degree of commonality between many of the controls, so it would make sense to introduce an additional layer of inheritance - my own base control inheriting Label and implementing IScriptControl; and then the actual controls which will inherit from my base control.

Inheritance is usually simple enough, but I'm a bit stuck about:

  • how to handle the GetScriptDescriptors and GetScriptReferences across the two layers (overrides, shadows, etc).
  • whether I can split the Javasscript into multiple files (effectively common code and specific code) and then they just work together on the client (through $create, etc) as if they were just one file.

Pointers to examples and words of wisdom equally welcome.



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