|
Hi,
First off, I'm a new programmer, currently working on 70-528. This isn't for a class project, just more about curiousity, then anything else. I came upon the Calendar control and was wondering, in theory is something like this possible:
Use a textfile to store Datetimes/Usernames.
Have the ASP.net website load these Datetimes/Usernames into a Hashtable, or other suitable storage device. Load the Datetimes/Usernames into a Calendar control, so that each entry has 3 parts: Date puts the entry into a certain date on the Calendar. Time puts in into a <listbox> or other similar control on each date. Username puts either the person's username at that hour, and disables it, OR puts "Available" at the hour, and enables it. Users of the website would log-in to the website, and could select the "Available" entries, which would then be changed to their username and disabled. Its disabled, so a user couldn't 'take' someone elses date-time, in the system. The websites administrator would would need to delete entries. A user "Could" convert that user's entries to "Available" but couldn't change other users entries.
example:
Monday Tuesday Wednesday
8am Available SmithB JonesJ
9am BrownS Available Available
10am BrownS Available SmithB
11am Available Available Available
12am Available JonesJ Available
...
User BrownS, could change Monday-9am to 'Available' and change Monday-11am to "BrownS". But, couldn't change Tuesday-8am, or Wednesday-8am, etc.
-----------------------------------------------------------------------
Has anyone done anything similar, I'll admit I've not delved deeply into your site yet, I did see a couple calendar controls that people have created...I don't need a definite solution, just some suggestions on how would be best to tackle this, what controls, or strategies would be the most robust/easy...
Thanks,
Brad.
modified on Friday, July 3, 2009 2:46 PM
|
|
|
|
|
Hi,
I figured I'd use StreamReader to load the data from the textfile to the 'hashtable', or maybe straight into the calendar.
When the user closes the website, or make changes and saves the changes, the changed values would be written to the textfile.
Thanks,
Brad.
|
|
|
|
|
hi friends i want to draw rectangle in asp.net ..in middle of the form..but is not getting..plzzzzzzz help me...
|
|
|
|
|
It has nothing to do with ASP.Net.
Its a simple HTML task. w3schools [^]is a great place to start learning HTML.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi. I want to implement the xml feed from Twitter on my site, but I can't get it working.
I think the problem is related to the XPath, because the datalist doesn’t show any entries at all.
MidText is btw just a function that crops the text to a certain amount of characters, and replaces some characters if necessary.
Any suggestions on what I’m doing wrong would be most appreciated.
<asp:XmlDataSource ID="XmlDataSourceTwitter" XPath="/feed/entry[position() < 9]"
runat="server" DataFile="http://search.twitter.com/search.atom?lang=no&q=mysearch">
</asp:XmlDataSource>
<asp:DataList ID="TwitterFeed" runat="server" DataSourceID="XmlDataSourceTwitter">
<ItemTemplate>
<%#(DateTime.Parse(XPath("published").ToString())).ToString("d", new System.Globalization.CultureInfo("nb-NO", true))%>
<%#MidText(XPath("title").ToString(), 0, 55)%>
</ItemTemplate>
</asp:DataList>
modified on Friday, July 3, 2009 2:27 PM
|
|
|
|
|
well your XPath is broken for sure. do you know anything about XPath ? XPath("//published") may work. The // forces it to search all sub nodes.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi,
I want to display a text, getting from database, into a DropdownList using text property.
My Code::
SqlDataReader drd;
if (drd.Read())
{
drpcompname.Text = drd.GetValue(0).ToString();
}
But It Display an error::
'drpcompname' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
Please help me.
Thanks!
Pankaj Singh
|
|
|
|
|
You should use databinding
ddl.DataTextField = "...";
ddl.DataValueField = "...";
ddl.DataSource = drd;
ddl.DataBind();
only two letters away from being an asset
|
|
|
|
|
|
Muruvet Kaplan wrote: can i use solr in windows application project
This is ASP.Net forum. How is it related to it?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi,
solr search engine is developed from lucene.net(library for windows applications) search engine but it is for asp.net applications. i want to learn whether it can be used in windows application or not.
mkn
|
|
|
|
|
Then go ask at Lucene, not here. Don't ask us to do your work
only two letters away from being an asset
|
|
|
|
|
Hi
Let me know the detailed information about statemanagement..
Provide me the best Site Link...with some good examples...
Thanks in advance..
|
|
|
|
|
katarukoti wrote: Let me know the detailed information about statemanagement..
I googled and found these [^]many articles.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
Yes, but what about setting?
Thanks & Regards:
Himanshu Thawait
|
|
|
|
|
|
Whats the benefit of the Microsoft.Practices.EnterpriseLibrary?
and whats the demerits of these DLL's is this secure more than simple database connectivity
Please help me Thanks..
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Piyush Vardhan Singh wrote: Whats the benefit of the Microsoft.Practices.EnterpriseLibrary?
Enterprise Libarary is a collection of Wrapper around the usual .Net classes.
This allows you to do by writting less piece of code, as many of the core/basic functionalities are handled by EL itself.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
if we are useing EnterpriseLibrary(data base) and not properly close all the object then it create possibility of mummery likes Problem. or effect on the website process and speed.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Piyush Vardhan Singh wrote: not properly close all the object
Have you experienced this?
If you look through the source you can see heavy usage of using statements and implementation of the disposable pattern. If you are experiencing problems with open connections or objects not being disposed it is more likely to be caused by your code than the Enterprise Library.
only two letters away from being an asset
|
|
|
|
|
Manas Bhardwaj wrote: Wrapper around the usual .Net classes.
It is far from a "wrapper" around .NET classes
only two letters away from being an asset
|
|
|
|
|
"The Microsoft Enterprise Library is a collection of reusable software components (application blocks) designed to assist software developers with common enterprise development challenges." http://www.codeplex.com/entlib[^]
As it says, EntLib provides a package of code that covers common scenarios, like exception handling, logging, data access, etc. so you don't have to write it.
only two letters away from being an asset
|
|
|
|
|
It means when your project doesn't work, you can blame Microsoft's practices, not your own
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi,
I am creating a website using visual studio 2008 with framework 3.0 using vb.net,
In my page i have a textbox for which i have written server side textchanged event and the textbox is in updatepanel. In this event i am doing some calculations and setting focus to another textbox.
The Problem is that although it sets the focus to another textbox but does not allow me to type anything there. Cursor blinks in that textbox but i cannot type anything in it.
If anyone can pls tell me what am i doing wrong here and what is the solution for this.
Thanks,
|
|
|
|