I have two tables Confirm_orders and Tentative Orders that have Start Date and End Date..
How can I implement these dates in calendar in my .aspx page?
All I want is the Start and end date (that represent event dates), to appear in calendar in the from of Red Color.. Those dates must be marked in the calendar, so that the Employee who logs in, can view those Tentative dates and can confirm those dates..
I'd start by figuring out what calendar control you want to use. There's a million of them, whether you want standard HTML, jQuery, YUI, MooTools, or whatever floats your boat.
ASP.NET has a very basic one built in. You can read about it here. It doesn't require any script or anything and you can manipulate the styles with server side code. The Microsoft AJAX Control Toolkit (Microsoft's more modern web control framework) also has a Calendar control.
Usually when I'm looking for a control that has a certain feature, in your case the ability to highlight certain dates, I find a tutorial or sample that indicates exactly how to do that first. Then I'm not tied down to a certain control. I searched around a bit and found this StackOverflow question that is very similar, using a jQuery based control. Once you read your data from your database, you can write the start and end dates out as JavaScript variables and follow the example from there.
You need to use a javascript DatePicker. There is no built-in C# HTML helper that displays a calendar.
Related
I am currently optimizing my site for search engines. It is mainly a database driven site. I am using C# on the back end but database content is loaded via jQuery ajax and a web service. Therefore, my database content is not in html at the point that the bots will crawl it. My site is kind of like an online supermarket format in that there are thousands of items in my database, users can load a single one of these or more onto the web page at a time and the page does not change significantly once items are loaded.
My question is, how (if at all) can I get my database contents indexed? I was thinking of having an anchor that links to an aspx page (eg called mydatabase) which loads all of my database items as a big html list. Then, using jQuery, I would make the anchor invisible to users. The data would still be accessible to users but not by this link, it would be accessed by using the jQuery interface I have created.
The thing is, I don't really want users to see this big, messy list - would google results show this page eg www.mysite.com/mydatabase.aspx as a search result? Also would google see this as "keyword rich" spam page? I have done quite a lot of research but found nothing on this. only instructions for php. Please help I'm not sure what to do and need to know the best way to go about this.
It's a shame you haven't taken the progressive enhancement approach as it would mean you would have started with a standard HTML output that's crawlable, and then adding the layering behaviour (AJAX) on top for the user experience.
Providing a single file (e.g. mydatabase.aspx) that lists all of your products in a list format provides no real value for the reason you gave - it would just be a big useless list. No editorial content relevance for each link etc.
You're much better off taking another look at your information architecture and trying ensure that each product is accessibile by it's own unique URL, then classifying the products into groups (result pages), being careful to think about pagination.
You can still make this act like a single-page application using AJAX, but you'd want to look into HTML5's History API to achieve this in a search engine friendly way.
I have a table that has all the meeting schedules. I need to display the schedules in a Calendar on an Aspx page.
The calendar should:
allow the users to export the meetings to outlook
display time in different time zone specified in a dropdown list box.
have security based on different users' level of access (a field in the user table)
display in day, week, month, year.
display meetings in different colors for different meeting committees.
I use C#, .net 2.0, jQuery. Is there any existing code/add on that has already done this?
Thanks,
Fullcalendar will provide some of that functionality. I had to implement a similar calendar, and I used FullCalendar to provide the base functionality.
Day Pilot (Light) is free and open source. It doesn't do everything you need but at least you can expand on it. http://www.daypilot.org/demo/Lite/
DevExpress' Scheduler control would do most of this for you. It's not free though. Demos can be found here.
I'm trying to create a very basic web site creator in C#. I already created the templates but have no idea how to get them in the program so the user can pick one and customize it. Is there a certain library I should look into? I've bee told this can be easily created in php but I'd rather not go down that route.
If using .NET you can use WebControl controls to display a preview of your templates and make the user decide which one he wants.
Or a list of templates and single WebControl that parse and display the HTML of the current selected list item (template) and then make the user select.
To edit, just a bunch of controls (one for each template placeholder) that updates the view of the WebControl.
In the top link you found how to do it.
P.S. Templates can be stored on XML, Plain Text, DB or any other mean.
Either store the templates as files on the web-side and use them as templates, or store them in a DB. Unless your app is not web-based, in which case the same advice pretty much applies.
I need to implement a form tamplate system. The form needs to be very dynamic. It will need:
Multiple textboxes
Multiple dropdown menus
Multiple Number fields
Multiple Date fields
Single Image field
Single Submit button
Any or all of these fields can be blank but must follow the field type. Therefore letters cannot go in number fields.
The form needs to grab all the values and there could be from 1 to 300 fields in one form or more. I could not find any examples of how to implement this online. Once I grap all these values I need to store them in the database. I think I know how to store them in the database but I am puzzled on how to extract the information from the form.
Have you looked into any of the existing options, like XForms? I believe this company produces a fairly nice product: http://www.orbeon.com/
Adobe has a nice product (which even scales to enterprise levels with things like LiveCycle) if you're OK with plugins / non-html-only... although they do offer HTML rendering, but I believe it's limited.
If you are OK with the price of Sharepoint, Microsoft has InfoPath, which is sorta neat.
What are your requirements? I'm assuming ASP.NET/ASP MVC based (based on your tags). I'm also assuming cross-browser. Do you need the data back in a particular format, or as a POST to a page? What about complex validations and field bindings?
I have a textbox and a button in one page.I want to enter a word in the textbox and click the button. After clicking the button I want to display the name of the web pages containing the word entered in the textbox. So please tell me how to do it? I am using C#.
So you want to create a search engine internal to your website. There are a couple of different options
You can use something like google custom search which requires no coding and uses the google technology which I think we all agree does a pretty good job compared to other search engines. More information at http://www.google.com/cse/
Or you can implement it in .net which I will try to give some pointers about below.
A search engine in general exists out of (some of) the following parts:
a index which is searched against
a query system which allows searches to be specified and results shown
a way to get documents into the index like a crawler or some event thats handled when the documents are created/published/updated.
These are non trivial things to create especially if you want a rich feature set like stemming (returning documents containing plural forms of search terms), highlighting results, indexing different document formats like pdf, rtf, html etc... so you want to use something already made for this purpose. This would only leave the task of connecting and orchestrating the different parts, writing the flow control logic.
You could use Lucene.net a opensource project with a lot of features. http://usoniandream.blogspot.com/2007/10/tutorial-implementing-lucenenet-search.html explains how to get started with it.
The other option is Microsoft indexing service which comes with windows but I would advice against it since it's difficult to tweak to work like you want and the results are sub-optimal in my opinion.
You are going to need some sort of backing store, and full text indexing. To the best of my knowledge, C# alone is not enough.