Click here to Skip to main content
15,921,062 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to override the priority of an event Pin
Seishin#12-Jan-07 0:11
Seishin#12-Jan-07 0:11 
AnswerRe: how to override the priority of an event Pin
S. Senthil Kumar12-Jan-07 6:48
S. Senthil Kumar12-Jan-07 6:48 
Questionchanging data type of a column of datatable with data Pin
amitcoder8311-Jan-07 22:38
amitcoder8311-Jan-07 22:38 
QuestionAdding own descriptions to intelli sense Pin
JacquesDP11-Jan-07 22:34
JacquesDP11-Jan-07 22:34 
AnswerRe: Adding own descriptions to intelli sense Pin
stancrm11-Jan-07 23:15
stancrm11-Jan-07 23:15 
GeneralRe: Adding own descriptions to intelli sense Pin
JacquesDP11-Jan-07 23:30
JacquesDP11-Jan-07 23:30 
GeneralRe: Adding own descriptions to intelli sense Pin
JacquesDP12-Jan-07 0:15
JacquesDP12-Jan-07 0:15 
QuestionCalling Managed code from c# dll. Is it possible? Pin
chandraskar11-Jan-07 22:33
chandraskar11-Jan-07 22:33 
Hi, I’m in process of creating dlls for Web User Controls in ASP.NET v 2.0. Let me explain what exactly my problem is.

UserControl.ascx.cs to be wrapped into dll:

public partial class Controls_Search : System.Web.UI.UserControl
{

protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = testMethod();
}

public string testMethod()
{
return "Yes Iam here " + Sample.testMethod1();
}
}

public class Sample
{
public static string testMethod1()
{
return "Only";
}
}

I’ve created the dll successfully with the name Search.dll. Also i referenced this dll inside my new project. Now, whenever I load this in my page, testMethod() is being called, consequently the output is "Yes Iam here Only". That’s cool. But I should be in a position to override Sample.testMethod1()Wrapped inside the dll with my project’s App_Code class say class1.cs.

This is my new class within the project in App_Code/Class1.cs.

public class Sample
{
public static string testMethod1()
{
return "Only1";

}
}

I also tried virtual & override with testMethod1() being defined as non-static member of that class. Nothing works.

My output should be: "Yes Iam here Only1"


Thanks in advance,
chandrasekar
AnswerRe: Calling Managed code from c# dll. Is it possible? Pin
Guffa11-Jan-07 22:55
Guffa11-Jan-07 22:55 
Questionregarding datagridview printing option in c# winforms Pin
vsekharbandaru11-Jan-07 22:03
vsekharbandaru11-Jan-07 22:03 
Questionhow to manage Device(s) from USB port ? Pin
hdv21211-Jan-07 21:56
hdv21211-Jan-07 21:56 
QuestionHowTo Get version of ActiveX on client & Update Pin
gholbrook11-Jan-07 21:22
gholbrook11-Jan-07 21:22 
QuestionHow to select a cell of a column of a list View?? Pin
Saira Tanwir11-Jan-07 19:14
Saira Tanwir11-Jan-07 19:14 
AnswerRe: How to select a cell of a column of a list View?? Pin
Nader Elshehabi11-Jan-07 21:32
Nader Elshehabi11-Jan-07 21:32 
AnswerRe: How to select a cell of a column of a list View?? Pin
CPallini11-Jan-07 22:37
mveCPallini11-Jan-07 22:37 
Questionhow to read information from pdf files Pin
deepualuru11-Jan-07 18:32
deepualuru11-Jan-07 18:32 
QuestionMonitor letter Drive (D:) Pin
picasso211-Jan-07 18:15
picasso211-Jan-07 18:15 
AnswerRe: Monitor letter Drive (D:) Pin
stancrm11-Jan-07 19:53
stancrm11-Jan-07 19:53 
AnswerRe: Monitor letter Drive (D:) Pin
Nader Elshehabi11-Jan-07 21:37
Nader Elshehabi11-Jan-07 21:37 
QuestionAccessing Image from MS Access. [modified] Pin
Shaurya_Rastogi11-Jan-07 18:09
Shaurya_Rastogi11-Jan-07 18:09 
QuestionDataGrid Pin
swjam11-Jan-07 17:57
swjam11-Jan-07 17:57 
AnswerRe: DataGrid Pin
Nader Elshehabi11-Jan-07 21:48
Nader Elshehabi11-Jan-07 21:48 
Questionerror in storage.InsertRecords [modified] Pin
tahreen shah11-Jan-07 17:11
tahreen shah11-Jan-07 17:11 
QuestionWhen is a DropDownItem not a DropDownItem? [modified] Pin
JoeRip11-Jan-07 16:55
JoeRip11-Jan-07 16:55 
AnswerRe: When is a DropDownItem not a DropDownItem? Pin
JoeRip11-Jan-07 17:29
JoeRip11-Jan-07 17:29 

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.