|
|
|
I dont know why this statement is giving me error . I have written this in a Javascript file that is attached to my project. I am trying to declare a variable containing todays date. Can Anyone help please?
|
|
|
|
|
are you certain this line has the error ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Absolutely, I am using Visual studio 2008.
I tried following code in studio 2005 now but i am getting same error. Not sure why it is occuring? Really strange.. Is there any other way to get todays date in some variable?
function Test() {
var today = new Date();
alert(today);
}
<asp:Button ID="Button1" runat="server" OnClientClick="Test();" Text="Button" /><br />
|
|
|
|
|
I used the below code and it worked fine for me
<script type="text/javascript">
var today = new Date();
alert(today);
</script>
|
|
|
|
|
It should work because it is a correct code.
But what can be the reason for it to be failing?
Everytime i try to declare any Date variable it gives me : Microsoft JScript runtime error: Object expected
I have tried to reboot my pc still it doesnt work.. Is my Jscript engine corrupted or something?
|
|
|
|
|
I think your browser got whacked somehow. Reinstalling the browser will help you.
Date is a prototype should be declared within the library of browser.
It is working for all of us. Sorry cant help you.
|
|
|
|
|
Now..the following statement is giving me error: Sys is undefined.
var wRequest = new Sys.Net.WebRequest();
I have no clue whats been hapening, i have reinstalled latest ajax toolkit but it is still occuring.
|
|
|
|
|
Thickbox requires DTD to be add to the html document. When I add
to the document.
The page looks good in IE but gets messy in Firefox. Although the thickbox works without the DTD in IE , it does not open the box in middle of screen. When I add the DTD it is centered properly but the page gets messy in Firefox. It is hard for me to make the page DTD compatible , what is the alternate solution ?
|
|
|
|
|
You may need to detect the browser and serve the right code based on the browser type.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
My ASP application uses a custom dll that I had previously developed. The custom dll sits in the bin directory of my ASP project. The custom dll project is located on my PC in the directory C:\development\new\.
The ASP application works successfully when executed in visual studio on my PC. When I build my web site and publish to a remote server it does not work because it looks for the custom dll in the C:\development\new\ directory which does not exist on the remote server.
The custom dll is in the bin directory on the remote server so why is it looking for it in C:\development\new\?
thanks
Mark
|
|
|
|
|
Use Server.MapPath("virtual Path") to get the actual path.
|
|
|
|
|
Hello,
I have a situation at work where we need to host our website locally and we where deciding on using Windows XP Professional as the OS for the server and IIS as the Web Server software. Is this a good idea as may have read somewhere that windows XP can only handle a certain amount of concurrent connections to it, I am not sure on this but just wanted to make sure.
Regards,
Christian Pace
|
|
|
|
|
|
Yes, you are going to have severe limitations. Go with server '03 or '08.
Rob
http://tagyurit.com
r
|
|
|
|
|
Yes, you are going to have severe limitations. Definitely go with Server '03 or better.
Good luck,
Rob
http://tagyurit.com
r
|
|
|
|
|
Yes I have gone with that thank you very much for your nice and helpful reply. 
|
|
|
|
|
Hi all,
Thank you Arun Jacob, I have done your suggestion before I posted my first question, that is why I needed to "say how can I regain". However, I have got an inetpub from an XP (sp2). The only thing I want to know is, are they the same vista's inetpub XP's inetpub. Sorry for my english.
modified on Tuesday, September 15, 2009 3:34 AM
|
|
|
|
|
Control Panel>Programs>Turn Windows Features On/Off select IIS.
|
|
|
|
|
Hi All,
I have implemented the procedure in http://www.codeproject.com/KB/sharepoint/MultiConnectConsumerWP.aspx to connect single consumer to multiple providers but I am not able to find out the way to define the WebPartConnection for connecting my single consumer webpart to multiple provider webpart and if I add multiple connections it takes the values from the last connection and rest doesn't work.
Please feel free to edit in case the question can be asked more appropriately. Please help 
|
|
|
|
|
I have a web service which is running on IIS 5.1 on an XP pro virtual machine (Virtual PC 6.0.156.0). The web service requires Windows Integrated Authentication. I have another program which queries the service from another XP virtual machine. The client is getting an HTTP 401.5 error which is an authentication error and it is getting it even though the program, which is making requests to the server, is sending along its name and password. If the web service is running on an actual machine instead of a virtual machine, the query works. It doesn't matter if the client is running in a virtual machine or an actual machine.
When I checked the web logs for errors on the virtual machine, I noticed that the cs_username column name is empty (actually, it is "-"). On the actual machine, it has the correct username from the username/password pair.
Has anyone else ran into this problem?
Is it a known problem?
Is there a fix or work-around?
TIA!
m.bergman
-- For Bruce Schneier, quanta only have one state : afraid.
modified on Wednesday, September 9, 2009 7:08 PM
|
|
|
|
|
As a VM doesn't in theory run any differently, the issue has to be with the configuration of your VM.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I've updated my message. I had left out a critical piece of information:
When I checked the web logs for errors on the virtual machine, I noticed that the cs_username column name is empty (actually, it is "-"). On the actual machine, it has the correct username from the username/password pair.
That IIS doesn't even get the username (and I assume password) leads me to believe that it is more than just a configuration issue. Actually, I would be happy if it were a configuration problem. Other people at my company have tried this without success as well, and if I could get this resolved it would cut down on our development time and costs.
m.bergman
-- For Bruce Schneier, quanta only have one state : afraid.
|
|
|
|
|
Are client and server both on a domain? How is your security tab setup for the web app in the VM?
Rob
tagyurit.com
|
|
|
|