$("#DatePick").datepicker({
minDate: <%= DateTime.Now.ToShortDateString() %>
});
This will set min date to the current date. Only future dates are available to select. Set the 'minDate' argument to the date you need.
$("#DatePick").datepicker({
minDate: <%= DateTime.Now.ToShortDateString() %>
});
This will set min date to the current date. Only future dates are available to select. Set the 'minDate' argument to the date you need.
oops, modded version :-)
if (dat.Day == 11 || dat.Day == 12 || dat.Day == 13)
{
ord = "th";
}
else
{
switch (i)
{
case 1:
ord = "st";
break;
case 2:
ord = "nd";
break;
case 3:
ord = "rd";
break;
default:
ord = "th";
break;
}
}
Try removing the "http" on your links.
I.E. href="\somewebsite.com\css\site.css"
This is a hack that works if one of the sites is using https or http.
diafol ... nicely done.
I'd make a small change though (visual stuff):
body{
font-size: 60px;
}
.ring{
color:white;
text-align: center;
background-color:#CC0000;
padding: 5px;
}
Generally, if its part of the page or menu structure then put it in the CSS, using the background-image property.
If its part of the content, then in the markup. That way you can make sure the Alt tag is filled out properly and an individual that's using an AT (Assistive Technology) device can understand what the image is about.
Are you trying to add a query string to the current url, like this:
http://current.website.com/index.aspx?zoom=true
Try
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("default.aspx?zoom=true");
}
Twitter Bootstrap is one of the best Mobile ready frameworks around, in my opinion.
http://twitter.github.io/bootstrap/
Customise it to your color scheme and select only jQuery plugins your actully going to use ... and your ready to go.
No ... but you could use css hacks. If your looking for diffent style sheets for each browser, then a conditional on the link is better ... IMO
<!--[if lt IE 7]> <link rel="stylesheet" href="Content/IE7.min.css" /> <![endif]-->
But before doing that, you might want to see if you can solve the problem either with diffent css or with some minor ie spacing hacks.
This should work for all IE (pretty sure it still does). Just duplicate a class for IE
html>body someClass {
Something for IE here: 30em
}
Try FormCollection in your controller and see if anything is coming through that way.
Add this just under the closing form tag, line 105
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
Sorry ... what I sent is for a button click. This works like you want I think.
http://jsfiddle.net/GBL4s/1/
<label for="business">
<input type="checkbox" id="business">Business</label>
<div id="businesslist">
<ul style="list-style: none;">
<li>
<label for="chk1">
<input type="checkbox" name="chk1" id="chk1" class="sub" />First</label>
</li>
<li>
<label for="chk2">
<input type="checkbox" name="chk2" id="chk2" class="sub" />Second</label>
</li>
<li>
<label for="chk3">
<input type="checkbox" name="chk3" id="chk3" class="sub" />Third</label>
</li>
<li>
<label for="chk4">
<input type="checkbox" name="chk4" id="chk4" class="sub" />Fourth</label>
</li>
<li>
<label for="chk5">
<input type="checkbox" name="chk5" id="chk5" class="sub" />Fifth</label>
</li>
<li>
<label for="chk6">
<input type="checkbox" name="chk6" id="chk6" class="sub" />Sixth</label>
</li>
<li>
<label for="chk7">
<input type="checkbox" name="chk7" id="chk7" class="sub" />Seventh</label>
</li>
</ul>
</div>
$('#business:checkbox').change(function () {
if ($('#business:checkbox').attr("checked")) $('.sub').attr('checked', 'checked');
else $('.sub').removeAttr('checked');
});
To split the string at the dash, with string str being the returned result ...
string s = str.Substring(str.IndexOf("-")+1, str.Length - (str.IndexOf("-")+1));