|
Specify the culture that you want to use for parsing the string, or use DateTime.ParseExact with the "dd/MM/yyyy" format to parse that exact date format.
---
single minded; short sighted; long gone;
|
|
|
|
|
I would suggest that use the overloaded method Convert.ToDateTime (string,System.IFormatProvider) Create an object of type IFormatProvider and then assign the datetime format as string to it....
Ask me if you have anymore queries !!
|
|
|
|
|
Hi all,
how can i get the HTML content of another website [as a string or something like that ]. Any help would be appreciated.
Thanks in advance.
Ali
|
|
|
|
|
Yes you can do that using HttpWebRequesr and response.GetResponseStream(); method that return html in stream .Play around it you will definatly get solution
<br />
HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(URL);<br />
<br />
HttpWebResponse response = (HttpWebResponse)myHttpWebRequest.GetResponse();<br />
resStream = response.GetResponseStream();<br />
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
hi sandeep thanks for the help,
but i had already tried this but i get the html upto the starting of tag...
thanks,
Ali
|
|
|
|
|
hi all
i am budling modun check domain on my website
How do i can check a domain exist on Internet ???
some body show for me
|
|
|
|
|
good day to everyone, i would like ask if asp.net is also capable in using classes like vb.net? or modules?
thanks
start a new beginning in every ending; thats what life for......
|
|
|
|
|
moomoooomoo wrote: asp.net is also capable in using classes like vb.net?
ASP.NET is a server side language which can be written using c# and VB.NET.
|
|
|
|
|
Hi,
ASP.NET is not a programming language.
ASP.NET is a technology for creating dynamic Web applications. It is part of the .NET Framework; you can author ASP.NET applications in most .NET compatible languages, including Visual Basic, C#, and J#.
So you can apply object oriented programming (use classes) while creating web applications using ASP.NET using C#, VB.NET or other .NET compatible languages.
Regards,
Blumen
|
|
|
|
|
Navaneeth.K.NASP.NET is a server side language
I think its technology
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
In fact, ASP.NET, being a framework that is used with C# and VB.NET, is incapable of working WITHOUT using classes.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Is it right question ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Yes. ASP.Net is also object oriented. It has every functionality of an object oriented program such as Classes,objects etc
|
|
|
|
|
I would put it this way ASP.NET UI uses server controls that are completely object oriented. If you see page attribute you will see that page inherites from the code behind class.. So the answer to your question is yes.
|
|
|
|
|
I think you make note of dotNet, Its Completely made of Classes,If dotNet is Structure then Classes are the Bricks of the Structure , So No Classes No dotNet.
Develop2Program & Program2Develop
|
|
|
|
|
Dear all,
I am a novice in .NET development.
Currently, i am exploring UIP v2.0. I understand that the current UIP Application block (UIPAB) version 2.0 was developed for Visual Studio 2003.
As i am upgrading from Visual Studio 2003 to 2005, i would like to explore UIPAB in VS2005, i have found examples in VS2003 but couldnt find any examples or source code for VS2005. I find UIP a very gd concept that could be explored and applied in upcoming projects. Is it advisable to use UIPAB v2.0 using VS2005? Is it compatible? What are the prevailing problems? If not, which version of UIPAB is suitabble for developing applications in VS2005?
Thanks alot.
Warmest regards
James
|
|
|
|
|
Hi.
I have very irritating problem with running ASPNET 2.0 project.
I've created a new web site and when I want to run it (F5) I get an error: 'ASP.NET runtime error: Unexpected end of file while parsing Comment has occurred. Line 417, position 1. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config line 417) c:\inetpub\wwwroot\mrs\Default.aspx' pointing to <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
.NET version is 2.0.50727.42.
It worked before.
I just started on ASPNET20 project and I get this f-ing error.
WTF is going on?
Am I doing something wrong?
|
|
|
|
|
You have a problem in your root web.config file. Have you been making manual changes to this file? Go to the web.config file from the error path and look at line 417. Most likely you are somebody else added something to the web.config that is not valid. You might be missing a closing tag or something.
Hope that helps.
Ben
|
|
|
|
|
I have been making changes to this file, but after that error occurred and I only comment all those inside web.config leaving only <configuration> node, but then I get: "No http handler was found for request type 'GET'".
The problem is that 417th line doesn't exist in this web.config file. 415 is the last line.
When I was trying to workaround this problem, I noticed that VS.NET highlighed this in web.config in c:\windows...
<add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
This is inside <assemblies> node and everyone have version=2.0.0.0...
I don't know if it helps if I change the version of all the nodes to 2.0.50727.42 which is the current version of installed .NET framework?
I don't have any solution (.sln) or .csproj file in my ASPNET projects root.
-- modified at 17:25 Sunday 6th May, 2007
|
|
|
|
|
I don't think changing that version will help. That is the dll version which is not the same as the framework version. If that line was getting highlighted then there is a good chance that the error in the config file is somewhere around there. It could be the line before or after. I think if you could put that config file back to its orginal state and then see if you still get the error. I would guess that you would not. Then if you start from that point and slowly add one new line at a time, you migth be able to figure out where the error is. The config file errors can often be a pain. It can sometimes be something simple like a missing
< or >, but sometimes it is not having things in the correct sections, which can be harder to figure out.
Ben
|
|
|
|
|
Thanks for the reply.
For now, it works.
I didn't knew what else to do so I add reference to System.EnterpriseServices hoping that will work and it works .
Compiling and running.
Now I have System.EnterpriseServices.dll in my Bin folder.
Maybe that helps a bit?
I think that this is (definitely) problem something on my computer, so if I deploy ASPNET web site elsewhere, I think that this won't be an issue.
Web.config is back how it was (or I think so ), but I will take a look one more time.
|
|
|
|
|
I think adding the dll is what fixed it. I am glad you figured it out.
Ben
|
|
|
|
|
I hope that I will figure out how to run ASPNET20 project without referencing that dll.
I think that this dll should be reference automatically from GAC?
Thanks for your time and help.
I appreciate that.
|
|
|
|
|
My understanding is that recently you must have added the code behind class in some namespace so what you need to do is
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Namespace.classname" %>
Also just in case if there is still some problem then see the web.config all the sections are properly typed, even change in case could can emit some errors
|
|
|
|
|
I will try it, but I want aspnet20 to work without that reference or inheritance.
Thanks for the reply.
|
|
|
|