Search

You searched for the word(s): userid:643624

Matching Posts

  • datetime formatting questions

    Hello, Could anyone please tell me what datetime format are the following dates: 2004-05-13T23:00:00.000Z 2004-05-13T23:30:00.000Z orginal code: + "<cal:dtstart dt:dt=\"dateTime.tz\">2004-05-18T23:00:00.000Z</cal:dtstart>" + "<cal:dtend dt:dt=\"dateTime.tz\">2004-05-18T23:30:00.000Z</cal:dtend>" I found a sample code on how to use WebDav at: http://msdn.microsoft.com/en-us/library/ms877306(EXCHG.65).aspx and it works very well except
    Posted to Getting Started (Forum) by netNewBee on 10/13/2009
  • Re: how to databind List<employee> to a listbox?

    PeteNet, Thank you very much for your help. I really appreciated it! I like your suggestions above. Just one thing, the XML file is provided to us by our clients. We can not change the format of the XML file. Is there anyway to make the current file work? Thanks again for all your help.
    Posted to Data Presentation Controls (Forum) by netNewBee on 8/12/2009
  • Re: how to databind List<employee> to a listbox?

    Peter, Thanks for all your help! I modified your LINQ query to work with my xml file and now it works. I simply changed emp.Attribute("lname").Value to emp.Element("lname").Value
    Posted to Data Presentation Controls (Forum) by netNewBee on 8/12/2009
  • how to databind List<employee> to a listbox?

    Hello, Does anyone know how can I bind a list of employee objects to a listbox control? The List<employee> contains two fields I want to bind to the listbox control: empoyee_name and employee_id. Any suggestions or reference is greatly appreciated! Thank you very much for your help in advance.
    Posted to Data Presentation Controls (Forum) by netNewBee on 8/11/2009
  • Re: how to databind List<employee> to a listbox?

    Hi All, Thanks for all the help. I tried your suggestions and did not work. The error message is "System.Web.HttpException was unhandled by user code Message="DataBinding: 'System.Xml.Linq.XElement' does not contain a property with the name 'lname'." Below is my code: string employeesXMLfile = Server.MapPath("employees.xml"); XElement employees = null; employees = XElement.Load(employeesXMLfile); var allEmployees = from emp in employees.Descendants("employee"
    Posted to Data Presentation Controls (Forum) by netNewBee on 8/11/2009
  • Re: how to databind List<employee> to a listbox?

    There is lname in my xml file. Am I missing other things. Please see below: <?xml version="1.0" encoding="utf-8"?> <Employees> <Employee> <lname>Smith</lname> <emp_id>25</emp_id> </Employee> <Employee> <lname>Jones</lname> <emp_id>6</emp_id> </Employee> <Employee> <lname>Baer</lname> <emp_id>4</emp_id> </Employee> </Employees>
    Posted to Data Presentation Controls (Forum) by netNewBee on 8/11/2009
  • accessing data stored an Application variable

    Hello, Can you please please tell me what is wrong with the following statement. I keeps giving me this error: "An object reference is required for the non-static field, method, or property 'System.Web.HttpApplication.Application.get'" This is my code: public static void getInfo() { Dictionary<string,DateTime> info = (Dictionary<string,DateTime>) HttpApplication.Application["XYZ"]; }
    Posted to State Management (Forum) by netNewBee on 7/13/2009
  • Re: accessing data stored an Application variable

    I answered my own question. The error went away when I did this: HttpContext.Current.Application["XYZ"];
    Posted to State Management (Forum) by netNewBee on 7/13/2009
  • Re: assigning value to a session variable

    OK. I am going to try it out with the object saved in the Application variable. Thanks for all your help!
    Posted to State Management (Forum) by netNewBee on 7/10/2009
  • Re: assigning value to a session variable

    All, Thank you very much for all your input. You are right about the Session Object at the Application level. When I changed to use Application, it worked. However, I found out that Application variables do not work in a web farm environment, which is what I am working with(multiple servers). This is what I would like to accomplish, hope you guys can help: On my website, I would like to send notification emails out when an exception occurred. The logic is that if it is new error, then send email
    Posted to State Management (Forum) by netNewBee on 7/9/2009
Page 1 of 10 (99 items) 1 2 3 4 5 Next > ... Last »