Hi, I'm given a couple of ascx files along with some .js files which would let me in using them in my web project for creating a header and footer. How do I do this. I've never used ascx files before like this. Also, I want to get an overview about how many different ways of creating and using server controls. any ideas would be appreciated. Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~ Shravan Addaypally .NET Apps Developer BellSouth Billing Inc. Birmingham, AL 35205 ~~~~~~~~~~~~~~~~~~~~~~~~
User 1124279
Posts
-
.ascx files -
Very Urgent Please -- Overloading ++ operator doesn't function as intended.Hi, I'm overloading the ++ operator for my Day Class. I have the implementation for this overload within my class and when I tested this in the debug mode, my Day which is supposed to increment as I've coded doesn't increse. It basically gives out an object of type Day itself with the next date. Here is my code. Any help with this would be appreciated. Please do help me out with this.
public static Day operator ++(Day d) { Day nxtDay; int nxtDate; //GregorianCalendar gc = new GregorianCalendar(); try { nxtDate = d._dayofmonth + 1; nxtDate += 1 ; nxtDay = new Day(new DateTime(d.Year, d.Month, nxtDate)); } catch (Exception e) { e.GetType(); int nxtDayMonth = (d.Month == 12) ? 1 : d.Month + 1; int nxtDayYear = (nxtDayMonth == 1)? d.Year + 1: d.Year; nxtDay = new Day(gc.ToDateTime(nxtDayYear,nxtDayMonth,1,1,1,1,1)); } return nxtDay; }
Thanks ~~~~~~~~~~~~~~~~~~~~~~~~ Shravan Addaypally .NET Apps Developer BellSouth Billing Inc. Birmingham, AL 35205 ~~~~~~~~~~~~~~~~~~~~~~~~ -
Connection with access 2003Hi, You could look at the connection string for connecting to an Access DB at www.conncectionstrings.com. Also, you would atleast need a book if you are to get a thorough explination of working with Databases and ASP.NET. hth. Regards ~~~~~~~~~~~~~~~~~~~~~~~~ Shravan Addaypally .NET Apps Developer BellSouth Billing Inc. Birmingham, AL 35205 ~~~~~~~~~~~~~~~~~~~~~~~~
-
how to loop through table?Hi, You could do this using foreach loop as DataTable has a collection of DataRows. To do this... foreach (DataRow dr in DataSet1.Tables["myTable"].Rows) { //To access the values in each row use 'dr' as this is the DataRow in //subject to each loop. } Hope that helps. ~~~~~~~~~~~~~~~~~~~~~~~~ Shravan Addaypally .NET Apps Developer BellSouth Billing Inc. Birmingham, AL 35205 ~~~~~~~~~~~~~~~~~~~~~~~~
-
GetDayOfYear( ) method.Hi, Just wondering if GetDayOfYear method of the Calendar Class returns something which is equivalent to the Julian date?? Please do suggest. Thanks, ~~~~~~~~~~~~~~~~~~~~~~~~ Shravan Addaypally .NET Apps Developer BellSouth Billing Inc. Birmingham, AL 35205 ~~~~~~~~~~~~~~~~~~~~~~~~
-
Help needed with building a Scheduling logic represented using DataGrid.Hi, I'm working on a page that generates a schedule for each month. The schedule is viewed using a DataGrid and I intend to build the schedule using a DataSet with a table adding rows to it sequentially for each day (The values in the rows are calculated based upon Business rules). I build this schedule sequentially like...I'm represting a pseudo code kinda code here. DataSet dtBPSchedule = new DataSet(). DataTable dtScheduler = new DataTable(); dtBPSchedule.Tables.Add(dtScheduler); Foreach day in CurrentMonth.Days { get the julian day of the day get the day of week of the current day. check whether day is a holiday. DataRow drBPRow = new DataRow(). Add all the column values based on rules into this Row and next Add the row into the table. etc etc... } dgBPSchedule.DataSource = dtBPSchedule.Tables["dtScheduler"]; dgBPSchedule.DataBind(); I wanted to use a Calendar web server control (by hiding it) to build this kinda logic but not sure whether this could be used or not. I'm sure someone wud have worked on this kinda stuff before and would appreciate if you could throw some light on this. Simply putting, I want to use the Calendar as a Class with properties Month and Days. Days should be something like a collection allowing the looping logic I specified above.I've been working on this almost for the whole day and got no where near to understanding how to do this. Please, I would greatly appreciate if I can get some help with this. Thanks a lot. ~~~~~~~~~~~~~~~~~~~~~~~~ Shravan Addaypally .NET Apps Developer BellSouth Billing Inc. Birmingham, AL 35205 ~~~~~~~~~~~~~~~~~~~~~~~~