Create An Array For Storing Dates?
Dec 16, 2010how i can create an array for storing dates.
View 5 Replieshow i can create an array for storing dates.
View 5 RepliesI am generating multi-series graphs with the date along the X-Axis. The problem is that not all of the series in the graph have the same dates in the date range. Meaning that if I choose 1 Feb through 30 Apr that one series may have data that starts at 1 Feb but only goes through the end of March but another series may have data for the entire date range. This skews the charts I need to create. Go, given the date range taken at the begining of the query I'd like to generate a list of dates and populate the data to be graphed, padding those series with 0's for those dates that have no data.
View 3 RepliesI've a Dictionary object created in which i keep adding a key value pair.The key value pair is of type "object"The value part contains date in this format "2010-11-17T08:51:51-05:00". This dictionary object has an array of date stored in this format.Can someone out in converting this to a right date format and then find the latest date of the entire lot.
View 2 Repliesi want to create a table for storing email like hotmail
I have 2 idea:
1-create table for for all user(user 1 has its table and user 2 also has its table)
2-create one table for all user and stor the email text in the field that used for email text and seperate the text by character like(, or - or ........)
I've created a website that allows users to register, log in, create tasks, be added to tasks. I want to the user to be able to add hours to these tasks, for a summary page that will contain a chart. I want to store all previous hours worked on the task so that the user will be able to view a chart on progress of the tasks? What would be the best way to go about implementing this? I'm using VB.
View 12 RepliesI am trying to create a cookie for storing Username and Password.
This is so far I am :
[Code]....
But I am getting error :
[Code]....
I have hosted a website in Client's Server.
One of the functionality of the site is to create a PDF File on a Specific Shared Path.
The Shared path is mentioned in the Web.Config File.
If the given shared path exists in the same machine then the PDF File is created and stored in the shared path.
If the Shared path exists in the other shared network System then the PDF is not created and not stored in the shared path.
I'm new in asp.net .... I want a tree view to the family member that stored on database.SQL serverÂ
I have 2 table
one for username password
and the second one for family member
contain member name and relation like wife , mother ..
how i can do that
2 table enough or I need more table?
If i have three textboxes in my vb.net webform.
Textbox1.text="Sumit"
Textbox2.text="4-Dec-2010"
Textbox3.text="1-Jan-2011"
I want if dates selected are in between textbox2 dates and textbox3 dates then textbox1.text="sumit" else textbox1.text="No dates"
First I am sorry if I am creating a thread in the wrong category as I am not sure which is the best suitable place for this question: I want to create a user defined data structure, which will be a 2 dimensional array such that each individual square of this 2-dimensional array will also store the score and the grades. ( Iam using VB.NET) More details: for example: There is an 2 dimensional array with 3 columns and 2 rows, I want to fill each of the (0,0);(0,1);(0,2) with their own score (Integer type) and grades (String Type). And this is same for the rest of the squares i.e. (1,0);(1,1);(1,2) and (2,0);(2,1);(2,2) After creating such custom data structure: "CustomArray", I should be able to create the instance of this custom data structure (which will be a class) and code something like this:
Dim objCustomArray as CustomArray
objCustomArray = New CustomArray
for i as Integer =0 to 3
objCustomArray(0,i).SetScore(1)
objCustomArray(0,i).SetGrade("Good")
Next
-------
for i as Integer =0 to 3
Dim myVal as Integer = objCustomArray(0,i).GetScore()
Dim myGrade as String = objCustomArray(0,i).gettGrade()
Next
-----
My brain doesn't seem to be working today. I googled around for this and just couldn't find it, which seems kind of strange since this is such a basic question that I can typically find out very quickly.
I'm trying to create an array of DateTime objects. I can't use a List.
DateTime[] dates
dates[0] = Convert.ToDateTime("12/01/2009");
dates[1] = DateTime.Now;
However, I get an error, stating use of unassigned local variable.
I've got a while loop that's doing some stuff, and what I want is for it to create a new array each time.
while(condition){
//do some stuff
//create an array x[]
//amend values in array
//save as new array each time until loop finished
}
Actually i need to store the comma separated values of different datatypes in an array using split.And then i hav to sort these values comparing zeroth position element of all rows.
I need some pointers to start on this.We are building a time off application where three instances of a calendar control will be displayed ( prev - current and next month) now users can click on various dates accross all three instances and then a count of number of days should be diaplyed in the parent textbox.
To begin with this, i started with adding the dates clicked by the user in Calendar2_SelectionChanged method into a list<> so that i can get the all dates user clicked and then add it to calander's selected dates collection. But this throws an e" object reference not set" error.
Is there anyother way to get all the dates that user click onthe calendar( note the dates doesn't get highlighed so seleteddates doesnt work)does anyone has a good example for this.
I need to know what would be the best choice of array to use given the following specifications. This array's size will be predermined upon the loading of the appication. All I want to do is be able to add values to this array and replace preexisting array items with new values without the array changing size. Someone suggested that I use a Dictionary Array Object? I would appreciate any suggestions.
View 3 Replies[Code]....
I have a webform that gives the user the option to submit 5 referrals. Currently I only have 1 checklistbox that gives the user a choice to select products of interest for all the referrals. I would like to add a checklistbox under each referral input field in case there are different product interest for each referral? So when the referral gets a confirmation email it contains the product of interest that is specific to that referral.
I have a method that returns an array of custom class objects that are created by parsing a text file. At the moment every time I use it I am rereading the file which isn't very efficient.
What I wat to do is create an array containing the objects when the page loads and store them in an array which can then be used later.
[Code]....
I thought I could create the static object using something like:
static Album myAlbums[] = readArray("Albums.txt");
but I am getting the following error:
A field initializer cannot reference the nonstatic field, method, or property 'B2M._Default.readArray(string)'
I am new to C# so this is probably something dumb. (Feel free to poke fun in my general direction if this is the case!)
How do I create an array of values from a drop down list?
View 2 Repliesi want to use a ajax calender extender in which when user clixcks on button caleder show only dates of current month not previous dates.i dont want to disable dates. i should not apper on current month calender. means it should start from 1 and end to 30 or 31
View 3 Repliesonce a user select an item from dropdownlist > Dates from DB are shown on calendar in pink color.
The problem now is when i want to select new dates the selected dates(in pink) become deselected .. I want them to stay selected so i can know which dates are already used .
[Code]....
I have scanned the web, and see things but nothing clear to me.
View 4 RepliesI have created an array ot GridView.
[Code]....
But system throw error: Object reference not set to an instance of an object.
I am trying to create a dynamic table that is being built based on the value of a search text box. The Table will have probably 6 columns of 20(max) rows.
My problem is I can't figure out how to return the data from the web-service to the JS function in a way that will allow me to extract the data that I need.
Here is the web-service method I have currently:
[code]....
I have a File Uploader in my ASP.NET application Using C#, we can upload any type like images, documents, pdf etc.
I m storing it in the Filesystem and having only the Name of the File in DB.My doubt is can we store the entire file, images in DB. State me Which is good practice and why we need to use it.
Either file System Storage or SQL DB Storage.
i have to date say in MM/DD/YYYY format "1/1/2010" and 1/30/2010". now i want to find dates which comes on monday. so out out will be 01/04/2010, 1/11/2010, 01/18/2010, 01/25/2010
View 2 RepliesI need a way to create a regular expression from a string or an array of domain names. for example string array = [URL]. Once I click save I would want to create a regular expression that would match all 3 with or without '.com' extension. Then Another task would be to pull this data out of regular expression and put it back into an array.
View 5 Replies