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

C#

 
QuestionConvert a Jpeg or png or gif image in Bitmap Pin
Sasuko27-Mar-06 22:03
Sasuko27-Mar-06 22:03 
GeneralRe: Convert a Jpeg or png or gif image in Bitmap Pin
Guffa27-Mar-06 22:23
Guffa27-Mar-06 22:23 
GeneralRe: Convert a Jpeg or png or gif image in Bitmap Pin
Sasuko27-Mar-06 22:43
Sasuko27-Mar-06 22:43 
AnswerRe: Convert a Jpeg or png or gif image in Bitmap Pin
Guffa28-Mar-06 1:02
Guffa28-Mar-06 1:02 
GeneralRe: Convert a Jpeg or png or gif image in Bitmap Pin
Sasuko28-Mar-06 1:55
Sasuko28-Mar-06 1:55 
GeneralRe: Convert a Jpeg or png or gif image in Bitmap Pin
Dan Neely28-Mar-06 2:04
Dan Neely28-Mar-06 2:04 
QuestionGenerate documentation from XML? Pin
Dominik Reichl27-Mar-06 21:00
Dominik Reichl27-Mar-06 21:00 
QuestionPassing an integer argument from C# to a javascript function Pin
KaKa'27-Mar-06 20:58
KaKa'27-Mar-06 20:58 
Hi,

How do we pass an integer argument from C# into a javascript function?
I declare an integer variable first, then I pass it into the javascript function.
But the javascript code didnt execute correctly.

//First, an integer variable is declared
int numofItems;

// Returns the Javascript code to attach the context menu to a HTML element
public string GetMenuReference()
{
return String.Format("return __showContextMenu({0},numofItems);", Controls[0].ClientID);
}

//Then the Javascript is called when the oncontextmenu event happens
ctl1.Attributes["oncontextmenu"] = GetMenuReference();

Initially the javascript function has the {0} argument only and it worked fine. But when I added one more integer argument, it doesnt work. What is the correct way to pass an int argument ?

GeneralRe: Passing an integer argument from C# to a javascript function Pin
Guffa27-Mar-06 22:24
Guffa27-Mar-06 22:24 
QuestionGet this compile error "Could not copy temporary files to the output directory." Pin
Tony_Joh27-Mar-06 20:34
Tony_Joh27-Mar-06 20:34 
AnswerRe: Get this compile error "Could not copy temporary files to the output directory." Pin
Maqsood Ahmed27-Mar-06 20:57
Maqsood Ahmed27-Mar-06 20:57 
GeneralRe: Get this compile error "Could not copy temporary files to the output directory." Pin
nicck0728-Mar-06 3:14
nicck0728-Mar-06 3:14 
QuestionButton without stealing focus of any application ? Pin
Christian Kroes27-Mar-06 20:21
Christian Kroes27-Mar-06 20:21 
AnswerRe: Button without stealing focus of any application ? Pin
mav.northwind27-Mar-06 20:53
mav.northwind27-Mar-06 20:53 
QuestionI want to know which user logged in a domain Pin
indiaone27-Mar-06 19:48
indiaone27-Mar-06 19:48 
QuestionCatching a error thrown by someone elses dll Pin
nosherwan27-Mar-06 18:47
nosherwan27-Mar-06 18:47 
AnswerRe: Catching a error thrown by someone elses dll Pin
CWIZO27-Mar-06 20:57
CWIZO27-Mar-06 20:57 
AnswerRe: Catching a error thrown by someone elses dll Pin
Guffa27-Mar-06 22:30
Guffa27-Mar-06 22:30 
GeneralRe: Catching a error thrown by someone elses dll Pin
nosherwan29-Mar-06 11:47
nosherwan29-Mar-06 11:47 
QuestionErrorProvider control bugs? Pin
Mridang Agarwalla27-Mar-06 18:16
Mridang Agarwalla27-Mar-06 18:16 
AnswerRe: ErrorProvider control bugs? Pin
Luis Alonso Ramos27-Mar-06 18:20
Luis Alonso Ramos27-Mar-06 18:20 
QuestionNumeric UpDown Pin
Mridang Agarwalla27-Mar-06 18:10
Mridang Agarwalla27-Mar-06 18:10 
AnswerRe: Numeric UpDown Pin
Luis Alonso Ramos27-Mar-06 18:26
Luis Alonso Ramos27-Mar-06 18:26 
GeneralRe: Numeric UpDown Pin
nicck0728-Mar-06 3:24
nicck0728-Mar-06 3:24 
QuestionHow to restore Backup file from remote PC to SQL Server? Pin
Sachin Gedam27-Mar-06 17:36
Sachin Gedam27-Mar-06 17:36 

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.