Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. princesszea

    The subreport 'Emp' could not be found at the specified location

    Hi, I’ve been searching for days and cannot find a solution. I have a RDLC sub report (VS2010) which Works fine in the environment/local mode, also works fine when I deploy to our Development server. However, when I deploy to the Production server, I get the following error. The subreport...
  2. princesszea

    Extracting month from date using Linq

    Hi, I need help extracting the month from my date column. The date is returned in this format 2012-07-06. what I would like to do is filter the date based on the month only so return all the data for July etc. This is what I have string value =...
  3. princesszea

    Try Catch message

    Hi Jason, Thanks for your feedback. But the code above is just sample code and not the actual code i'm using as i never ever hard code paths as like you mentioned it will cause problems when deploying the project. Thank you so much for your help
  4. princesszea

    Try Catch message

    I have this code now and the logger is fine but using override i 'get cannot override because 'System.Web.UI.Control.Load' is not a function' public static class Logger { public static void Log(string message) { File.AppendAllText("C:\\MyLogFile.txt"...
  5. princesszea

    Try Catch message

    Thanks Jason, I seem to be having problems with the code in my ui code this line is giving me problems ----base.Load(e); Logger.Error-- Logger is not recognized my code added is below protected void Page_Load(object sender, EventArgs e) { if...
  6. princesszea

    Try Catch message

    Hi, I'm using asp.net and I have my try catch is in a class in my DAL which returns a datatable to my user control. If my datatable does not get returned and an error is thrown in my try catch, what i need to happen is display the error message inside that particular user control instead...
  7. princesszea

    Linq sum

    I have written the sql that brings back the correct data,is it possible for this query to be converted to linq select d.departmentId,round(cast(sum(score)as decimal(10,2))/(SELECT sum(score) FROM table),2) From table t --joins etc GROUP BY departmentId
  8. princesszea

    Linq sum

    Hi, I need to get the sum of employees scores for each department using linq. I only need scores from departments that have more than 20 employees but not sure Where to put the Where clause also not sure if the query below is correct var departmentquery = from row in dt.AsEnumerable()...
  9. princesszea

    Date Time issue

    Found the mistake it should be yyyy instead of YYYY
  10. princesszea

    Date Time issue

    I tried Convert.ToDateTime(DateTime.Now.ToString("dd/MM/YYYY") + " " + Session[ID].ToString().Substring(0,2) + ":" + Session[ID].ToString().Substring(2,2)); and got The string was not recognized as a valid DateTime. There is an unknown word starting at index 6
  11. princesszea

    Date Time issue

    Thanks mstrmage1768 I have managed to convert from a date to a string using (HHmm) the problem is converting back as i need the time to be displayed again but using { ID = ((RadTimePicker)cntrl).ID; if (Session[ID] != null) ((RadTimePicker)cntrl).SelectedDate...
  12. princesszea

    Date Time issue

    Hi, I have a datetime issue At the moment I get a time value as '16/09/2010 06:00:00' but in my database the time value is 600. Is there anyway I can convert the datetime in my application to be passed to the database as 600 which is 6 am or can i take care of the problem at the backend. I'm...
  13. princesszea

    Linq issue

    Hi, Using the code below can someone please show me how to cache my query below. var query = from row in dt.AsEnumerable() group row by row["name"] into grp let totalcount = dt.AsEnumerable().Count()...
  14. princesszea

    Best way to reuse a datable

    It's ok guys I manged to work it out I will let you know if i have any other problems with the method i intend to use.
  15. princesszea

    Best way to reuse a datable

    Hi, I have a method that returns a datatable and fills a grid. At the moment I do a round trip the database 3 times to get the same data that the fills the grid to do some calculations to fill some charts. Can someone please tell me how I can avoid going back to the database and reusing...
  16. princesszea

    Datatable and Dataset issue

    Thanks for the reply Not sure if is this is the best way but the code below is what I have done and it returns a data set. Before I was adding a data table to my control using uc.DataSource = GetMyDATA().Data; but this does not allow me to add a dataset. How do I pass the dataset to the...
  17. princesszea

    Datatable and Dataset issue

    Hi, I’m using the code below to get a datatable. I need to get 2 datatables using this method and I want to end up with one dataset. Can someone please tell me the best way to this. As I’m basically repeating the code below to and changing the stored procedure. Thanks DataTable...
  18. princesszea

    checkboxlsit problem

    I have sorted the problem by adding values = values.TrimEnd(',');
  19. princesszea

    checkboxlsit problem

    I used the code below but i get 2,3, but i need 2,3 [code] else if (cntrl.GetType() == typeof(CheckBoxList)) { if (!string.IsNullOrEmpty(((CheckBoxList)cntrl).Text)) { id = ((CheckBoxList)cntrl).ID...
  20. princesszea

    checkboxlsit problem

    Thanks Jason,

Part and Inventory Search

Back
Top