Click here to Skip to main content
15,909,546 members
Home / Discussions / C#
   

C#

 
GeneralRe: Passing Generic List to other forms Pin
Pete O'Hanlon15-Nov-11 10:17
mvePete O'Hanlon15-Nov-11 10:17 
GeneralRe: Passing Generic List to other forms Pin
Kendall Bodkin15-Nov-11 10:24
Kendall Bodkin15-Nov-11 10:24 
QuestionNext Linq Question Pin
Kevin Marois14-Nov-11 12:44
professionalKevin Marois14-Nov-11 12:44 
AnswerRe: Next Linq Question Pin
BobJanova15-Nov-11 1:00
BobJanova15-Nov-11 1:00 
AnswerRe: Next Linq Question Pin
NeillJam17-Nov-11 22:50
NeillJam17-Nov-11 22:50 
QuestionLinq To Objects - How To Create Nested Objects Pin
Kevin Marois14-Nov-11 12:18
professionalKevin Marois14-Nov-11 12:18 
AnswerRe: Linq To Objects - How To Create Nested Objects Pin
BillWoodruff14-Nov-11 21:52
professionalBillWoodruff14-Nov-11 21:52 
QuestionConvert XslTransform to XslCompiledTransform Pin
Melanie Peterson14-Nov-11 6:22
Melanie Peterson14-Nov-11 6:22 
Hi - I just converted an ASP.Net web app from 2.0 to 4.0 and the XslTransform code that I inherited no longer works in 4.0. I'm told I need to change the code to use XslCompiledTransform. Fine - but I can't figure out how to get XslCompiledTransform to do exactly what I need it to do. I have an XSL file in my project. I do not have an XML or HTML file. The old code read as follows:
C#
using (DataSet data = DataGateway.getAbsence(TripNum)) 
{ 
  data.DataSetName = "Absence"; 
  data.Tables[0].TableName = "Employee"; 
  XmlDataDocument xmldoc = new XmlDataDocument(Data); 
  XslTransform xslt = new XslTransform; 
  string xsltfile = "myfile.xsl"; 
  xslt.Load(xsltfile); 
  TextWriter writer = new StringWriter(); 
  xslt.Transform(xmldoc, null, writer, null); 
  MailMessage mail = new MailMessage(); 
  mail.Body = writer.ToString(); 
  mail.From = "me"; 
  mail.To = "you"; 
  //more code to send mail...... 
}

I've tried to rewrite this by substituting and XsltCompiledTransform object for the XslTransform object, and an XmlWriter object for the TextWriter object, but the xslt.Transform line complains about my using an XmlDataDocument as input. It suggests an XmlReader instead, but I don't know how to pass the data from my DataSet into an XmlReader. Or perhaps XslCompiledTransform is not the way to go Does anyone know?

Thanks!
QuestionUDP send /recieve problem... well mainly recieve Pin
Alberto Bar-Noy14-Nov-11 3:58
Alberto Bar-Noy14-Nov-11 3:58 
AnswerRe: UDP send /recieve problem... well mainly recieve Pin
Luc Pattyn14-Nov-11 4:45
sitebuilderLuc Pattyn14-Nov-11 4:45 
GeneralRe: UDP send /recieve problem... well mainly recieve Pin
Alberto Bar-Noy14-Nov-11 4:49
Alberto Bar-Noy14-Nov-11 4:49 
AnswerRe: UDP send /recieve problem... well mainly recieve Pin
Luc Pattyn14-Nov-11 5:14
sitebuilderLuc Pattyn14-Nov-11 5:14 
GeneralRe: UDP send /recieve problem... well mainly recieve Pin
Alberto Bar-Noy14-Nov-11 5:25
Alberto Bar-Noy14-Nov-11 5:25 
GeneralRe: UDP send /recieve problem... well mainly recieve Pin
Rob Philpott14-Nov-11 5:34
Rob Philpott14-Nov-11 5:34 
GeneralRe: UDP send /recieve problem... well mainly recieve Pin
Alberto Bar-Noy14-Nov-11 5:36
Alberto Bar-Noy14-Nov-11 5:36 
GeneralRe: UDP send /recieve problem... well mainly recieve Pin
Rob Philpott14-Nov-11 5:46
Rob Philpott14-Nov-11 5:46 
AnswerRe: UDP send /recieve problem... well mainly recieve Pin
Luc Pattyn14-Nov-11 5:35
sitebuilderLuc Pattyn14-Nov-11 5:35 
GeneralRe: UDP send /recieve problem... well mainly recieve Pin
Alberto Bar-Noy14-Nov-11 5:36
Alberto Bar-Noy14-Nov-11 5:36 
AnswerRe: UDP send /recieve problem... well mainly recieve Pin
Alberto Bar-Noy14-Nov-11 5:40
Alberto Bar-Noy14-Nov-11 5:40 
Questiondistribute stored procedure files Pin
Marcel Vreuls (www.agentbase.nl)14-Nov-11 2:30
Marcel Vreuls (www.agentbase.nl)14-Nov-11 2:30 
AnswerRe: distribute stored procedure files Pin
SilimSayo14-Nov-11 10:42
SilimSayo14-Nov-11 10:42 
QuestionMouse move (hover) over an Image with Graphics drawings Pin
eyalbi00714-Nov-11 2:12
eyalbi00714-Nov-11 2:12 
AnswerRe: Mouse move (hover) over an Image with Graphics drawings Pin
Luc Pattyn14-Nov-11 2:43
sitebuilderLuc Pattyn14-Nov-11 2:43 
QuestionClass for Serail Port Comms Pin
KeithF14-Nov-11 1:24
KeithF14-Nov-11 1:24 
AnswerRe: Class for Serail Port Comms Pin
Luc Pattyn14-Nov-11 1:48
sitebuilderLuc Pattyn14-Nov-11 1:48 

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.