Click here to Skip to main content
15,908,013 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: "using javascript" Pin
Akhilesh Yadav25-Oct-06 19:54
Akhilesh Yadav25-Oct-06 19:54 
QuestionRe: "using javascript" Pin
ravikiranreddydharmannagari25-Oct-06 23:14
ravikiranreddydharmannagari25-Oct-06 23:14 
Questionget file count used in the project in asp.net Pin
yesu prakash25-Oct-06 19:29
yesu prakash25-Oct-06 19:29 
AnswerRe: get file count used in the project in asp.net Pin
thomas_joyee25-Oct-06 19:43
thomas_joyee25-Oct-06 19:43 
QuestionHelp for implementing interface Pin
dj.rock25-Oct-06 19:29
dj.rock25-Oct-06 19:29 
AnswerRe: Help for implementing interface Pin
MihirV25-Oct-06 20:00
MihirV25-Oct-06 20:00 
GeneralRe: Help for implementing interface Pin
dj.rock25-Oct-06 20:16
dj.rock25-Oct-06 20:16 
AnswerRe: Help for implementing interface Pin
MihirV25-Oct-06 20:44
MihirV25-Oct-06 20:44 
hi there,
more appropriate solution is as follows

Private Sub IncrementObject(INumber incrementor)
  incrementor.Increment()
End Sub
Public Shared Sub Main()
  Dim s As New Sequential()
  Dim n As New Numeric()
  ''
  '' This will execute Increment logic of Sequential Class
  IncrementObject(s);
  ''
  '' This will execute Increment logic of Numeric Class
  IncrementObject(n);
End Sub


Above method accepts object of type INumber, so any number of classes in which you implement INumber interface can be passed as argument in this method and this method will execute appropriate logic of increment,
Instance of Sequential Type will execute its own increment method.



Confidence comes not from always being right, but from not fearing to be wrong.
Mihir..

GeneralRe: Help for implementing interface Pin
dj.rock25-Oct-06 20:55
dj.rock25-Oct-06 20:55 
AnswerRe: Help for implementing interface Pin
Akhilesh Yadav25-Oct-06 20:01
Akhilesh Yadav25-Oct-06 20:01 
Questionasp.net Pin
sukhchain singh25-Oct-06 18:50
sukhchain singh25-Oct-06 18:50 
AnswerRe: asp.net Pin
Colin Angus Mackay25-Oct-06 23:37
Colin Angus Mackay25-Oct-06 23:37 
QuestionProgrammatically creating Xml from Database Table Pin
nature027625-Oct-06 14:14
nature027625-Oct-06 14:14 
AnswerRe: Programmatically creating Xml from Database Table Pin
minhpc_bk25-Oct-06 15:13
minhpc_bk25-Oct-06 15:13 
AnswerRe: Programmatically creating Xml from Database Table Pin
PavanPareta25-Oct-06 18:58
PavanPareta25-Oct-06 18:58 
QuestionDetect pages EnableSessionState value from codebehind? Pin
Member 9625-Oct-06 13:57
Member 9625-Oct-06 13:57 
AnswerRe: Detect pages EnableSessionState value from codebehind? Pin
Member 9625-Oct-06 14:06
Member 9625-Oct-06 14:06 
QuestionGridView column formatting Pin
Drew McGhie25-Oct-06 11:44
Drew McGhie25-Oct-06 11:44 
AnswerRe: GridView column formatting Pin
minhpc_bk25-Oct-06 14:45
minhpc_bk25-Oct-06 14:45 
GeneralRe: GridView column formatting Pin
Drew McGhie26-Oct-06 3:19
Drew McGhie26-Oct-06 3:19 
QuestionHow to mask controls based on the input selected before that? Pin
veerugadde25-Oct-06 10:55
veerugadde25-Oct-06 10:55 
AnswerRe: How to mask controls based on the input selected before that? Pin
minhpc_bk25-Oct-06 14:50
minhpc_bk25-Oct-06 14:50 
QuestionAddHandler UserControl Event Pin
greekius25-Oct-06 8:51
greekius25-Oct-06 8:51 
AnswerRe: AddHandler UserControl Event Pin
ednrgc25-Oct-06 8:54
ednrgc25-Oct-06 8:54 
QuestionHow to get all server control in the page by c# code? Pin
CooperWu25-Oct-06 5:19
CooperWu25-Oct-06 5:19 

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.