Click here to Skip to main content
15,904,877 members
Home / Discussions / C#
   

C#

 
AnswerRe: Serialize a collection of objects Pin
Henry Minute26-Aug-09 6:04
Henry Minute26-Aug-09 6:04 
GeneralRe: Serialize a collection of objects Pin
godfetish26-Aug-09 6:06
godfetish26-Aug-09 6:06 
GeneralRe: Serialize a collection of objects Pin
Henry Minute26-Aug-09 6:25
Henry Minute26-Aug-09 6:25 
GeneralRe: Serialize a collection of objects Pin
godfetish26-Aug-09 7:20
godfetish26-Aug-09 7:20 
GeneralRe: Serialize a collection of objects Pin
Henry Minute26-Aug-09 7:43
Henry Minute26-Aug-09 7:43 
GeneralRe: Serialize a collection of objects Pin
godfetish26-Aug-09 8:23
godfetish26-Aug-09 8:23 
GeneralRe: Serialize a collection of objects Pin
Henry Minute26-Aug-09 8:30
Henry Minute26-Aug-09 8:30 
QuestionUsing Cascading DropDown Pin
LucBite26-Aug-09 5:33
LucBite26-Aug-09 5:33 
I'm using a cascading dropdownlist using three tables. the code below works fine if my primary keys are numeric(integer) but my business rules want the primary keys to be alphernumeric(string).



[WebMethod]
public CascadingDropDownNameValue[] GetColors(string knownCategoryValues, string category)
{
StringDictionary kv = CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);
int colorId;
if (!kv.ContainsKey("Model") || !Int32.TryParse(kv["Model"],out colorId))
{
return null;
}

dsModelColorsTableAdapters.ModelColorsTableAdapter adapter = new dsModelColorsTableAdapters.ModelColorsTableAdapter();
dsModelColors.ModelColorsDataTable colors = adapter.GetColorsByModelId(colorId);

List<CascadingDropDownNameValue> values = new List<CascadingDropDownNameValue>();
foreach (DataRow dr in colors)
{
values.Add(new CascadingDropDownNameValue((string)dr["ColorName"], dr["ColorID"].ToString()));
}
return values.ToArray();
}

How do I use my string primary key using the above code?
Please help an ajax technology adict.

ML Lingwati

AnswerRe: Using Cascading DropDown Pin
Henry Minute26-Aug-09 6:05
Henry Minute26-Aug-09 6:05 
QuestionPrint the output of HTML Pin
Programm3r26-Aug-09 4:48
Programm3r26-Aug-09 4:48 
AnswerRe: Print the output of HTML Pin
N a v a n e e t h26-Aug-09 5:00
N a v a n e e t h26-Aug-09 5:00 
GeneralRe: Print the output of HTML Pin
Programm3r26-Aug-09 20:33
Programm3r26-Aug-09 20:33 
GeneralRe: Print the output of HTML Pin
N a v a n e e t h27-Aug-09 2:20
N a v a n e e t h27-Aug-09 2:20 
Questionchange Column type of a binded datagridview Pin
baranils26-Aug-09 4:40
baranils26-Aug-09 4:40 
Question[Solved] How to handle a null enum retrieved from web service [modified] Pin
Brian Triplett26-Aug-09 2:56
Brian Triplett26-Aug-09 2:56 
AnswerRe: How to handle a null enum retrieved from web service Pin
N a v a n e e t h26-Aug-09 5:04
N a v a n e e t h26-Aug-09 5:04 
GeneralRe: How to handle a null enum retrieved from web service Pin
Brian Triplett26-Aug-09 5:08
Brian Triplett26-Aug-09 5:08 
QuestionSuggestions on how to model a simple validation program Pin
neualex26-Aug-09 2:53
neualex26-Aug-09 2:53 
AnswerRe: Suggestions on how to model a simple validation program Pin
Super Lloyd26-Aug-09 3:12
Super Lloyd26-Aug-09 3:12 
GeneralRe: Suggestions on how to model a simple validation program Pin
neualex26-Aug-09 3:48
neualex26-Aug-09 3:48 
GeneralRe: Suggestions on how to model a simple validation program Pin
Super Lloyd26-Aug-09 3:56
Super Lloyd26-Aug-09 3:56 
AnswerRe: Suggestions on how to model a simple validation program Pin
N a v a n e e t h26-Aug-09 5:20
N a v a n e e t h26-Aug-09 5:20 
QuestionRe: Suggestions on how to model a simple validation program Pin
neualex26-Aug-09 17:49
neualex26-Aug-09 17:49 
AnswerRe: Suggestions on how to model a simple validation program Pin
N a v a n e e t h26-Aug-09 18:25
N a v a n e e t h26-Aug-09 18:25 
QuestionRe: Suggestions on how to model a simple validation program Pin
neualex27-Aug-09 1:56
neualex27-Aug-09 1:56 

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.