Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
SuggestionRe: C# and USB IR camera Pin
DaveAuld30-Aug-11 6:34
professionalDaveAuld30-Aug-11 6:34 
QuestionPer Pixel Access in C# winforms Pin
Thomas.D Williams30-Aug-11 2:17
Thomas.D Williams30-Aug-11 2:17 
AnswerRe: Per Pixel Access in C# winforms Pin
lukeer30-Aug-11 4:28
lukeer30-Aug-11 4:28 
GeneralRe: Per Pixel Access in C# winforms Pin
Thomas.D Williams30-Aug-11 5:26
Thomas.D Williams30-Aug-11 5:26 
GeneralRe: Per Pixel Access in C# winforms Pin
BobJanova30-Aug-11 7:04
BobJanova30-Aug-11 7:04 
GeneralRe: Per Pixel Access in C# winforms Pin
Thomas.D Williams30-Aug-11 7:13
Thomas.D Williams30-Aug-11 7:13 
GeneralRe: Per Pixel Access in C# winforms Pin
Pete O'Hanlon30-Aug-11 7:20
mvePete O'Hanlon30-Aug-11 7:20 
GeneralRe: Per Pixel Access in C# winforms Pin
Thomas.D Williams30-Aug-11 11:17
Thomas.D Williams30-Aug-11 11:17 
GeneralRe: Per Pixel Access in C# winforms Pin
BobJanova30-Aug-11 7:38
BobJanova30-Aug-11 7:38 
GeneralRe: Per Pixel Access in C# winforms Pin
Thomas.D Williams30-Aug-11 11:12
Thomas.D Williams30-Aug-11 11:12 
GeneralRe: Per Pixel Access in C# winforms Pin
BobJanova30-Aug-11 23:02
BobJanova30-Aug-11 23:02 
GeneralRe: Per Pixel Access in C# winforms Pin
Thomas.D Williams30-Aug-11 23:12
Thomas.D Williams30-Aug-11 23:12 
AnswerRe: Per Pixel Access in C# winforms Pin
BobJanova30-Aug-11 4:36
BobJanova30-Aug-11 4:36 
GeneralRe: Per Pixel Access in C# winforms Pin
Thomas.D Williams30-Aug-11 5:30
Thomas.D Williams30-Aug-11 5:30 
QuestionThis collection already contains an address with scheme http. There can be at most one address per scheme in this collection in 3.5 Pin
nitin_ion29-Aug-11 21:33
nitin_ion29-Aug-11 21:33 
AnswerRe: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection in 3.5 Pin
dan!sh 29-Aug-11 22:56
professional dan!sh 29-Aug-11 22:56 
GeneralRe: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection in 3.5 Pin
nitin_ion29-Aug-11 23:06
nitin_ion29-Aug-11 23:06 
QuestionWCF Rest Services with JavaScript/Jquery Pin
pravin_mun29-Aug-11 15:48
pravin_mun29-Aug-11 15:48 
AnswerRe: WCF Rest Services with JavaScript/Jquery Pin
V.30-Aug-11 2:22
professionalV.30-Aug-11 2:22 
It's been a while, but it should be something like this I think.

//Read the information from the fields and pass it via Ajax to a webmethod.
//JQuery will block the raising of the click event of the button.
//1.	Get all the parameters from the form.
var val1 = document.getElementById('clientid1').value;
var val2 = document.getElementById('clientid2').value;
var val3 = document.getElementById('clientid3').selectedIndex;
var val4 = document.getElementById('clientid4').options[index].innerHTML;
var val5 = document.getElementById('clientid5').innerHTML;

//2. put the parameters in a key/value pair like string
var datapropt = "{'val1':'" + val1 + "'";
datapropt += ", 'val2':'" + val2 + "'";
datapropt += ", 'val3':'" + val3 + "'";
datapropt += ", 'val4':'" + val4 + "'}";

//create function that will call the server side WebMethod
$.ajax({
	type: "POST",
	url: "StaticWebMethods.asmx/TheWebMethodName",
	data: datapropt,
	//cache: false,
	contentType: "application/json; charset=utf-8",
	dataType: "json",
	success: function (result) {
	//alert(result + "");
	location.reload(true);
	}
});


the function in the StaticWebMethods.asmxfile would look similar to this:
[WebMethod]
public static bool TheWebMethodName(int val1, string val2, string val3, string val4){
//method body here
}


Hope this helps.
V.

Questionc# generate a ctrl from an xml or from a DB Pin
bysystems29-Aug-11 12:45
bysystems29-Aug-11 12:45 
AnswerRe: c# generate a ctrl from an xml or from a DB Pin
PIEBALDconsult29-Aug-11 15:05
mvePIEBALDconsult29-Aug-11 15:05 
GeneralRe: c# generate a ctrl from an xml or from a DB Pin
bysystems29-Aug-11 15:20
bysystems29-Aug-11 15:20 
GeneralRe: c# generate a ctrl from an xml or from a DB Pin
David C# Hobbyist.29-Aug-11 15:41
professionalDavid C# Hobbyist.29-Aug-11 15:41 
GeneralRe: c# generate a ctrl from an xml or from a DB Pin
PIEBALDconsult29-Aug-11 18:04
mvePIEBALDconsult29-Aug-11 18:04 
AnswerRe: c# generate a ctrl from an xml or from a DB [modified] Pin
BillWoodruff29-Aug-11 18:20
professionalBillWoodruff29-Aug-11 18:20 

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.