Click here to Skip to main content
16,007,687 members
Home / Discussions / C#
   

C#

 
AnswerRe: creating dll files Pin
Natarajasivan22-Jun-07 0:33
Natarajasivan22-Jun-07 0:33 
GeneralRe: creating dll files Pin
razanabanu22-Jun-07 2:18
razanabanu22-Jun-07 2:18 
GeneralRe: creating dll files Pin
Colin Angus Mackay22-Jun-07 2:59
Colin Angus Mackay22-Jun-07 2:59 
AnswerRe: creating dll files Pin
Hesham Yassin25-Jun-07 1:21
Hesham Yassin25-Jun-07 1:21 
QuestionLDAP Pin
Tauseef A21-Jun-07 23:45
Tauseef A21-Jun-07 23:45 
Questioncode help Pin
sangramkp21-Jun-07 23:44
sangramkp21-Jun-07 23:44 
AnswerRe: code help Pin
Colin Angus Mackay21-Jun-07 23:52
Colin Angus Mackay21-Jun-07 23:52 
GeneralRe: code help Pin
sangramkp22-Jun-07 0:29
sangramkp22-Jun-07 0:29 
my screen.cs class is like:

using System;
using System.Collections.Generic;
using System.Text;

namespace Screen
{
public class Screen
{
int screen_id;
string screen_name;
int screen_capacity;

public Screen(int ScreenId, string ScreenName, int ScreenCapacity)
{

screen_id = ScreenId;

screen_name = ScreenName;

screen_capacity = ScreenCapacity;

}


public int ScreenId
{
get { return screen_id; }
set { screen_id = value; }
}

public string ScreenName
{
get { return screen_name; }
set { screen_name = value; }
}

public int ScreenCapacity
{
get { return screen_capacity; }
set { screen_capacity = value; }
}
}
}



and the method in ScreenDb class is:

public void InsertScreen(int ScreenId, string ScreenName, int ScreenCapacity)
{
DbCommand cmd = db.GetStoredProcCommand("insertscreen");
db.AddInParameter(cmd, "@sid", DbType.Int32, ScreenId);
db.AddInParameter(cmd, "@sname", DbType.String, ScreenName);
db.AddInParameter(cmd, "@sc", DbType.Int32, ScreenCapacity);
cmd.ExecuteScalar();
}

my requirement is writing a method that will call Insert screen method with arguments as object of screen clas


GeneralRe: code help Pin
Colin Angus Mackay22-Jun-07 3:17
Colin Angus Mackay22-Jun-07 3:17 
Questionenterprise Block Pin
sangramkp21-Jun-07 23:39
sangramkp21-Jun-07 23:39 
AnswerRe: enterprise Block Pin
Colin Angus Mackay21-Jun-07 23:55
Colin Angus Mackay21-Jun-07 23:55 
GeneralRe: enterprise Block Pin
sangramkp22-Jun-07 0:39
sangramkp22-Jun-07 0:39 
GeneralRe: enterprise Block Pin
Colin Angus Mackay22-Jun-07 3:01
Colin Angus Mackay22-Jun-07 3:01 
QuestionHow to run a batch file in C# Pin
mjamilanwar21-Jun-07 23:28
mjamilanwar21-Jun-07 23:28 
AnswerRe: How to run a batch file in C# Pin
Giorgi Dalakishvili21-Jun-07 23:32
mentorGiorgi Dalakishvili21-Jun-07 23:32 
JokeRe: How to run a batch file in C# Pin
Sandeep Akhare21-Jun-07 23:51
Sandeep Akhare21-Jun-07 23:51 
GeneralClickety Police Pin
Colin Angus Mackay21-Jun-07 23:53
Colin Angus Mackay21-Jun-07 23:53 
Questionsniffing remote machine Pin
cool8321-Jun-07 23:17
cool8321-Jun-07 23:17 
AnswerRe: sniffing remote machine Pin
leppie22-Jun-07 1:19
leppie22-Jun-07 1:19 
GeneralRe: sniffing remote machine Pin
cool8322-Jun-07 1:39
cool8322-Jun-07 1:39 
GeneralRe: sniffing remote machine Pin
Russell Jones22-Jun-07 2:33
Russell Jones22-Jun-07 2:33 
GeneralRe: sniffing remote machine Pin
cool8324-Jun-07 22:04
cool8324-Jun-07 22:04 
QuestionAdrotator Pin
razanabanu21-Jun-07 23:16
razanabanu21-Jun-07 23:16 
QuestionModal dialog window does not appear in the Task Manager Pin
Ishara_P21-Jun-07 22:32
Ishara_P21-Jun-07 22:32 
AnswerRe: Modal dialog window does not appear in the Task Manager Pin
Guffa21-Jun-07 23:13
Guffa21-Jun-07 23:13 

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.