|
I have two classes and same function name how access class1 virtal function object class2.
class file
class Class1
{
public virtual string a1()
{
return "hh";
}
}
class class2 : Class1
{
public override string a1()
{
return "hello";
}
}
Form Design
class2 c2 = new class2();
string aa;
aa = c2.a1();
MessageBox.Show(aa);
|
|
|
|
|
Try this
class1 c ;
c=new Class1();
string aa;
aa = c.a1();
MessageBox.Show(aa);
c=New Class2();
aa = c.a1();
MessageBox.Show(aa);
this will work
Thanks & Regards
Pete
|
|
|
|
|
I want single object of Class2 and access both function Class1 and Class2
|
|
|
|
|
Hi guys i am working in webservice concepts...,
I like to send and receive my datas secure so i am moving for webservice enhancemet tool 3.0...,
Plz give me some sample code sites, using that how to send and receive datas securable datas...,
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
i am working on classes in asp.net & i want to know that what concept is to be followed while working on classes.I am new to this type of approach can u plz help me?
thanks
learning developer
|
|
|
|
|
My request is please get some books related to Asp.Net and start reading and practice it. you can have lot of articles in cp itself itself.
Clickety
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
I knw about c++ but i want to knw is that c++ classes are similar to .net classes? or there is some difference?
learning developer
|
|
|
|
|
The "C" series of languages is a great example of how Object-orientated design disciplines have evolved over time. C++ provides developers with an excellent implementation of object-orientated programming, allowing them to explicitly create constructors, copy constructors, override operators, use templates, etc.
The main problem with a complex language like C++ is that it takes several months to truly master its object-orientated design nature, with each new programmer having to come to grips with templates, function overloading and of course sensible class creation and usage.
With its implementation of C# (pronounced C-Sharp), Microsoft have given way to some of C++’s nitty-gritty object-orientated features such as templates, and have also changed the way we create classes.
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
You copied from here[^]. It's shame on you man. Please don't copy copyrighted text and paste it here.
|
|
|
|
|
If you are providing answer from another source, please give a citation. Your plagiarist behavior is unaccceptable and you've been doing this for quite sometime now.
With this behavior, you are a shame to the boards. Please change yourself!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi Everyone,
I ve a simple testing Website and i used c#.
I just want to list all FileNames from a specific folder.(e.g. Images)
How can i loop through all files in Images folder in c#.
User can upload images to that folder also.
so i want to do the listing in Load event of the page.
Please suggest..
Regards,
-SIFAR.
|
|
|
|
|
Use
string[] arrFiles = Directory.GetFiles(strPath);
you will get the list files in a array of strings
Thanks & Regards
Pete
|
|
|
|
|
It's done,
Thanks Prasanna.
Regards,
-SIFAR.
|
|
|
|
|
i bound a GridView with this column: Date(boundfield) - Name(boundfield) - ID(boundfield) - and i have a Select(CommandField). now when i click on select i can get the value of ID with this code:GridView.SelectedRow.Cells[5].Text
but i want not to show the ID column in GridView and when i invisible it that cell has no value and its empty. how can i solve my problem. thx for ur help.
|
|
|
|
|
Did u included "ID" field in the DataKeyNames property of the Gridview..?
Regards
Sivan.G
|
|
|
|
|
i cant understand ur mean, i wrote thiis code:
BoundField Code = new BoundField();
Code.HeaderText = "ID";
Code.DataField = "4";
Code.SortExpression = "4";
Code.ItemStyle.Width = 0;
//Code.Visible = false;
GridView.Columns.Add(Code);
its source is from dataTable.
|
|
|
|
|
i have update panel on my page working fine on localhost
but when i published my web site and uploded on windows server 2000 i face problem my whole pages gets post back not only update panel why is it so
what i have to check ? i have checked my web.config and it is fine
|
|
|
|
|
Check whether ajax framework components are properly copied on to the server
Thanks & Regards
Pete
|
|
|
|
|
Hi, can anybody tell me the web address of MICROSOFT LIVE CHAT to solve programming issues?
|
|
|
|
|
Hi,
I've Created a Table Dynamically in the Code behind file and using some loop have binded the values to the table Cells from a Dataset.This looks similar to a Gridview.Is there any way to implement paging concept to this dynamically generated tables and view the records in pages..? Can any1 help with a solution...
Regards
Sivan.G
|
|
|
|
|
Use a gridview instead.
I didn't get any requirements for the signature
|
|
|
|
|
Hi
i use to compare two dates.Data1 is always less than Date2.if i give
Date1 Date2
18/10/2008 20/10/2008 validation occure. because the difference should be 8 days for dates it taken. My Requirement is less than one day
your's subbu
|
|
|
|
|
Hello all,
I want to send email via Outlook redirected from asp.net page. I have already implemented:
Protected Sub email_field_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles emailfield.Click
Dim emailadd As String
emailadd = txtEmail.Text
emailadd = "mailto:" & emailadd & ""
Response.Redirect(emailadd)
End Sub
This redirected the page to a new page and also opened the outlook window. But I want to open the outlook window without getting redirected to the new page.
What may be the ways to do that?
Thanks,
|
|
|
|
|
Have you tried using a mailto: hyperlink, the user will then get an outlook window to send a message. I'm not sure you can open Outlook via javascript.
I didn't get any requirements for the signature
|
|
|
|
|
No I have implemented Link button not the hyprlink.
|
|
|
|