|
How can I check if my IIS is alive using C#?
If the server is down - how to do iisreset ?
|
|
|
|
|
there are quite a few free server monitors floating around the internets. I've been using PA Server monitor for some lightweight stuff. we had an old server with an iffy nic so we used a device called an iBoot that pinged the server and after x missed pings it killed power to the server and brought it back on after 30 seconds. If you want the app to run on the server i'm sure theres a way to check the app pools, or you could look at the asp_net or w3svc processes to see if they're still running. iisreset should be able to be run from a Process.Start() in c# once you determine its stopped.
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 cant connect windows-mobile to webservice in my computer
the terminal connect to my pc in ActiveSync
i try to change in the terminal the network to My ISP or My Work Network
and still cant connect to my webservice
thanks in advance
|
|
|
|
|
We have an aspx file which contains a lot of custom web controls (ascx files) which has validators in it.
Now when I click a button, it doesn't work because some validator is failing.
My problem is that there're no errors that appear on the screen, so I suspect that it's one of the controls with .Visible = false .
Is there any easy way to know which one is failing?
- It's too troublesome to change the code first and set every control to .Visible = true just to test.
- Breakpoints doesn't work as well, since validators run on client side.
Thanks!
Rafferty
|
|
|
|
|
I have a background image on my site - juneux.com - that has been working just fine for the past 6 months, and all of sudden tonight, it's missing. I didn't do anything to do the code that would have made it disappear. What changed? And what can I do to get it to reappear?
|
|
|
|
|
I looked at the source of your page (Firebug is *BRILLIANT* ) and there is no background image specified in the HTML. Your HTML header does reference a stylesheet stylesheet.css but it appears to be empty. Maybe that is what has gone missing.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
Hello,
I'm going to try and explain my situation a simply as possible and hope that I get some advice on:
1. Can it be done?
2. Where to read about how to do it?
3. Is it the best way to do it?
Currently our website is on a 2003 windows server. It also has probably 40,000 PDF files located on the D: drive, with a spattering of some Word, Excel, various graphics and movie files. I have setup virtual directories to these folders so that the files are available for viewing on the website. Still no problem to this point. We have Indexing Services running on this server, so that there can be a text search on the thousands of PDF files located there. Again, still no problem to this point.
(NOTE) I am not the Network administrator here, though out of necessity, I have learned a great deal about IIS 6 and IIS 7.x. Our network administrator is, how should I say this, somewhat lacking in Network skills and knowledge.
They have purchase a new server with 2008 R2 on it, and because of our Network administrators lack of knowledge, I've been the one learning how to configure IIS 7.5 and copy our website, while converting it to .NET, over to the new server. Time consuming, but still no real problem at this point, except for the NA ability to set permissions so that the new server can read all the files and folders on the current website server. Those have slowly been corrected.
Now my PROBLEM, I have suggested that we have a stand-alone file server to hold all of these files, which grows at a rate of several thousand files a year. Continue to run the Indexing Services on that server so that it will have less impact on the webserver.
1. Is there a way to read the catalogs created by the indexing Service on another server from the code in my website on a different server?
2. Is this common practice to run a separate file server(especially with so may file) or is it best to continue having them located on the same server as the website?
3. Would trying to run a separate file server be more complicated because of the abilities of our Network adminstrator or should I just keep it simple?
I don't have the time to build, design, convert and otherwise maintain the very large website and learn everything about the NA's job too. However, I'm not opposed to doing some addition learning in that area if required.
Any thoughts or suggestions would be greatly appreciated.
Jack Carr
|
|
|
|
|
I have radio button on my webpage.
<asp:RadioButtonList runat="server" ID="rdlChartTypes" CssClass="RadioStyle" OnSelectedIndexChanged="rdlChartTypes_SelectedIndexChanged"
AutoPostBack="true">
<asp:ListItem Selected="True">Bar</asp:ListItem>
<asp:ListItem>Line</asp:ListItem>
</asp:RadioButtonList>
I want to add css for the same.
when we click on any radio button then tht circular button clicked by black color.
i want to change tht dot color by anothe color??
Another thing is i have dropdownlist.
on any item list hover i want change backcolor of tht item.
how to do that in CSS??
|
|
|
|
|
I have dropdown lsit on my web page.
<asp:DropDownList ID="ddlFrom" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlFrom_SelectedIndexChanged">
</asp:DropDownList>
1)I want to change scrll bar color of the dropdownlist.
2)selected item color change.
want to do above 2 things in CSS.
i have added below code in my css file.
select
{
font-family: Calibri;
font-size: 13px;
font-weight: normal;
text-decoration: none;
background: #FDEEF4;
color: #663333;
border: 1px solid;
}
what else i need to add in above code to achiev above 2 things??
|
|
|
|
|
|
Thanks for the reply.
but i want to user asp.net controls..
link which you have provided , in which they have used another controls
so any other wayout??
|
|
|
|
|
You can download the dlls and you could use that control in the link mentioned above.
0)If you want only asp:DropDownList then I doubt you can change the color of arrow.
1)To change the color of the selected item
DropDownList1.SelectedItem.Attributes.Add("style", "color:Black; background:Orange;");
DropDownList1.Attributes.Add("style", "color:Black; background:Orange;");
|
|
|
|
|
You pretty much can't with CSS.
Except, maybe, and probably only in IE, you could put this in the CSS for the dropdown and see what happens:
scrollbar-base-color: #1F2C4F;
scrollbar-arrow-color: #55BBff;
scrollbar-track-color: #5D7B9D;
It works for grids, panels, and the browser itself, so it might work for dropdowns, too. With the above caveats.
|
|
|
|
|
css:
.tablemenu a
{
list-style:none;
color:#d8d8d8;
text-decoration:none;
font-weight:bold;
font-family: Arial;
font-size: 12px;
}
.swidth
{
text-align:center;
padding-left:18px;
padding-right:18px;
}
.menuhover a
{
/*-----*/
}
.menuhover a:hover
{
background-image: url(images/nav_hover.gif);
background-repeat:no-repeat;
background-position:center;
display:block;
height:52px;
}
HTML:
<td class="menuhover" width="74px"><br />
<a href="#">UNLOCK<br />CODE</a><br />
</td>
=> position the Text is not the middle in hover-image.
it is located on top
Please help me, thank you so much
(if you need more infomation, live chat with me: thanhpn_wms@yahoo.com)
modified on Wednesday, July 13, 2011 10:51 PM
|
|
|
|
|
|
thanks ^^. but not successfull. Another css piece I wrote:
.home_o a{height:68px;width:75px;}
.home_o a:hover{background:url(images/home_o.gif) center no-repeat;display:block;text-indent:-9999px;}
HTML:
<td class="home_o" width="110px">
<a href="#"><img border="0" alt="" src="images/home.gif" /></a>
</td> it can runs on Firefox and IE6+, but can not runs on Chrome and Safari !!!
|
|
|
|
|
Try switching the positions of center and no-repeat .
|
|
|
|
|
You should use padding and margin if you exactly know the width and height.Also you can use line-height property to the .
|
|
|
|
|
Over the past few months, I've noticed that animated ads on lots of sites don't load and start playing until I scroll down to them.
Is this something that's being coded into the page, or is it a feature of the latest browsers to not load them until they are needed?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Hello,
I need to develop the theme for ASP.NET MVC 3 application.
Can you please suggest me the approach?
1. Should i go for bunch of style classes and load them dynamically.?
Is there any better approach which lets me to use single style class and allow me to load images dynamically.
Please suggest.
Thanks,
Rahul
|
|
|
|
|
|
Good Day All
i have a page, i am it is getting the background from an image.
<html>
<head>
<style>
img.bg {
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}
@media screen and (max-width: 1024px) {
img.bg {
left: 50%;
margin-left: -512px;
}
}
#page-wrap
{
position: relative;
width: 400px;
margin: 50px auto;
padding: 20px;
background: white;
-moz-box-shadow: 0 0 20px black;
-webkit-box-shadow: 0 0 20px black;
box-shadow: 0 0 20px black;
}
p
{
font: 15px/2 Georgia, Serif;
margin: 0 0 30px 0;
text-indent: 40px;
}
</style>
</head>
<body>
<img src="http://196.41.221.20:8095/EcashPos/images/MainBackground.jpg" class="bg">
</body>
</html>
in Firefox this is fine, but in IE it only fills a portion of the page. i have attached the example document, or you can use this one.
i am using IE9
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Why not do this via CSS?
It is much easier to control and edit.
Something like this:
body
{
background-image:url('MyImage.png');
background-repeat:no-repeat;
background-position:right top;
}
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Which is your choice and why?
I've been using EasyPHP for some time and it works well.
Never tried XAMPP though...
|
|
|
|
|
I use XAMPP myself. Simply as a result of not having heard of EasyPHP before.
For brevity, I'll abbreviate XAMPP to x* and WAMPP to w*
I do seem to recall that x* had replaced the 'old' w*, though am unable to find (in about 90 seconds) any concrete evidence of this being true, merely a few other people that had the same assumption.
I will note however, that my code written and functioning under x* in windows will run just fine under linux, so long as there are not calls to COM objects and that silly mistakes are not made with file-naming/handling conventions.
The same cannot be said for my w* code, which would invariably fail when used in x*. I'd suppose for a lack of packages, though I do recall having trouble when writing a pdf creation module, as some of the w* files were older than the same files in the x* distro - result: "No PDF you you!"
I might add, it's been at least 18 months since I investigated either. A lot can change in a year and a half.
|
|
|
|