Click here to Skip to main content
15,899,475 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is it possible to get my webpage url Pin
Colin Angus Mackay6-Jun-05 10:11
Colin Angus Mackay6-Jun-05 10:11 
QuestionElegant Client/Server? Pin
methodincharge6-Jun-05 7:51
methodincharge6-Jun-05 7:51 
AnswerRe: Elegant Client/Server? Pin
Christian Graus6-Jun-05 12:52
protectorChristian Graus6-Jun-05 12:52 
GeneralRe: Elegant Client/Server? Pin
methodincharge6-Jun-05 16:14
methodincharge6-Jun-05 16:14 
GeneralRe: Elegant Client/Server? Pin
Christian Graus6-Jun-05 16:17
protectorChristian Graus6-Jun-05 16:17 
GeneralRe: Elegant Client/Server? Pin
methodincharge7-Jun-05 2:48
methodincharge7-Jun-05 2:48 
GeneralRe: Elegant Client/Server? Pin
Christian Graus7-Jun-05 11:39
protectorChristian Graus7-Jun-05 11:39 
GeneralPlease give me a fever printing code problem, build id problem and insertion problem Pin
Saif_S6-Jun-05 7:19
Saif_S6-Jun-05 7:19 
Hello Guys,

how are you, hope you are fine?

This is my first time I am doing the ASP.NET C# SO Please please give me a fever in the following codes using C#:

//build id
ID= select MAX(COM_ID) FROM COMPLAINT;
dCmd1 = new suggestionCMD(strSQL1, dbConn);
if (id=0) then {
id +=1;
dCmd2 = insert into COMPLAINT (COM_ID, "COM_TITLE", "COM_DESC", "COM_STATUS","COM_REASON_DESC", COM_USER_ID, COM_DATE, COM_A_ID, COM_Updated_On);
}
dCmd.ExecuteNoneQuery();
IF (strSQL1+=0 || strSQL1 >0){
strSQL1 = strSQL1+1;
}
void InsertCommand(object sender, System.EventArgs e){
suggestionCon CMDConnection;
CMDConnection = new suggestionCon("Server=localhost;
uid=sarah;pwd=sarah;database=suggestion");
suggestionCMD CMD;
CMD = new suggestionCMD("Insert Into COMPLAINT (Title, Description) Values (COM_TITLE, COM_DESC )", CMDConnection);
CMD.Parameters.Add("COM_TITLE", suggestion.Varchar2, 30). Value = InsertTitle.Text;
CMD.Parameters.Add("COM_DESC", suggestionDbType.Varchar2, 100). Value = InsertDescription.Text;
CMDConnection.Open();
CMD.ExecuteNonQuary();
CMDConnection.Close();
LoadData();
}
void PrintButton(){

// Set the page margins
Rectangle rPageMargins = new Rectangle(e.MarginBounds.Location,
e.MarginBounds.Size);

// Generate the offset origins for the printing window
Point[] ptOffsets = GeneratePrintingOffsets(rPageMargins);

// Make sure nothing gets printed in the margins
e.Graphics.SetClip(rPageMargins);

// Draw the rest of the Form using the calculated offsets
Point ptOffset = new Point(-ptOffsets[_iCurrentPageIndex].X,
-ptOffsets[_iCurrentPageIndex].Y);
ptOffset.Offset(rPageMargins.X, rPageMargins.Y);
DrawForm(e.Graphics, ptOffset);

// Determine if there are more pages
e.HasMorePages = (_iCurrentPageIndex < ptOffsets.Length - 1);

_iCurrentPageIndex++;
}



Regards,


Saif
GeneralRe: Please give me a fever printing code problem, build id problem and insertion problem Pin
Dan Neely6-Jun-05 9:09
Dan Neely6-Jun-05 9:09 
GeneralRe: Please give me a fever printing code problem, build id problem and insertion problem Pin
DavidNohejl6-Jun-05 9:48
DavidNohejl6-Jun-05 9:48 
GeneralRe: Please give me a fever printing code problem, build id problem and insertion problem Pin
Judah Gabriel Himango6-Jun-05 10:11
sponsorJudah Gabriel Himango6-Jun-05 10:11 
GeneralRe: Please give me a fever printing code problem, build id problem and insertion problem Pin
Saif_S7-Jun-05 4:55
Saif_S7-Jun-05 4:55 
GeneralRe: Please give me a favor printing code problem, build id problem and insertion problem Pin
Saif_S7-Jun-05 5:19
Saif_S7-Jun-05 5:19 
GeneralRe: Please give me a favor printing code problem, build id problem and insertion problem Pin
Christian Graus7-Jun-05 12:00
protectorChristian Graus7-Jun-05 12:00 
Generalanother help please Pin
Saif_S6-Jun-05 7:17
Saif_S6-Jun-05 7:17 
GeneralRe: another help please Pin
Christian Graus6-Jun-05 12:44
protectorChristian Graus6-Jun-05 12:44 
GeneralPlease give me a fever.... Pin
Saif_S6-Jun-05 7:16
Saif_S6-Jun-05 7:16 
GeneralRe: Please give me a fever.... Pin
Anonymous6-Jun-05 9:06
Anonymous6-Jun-05 9:06 
GeneralRe: Please give me a fever.... Pin
Christian Graus6-Jun-05 12:48
protectorChristian Graus6-Jun-05 12:48 
GeneralRe: Please give me a fever.... Pin
Anonymous6-Jun-05 18:20
Anonymous6-Jun-05 18:20 
GeneralRe: Please give me a fever.... Pin
Christian Graus6-Jun-05 18:24
protectorChristian Graus6-Jun-05 18:24 
GeneralRe: Please give me a fever.... Pin
Saif_S7-Jun-05 4:51
Saif_S7-Jun-05 4:51 
GeneralRe: Please give me a fever.... Pin
Christian Graus7-Jun-05 11:56
protectorChristian Graus7-Jun-05 11:56 
Generaltext box Pin
webhay6-Jun-05 6:05
webhay6-Jun-05 6:05 
GeneralRe: text box Pin
Leyu6-Jun-05 6:24
Leyu6-Jun-05 6:24 

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.