I have two days in a list. What I want is to let these two days selected in blue color and is selectable and then I want to disable all other days in the current month to not selectable.
How can I do that? Here is my code:
foreach (courseSession se in lstSe)
{
cldCourseDate.SelectedDates.Add(Convert.ToDateTime(se.nextDate));
}
I want to block Year From Calender .I have 2 text box in first text box i select Start Financial Year And in second Text End Financial Year.When i Select 2009 year in first text box then in second texbox all dates privious from 2009 will be block.
I have two text boxes (from date and to date). Based on your demo i have disabled the future date but my requirement is
1). First i have select the from date. eg: 21-02-2013
2). Now i am selecting TO DATE. eg:21-01-2013
Now my requirement is i need to disable dates until 21-02-2013 to current date. Then user not able to select ToDate as 21-01-2013 i need to provide only option to select from 22-02-2013 to current date.
When a user selects an item from dropdownlist ,, certain dates (from DB) gets selected on Calendar automatically with the color pink >> This is working FINE The problem happens after that, when i want to select any other date >> the dates which were selected automatically before (that came from DB) get deselected !! I want them to stay selected, so i know which are the dates that already saved in DB ! So, the calendar is removing the programmed selected dates upon selecting a new date on the calendar object.
Now i want to do that user cannot select end date less than start date , e.g if he choose 2-July-2014 ( as a start date) then he could not choose (1-July-2014) as End date , dates prior to Start Date must get disabled in End Date Calendar Extender.
am developing an application using asp.net+ajax.i used calender extender control to select date and showing that date in a text box.my requirement is when select date from the previous year (i.e 2009) from the calender extender control...then a message should show like"you should not select the previous year date" and immediately current day date should fill in textbox.
I'd like to use the jquery calendar control to populate a date into an asp.net textbox.
When the user selects a date I want the date populated in the textbox to be only Saturday dates. So if the day they select is not a Saturday I want the date of the next Saturday after the date the selected.
I need to get the start date and end date of a month so that I will pull up my records for only that month, Right now I am pulling all the records and taking lot of time to load.
I'm trying to create a setup in my ASP.NET website that allows me to enable/disable logging while the application is running at any point. I figure some of you have already done such a thing.
So how would you set up the boolean value ShouldBeLogging to be able to be turned on/off while the website is running without getting any serious performance drawbacks(seeing how its going to be accessed frequently)? I was thinking about putting something in the web.config, but wouldn't a change to that kick my user sessions if i wanted to turn it on?
using c# I am entering two types of string in a text box for eg "so-123456" or "12345678" only this two formats are allowed to enter, when i enter only 12345678 i.e, without "so" next textbox in that page should be enabled, if i enter "SO-123456" textbox should be disabled. without any click event i.e, while entering text in 1st textbox if it contains "so" textbox2 should be disabled, if textbox1 contains only integer(123456) textbox2 should be enabled.
I am using template field in a Gridview. I have a button in that. I also have a method which returns bool. Now I want to disable the button in the gridview if my method returns true. And enable the button if my method retuns false.
I am rather new to MVC applications, and one thing I am trying to accomplish is enabling or disabling stylesheets based on a Session value.I have stylesheets referenced in my Site.Master page in this manner:
So if the 'cssRule' Session value is null, no CSS loads. Currently this is working fine, but it is not exactly what I am looking for. Right now I set the Session value in the Controller when the user logs in, but ultimately I need to set the value of theSession variable depending on if a user clicks the enable or disable button.
I have a checkbox and a textbox in a GridView (for every row), and I'd like to be able to write some javascript that would enable and disable the textbox depending on the state of the checkbox (checked or unchecked). I guess I'd have to give JS the row index somehow.
I have a tab container in aspx page and i want to enable disable the last tab in aspx page my tab container is like below
[Code]....
Now for disabling the last tab i used the following in code behind page load:
//tabAdvanceSettings.Enabled = false;
I also want to enable this tab panel on client side when a user uses a shotrcut like Ctrl + Shif + A as shown below but this shortcut only enables the tab not the two user controls ptresent in the last tab. The code for enabling the last tab is :
I am developing a registration process in an MVC application. The process consists of 4 steps. I would like users to be able to see where they are in the registration process. i.e. I would like them to see a breadcrumb with each step displayed. If a user is on the first step, they should see all 4 steps displayed but only the first step should be enabled. If they are in the second step, they should only see the first and second steps enabled etc. The first link would take them back to the first step. I have considered using 4 action links to implement this. Is this the best way? If so, how do I disable and enable actionlinks?
How to enable / disable any record in gridview ?using mssqlI want in my gridview the following will appear ..
Name Course Year Status Sam MCA 2010 Enable
when i click on enable then record will be displayed in gridview and the enable button will convert into text disable... and when i click on disable then the record will be disable in gridview and enable button will appear ...
I have a text box, a range validator, and a button. The validator is hooked up and prevents the button from doing a post back if the text is out of the range, however I'd also like to enable and disable the button. Is this possible to do within client-side code?
I been strugling with this for 2 days now without comming any closer to solution. I have read 20-30 threads alteast and stil can not resolve this.I have disable anonymous authentication, enable asp.net impersonation.I have added <identity impersonate = "true" />I have added the a user to the security logins that is connected to the database I try to connect tThis is the connectionstring I use:
Data Source=IPTOSERVER;Initial Catalog=Phaeton;User Id=User;Password=Password;errormessage
How do I validate RequiredFieldValidator/CompareValidator conditionally. I have aded equiredFieldValidator/CompareValidator on date textbox. I want that if textbox1="No" thne it should not validate or compare date text box, if textbox1="Yes" then it should validate.
Is this possible on form submit button or any other way?
I am trying to put in scripts for google analytics in my code. But I want it to run only if the environment is production and not in dev or qa. This javascript runs at page load itself and I am confused how to make it run conditionally. My app is an asp.net app.
Javascript is always confusing to me. There are many other javascripts in the page and I just need to disable this one. Had it been a .net code/function I would check for the environment and conditionally run the function. But I am confused about how to accomplish this type of functionality with javascript