Dot Net

Interface and Abstract class??

Posted in Dot Net on March 11th, 2010 by Saba – Be the first to comment

We used interface when we don’t know the type of particular objects . but abstract class defined the same objects type.

interface means unknown type objects and we can casting unknown type object into interface type that is implemented by the class.

On Mon, Mar 8, 2010 at 11:31 AM, Raghupathi Kamuni wrote:

- please explain

Posted in Dot Net on March 11th, 2010 by Saba – Be the first to comment

*Only return Length of patch.*

On Fri, Feb 26, 2010 at 9:02 PM, Learner wrote:

ASP.NET GridView Question

Posted in Dot Net on March 10th, 2010 by Saba – Be the first to comment

Hi Greg,

You need to add a CommandField to your GridView, such as

This will fire the following event

Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand

On Tue, Mar 9, 2010 at 11:29 AM, Greg Hile wrote:

C# – Combo box. Different Text to Value?

Posted in Dot Net on March 10th, 2010 by Saba – Be the first to comment

Hello Dear,

Follow the following steps to get the desirable result.

1) Create a dataset with two column ID and Desc 2) now set the valuemember property of combo box with id and display member property with desc.

i.e combobox1.Displaymember = “ID” ( case Sensitive) Combobox1.valuemember = “Desc” ( case Sensitive)

These are the case sensitive if you fetch ID and assign ‘id’ to display member. then it will not give any result.

3) Combobox1.DataSource = Datasetname

Now use combobox.selectedvalue property to fetch the id.

Hope it will help you.

Regards Vaibhav Goel Sr. Engineer.

On Sun, Mar 7, 2010 at 12:03 AM, ruchita sharma wrote:

Dropdown menu horizontaly with submenu also

Posted in Dot Net on March 10th, 2010 by Saba – Be the first to comment

i have developed my website in ASP.net and i have used html controls with css implemented on it. is ther eany other solution.

Dropdown menu horizontaly with submenu also

Posted in Dot Net on March 10th, 2010 by Saba – Be the first to comment

Try this

http://www.softcomplex.com/products/tigra_menu/

http://www.javascriptkit.com/script/cutindex23.shtml – Good One

On Sat, Mar 6, 2010 at 6:54 AM, vamsi wrote:

Interface and Abstract class??

Posted in Dot Net on March 9th, 2010 by Saba – Be the first to comment

Thanks to all…

On Tue, Mar 9, 2010 at 1:32 PM, Processor Devil wrote:

What type of a class is DataRow()?????

Posted in Dot Net on March 9th, 2010 by Saba – Be the first to comment

Thanks a lot!!!

On Tue, Mar 9, 2010 at 10:46 AM, Arsalan Tamiz wrote:

Interface and Abstract class??

Posted in Dot Net on March 9th, 2010 by Saba – Be the first to comment

Easy answer… With interfaces you can create a code using class functionality before class is really made…

Good example. You are working in a team on some client/server application. Your goal is to create a communication between opened sockets using a new Connection class. But… this class is not coded yet. For this class, interface IConnection was created which basically tells you what public methods and properties are inside. This way you can have methods, which calls and uses functionality of class that is still in development.

Example of usage: interface IConnection { public void SendData(string data); public bool Result { get; } }

class MyClass { public MyClass(IConnection myConnection) { this.myConnection = myConnection; } public bool SendData(string data) { this.myConnection.Send(data); return this.myConnection.Result; } IConnection myConnection; }

Using interfaces means you can implement classes that don’t even exist, because you know, how the logic will work. You don’t need to wait and no one needs to wait for your work after some Connection class is really created.

2010/3/8 crazy

auto fixing to screen size

Posted in Dot Net on March 9th, 2010 by Saba – Be the first to comment

Have you tried using different layouting controls? like TableLayoutPanel?

On Mon, Mar 8, 2010 at 9:33 PM, ravindra p wrote: