Click here to Skip to main content
15,896,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: Not eble to call AJAX method.... Pin
Guffa27-Mar-06 2:25
Guffa27-Mar-06 2:25 
GeneralRe: Not eble to call AJAX method.... Pin
Jax_qqq27-Mar-06 16:47
Jax_qqq27-Mar-06 16:47 
GeneralRe: Not eble to call AJAX method.... Pin
Guffa30-Mar-06 0:45
Guffa30-Mar-06 0:45 
GeneralRe: Not eble to call AJAX method.... Pin
nicck0728-Mar-06 3:35
nicck0728-Mar-06 3:35 
GeneralRe: Not eble to call AJAX method.... Pin
Guffa30-Mar-06 0:46
Guffa30-Mar-06 0:46 
AnswerRe: Not eble to call AJAX method.... Pin
Jax_qqq30-Mar-06 17:59
Jax_qqq30-Mar-06 17:59 
QuestionPost XML data via POST to HTTPS site Pin
Soumya Mulukutla26-Mar-06 20:50
Soumya Mulukutla26-Mar-06 20:50 
QuestionAdding controls to a windows from from XML Pin
NewbieDude26-Mar-06 20:22
NewbieDude26-Mar-06 20:22 
Hey howzit,

i have a method below that loops through an XML document and adds textbox and checkbox controls to a panel based on the xml content. However the performance is not great all at...one can see all the controls are they are being displayed and it looks sloppy...is there not a better way of doing this?

public void DeSerialize(XmlDocument xmlDoc, int currentPage)
{
XmlNode rootNode = xmlDoc.DocumentElement;

foreach (XmlNode pageNode in rootNode.ChildNodes)
{
XmlAttributeCollection acPage;
acPage = pageNode.Attributes;
int pg = Convert.ToInt32(Convert.ToDouble(acPage.Item(0).InnerText));

if (pg==currentPage)
{
foreach (XmlNode fieldNode in pageNode.ChildNodes)
{
if (fieldNode["Type"].InnerText == "TextBox")
{
//create and add textbox to windows.forms.controls
}
else if (fieldNode["Type"].InnerText == "CheckBox")
{
//create and add checkbox to windows.forms.controls
}
}
}
}
}
AnswerRe: Adding controls to a windows from from XML Pin
J4amieC26-Mar-06 20:55
J4amieC26-Mar-06 20:55 
AnswerRe: Adding controls to a windows from from XML Pin
Nicholas Butler26-Mar-06 21:45
sitebuilderNicholas Butler26-Mar-06 21:45 
QuestionFile download Pin
SreekanthJ26-Mar-06 19:58
SreekanthJ26-Mar-06 19:58 
AnswerRe: File download Pin
leppie26-Mar-06 20:11
leppie26-Mar-06 20:11 
GeneralRe: File download Pin
SreekanthJ26-Mar-06 21:56
SreekanthJ26-Mar-06 21:56 
AnswerRe: File download Pin
HakunaMatada26-Mar-06 22:03
HakunaMatada26-Mar-06 22:03 
Questionhow to open existing ppt on winform.. Pin
sam_g126-Mar-06 19:56
sam_g126-Mar-06 19:56 
AnswerRe: how to open existing ppt on winform.. Pin
HakunaMatada27-Mar-06 0:02
HakunaMatada27-Mar-06 0:02 
GeneralRe: how to open existing ppt on winform.. Pin
sam_g127-Mar-06 1:43
sam_g127-Mar-06 1:43 
QuestionCapture system Events Pin
Jijo BP26-Mar-06 19:21
Jijo BP26-Mar-06 19:21 
AnswerRe: Capture system Events Pin
HakunaMatada26-Mar-06 22:09
HakunaMatada26-Mar-06 22:09 
Questionclearing the serialprot buffer size in runtime Pin
ASGuru26-Mar-06 18:57
ASGuru26-Mar-06 18:57 
Questionimage doesn`t fit to screen Pin
valiovalio26-Mar-06 18:53
valiovalio26-Mar-06 18:53 
GeneralRe: image doesn`t fit to screen Pin
Guffa26-Mar-06 19:30
Guffa26-Mar-06 19:30 
GeneralRe: image doesn`t fit to screen Pin
valiovalio26-Mar-06 20:17
valiovalio26-Mar-06 20:17 
GeneralRe: image doesn`t fit to screen Pin
Guffa27-Mar-06 0:14
Guffa27-Mar-06 0:14 
GeneralRe: image doesn`t fit to screen Pin
valiovalio27-Mar-06 21:46
valiovalio27-Mar-06 21:46 

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.