|
I have a website developed in ASP.NET 1.1, now I want convert this website to ASP.NET 2.0,
How to convert it?
Do you know any tool to do this conversion ? Thanks.
I have tried to use VS2005 wizard to convert this project, but the page converted still
looks like ASP.NET 1.1 page. It's different with ASP.NET 2.0 page.
So, I want know any tool for help.
Thanks.
|
|
|
|
|
Of course it looks the same. Do you think layouts are going to change in 2.0?
If you ran the conversion, and it opens in 2005, it's converted.
|
|
|
|
|
edboe wrote: Of course it looks the same. Do you think layouts are going to change in 2.0?
Yes, I expect this.
|
|
|
|
|
It's not going to happen. It's not a magic trick. It converts the code, not the layout.
|
|
|
|
|
Thanks for your reply , we plan to re-develop it in the ASP.NET 2.0
|
|
|
|
|
Did anyone try to run some ASP.NET 2.0 apps with IIS7 on Windows Vista (build 5744)?
In my case an existing application perfectly working with IIS5 and IIS6, with IIS7 has problems, particularly with query strings parameters, MultiView s and Response.Redirect s.
Does anyone has some advice?
Thanks.
|
|
|
|
|
What kind of problems?
---
b { font-weight: normal; }
|
|
|
|
|
MultiView 's ActiveViewIndex not correct, Redirects that don't redirect, and something like that.
Anyway, I'll try to perform some more accurate tests because I can't even describe errors properly now.
|
|
|
|
|
i have a tree in asp.net(c#) and i want when i rightclick on one it has my favorite choocise that i want.
for example: when i rightclick it has insert,edit,delete and when i push delete i can delete that item. or when i push on insert it hase a link for the other form.
plz help me.
|
|
|
|
|
i want create a file in c#(asp.net) where that my project is but i dont want give a spacial drive i want it recegnize i write the below code but it created in c:\ but i want it created in e:\\Per\SkinFolder\1.css(wehere ever my project is)
System.IO.FileStream f = System.IO.File.Create("c:\\1.css");
|
|
|
|
|
Use Server.MapPath to get the physical path from a virtual path:
System.IO.FileStream f = System.IO.File.Create(Server.MapPath("1.css"));
---
b { font-weight: normal; }
|
|
|
|
|
thanks a lot. thats right
|
|
|
|
|
i want replace a file insted of the other file i do this work but its not write.
try
{
string OriginalFile = "c:\\"+them+".css";
string FileToReplace = "c:\\"+name+".css";
string BackUpOfFileToReplace = "c:\\"+name+".css.bac";
System.IO.File.Replace(OriginalFile, FileToReplace, BackUpOfFileToReplace);
Console.WriteLine("Done");
}
catch (Exception ex)
{
string s = (ex).ToString();
}
how can i do this?
|
|
|
|
|
I have never used the replace function. Generally what I would do is rename a file and then just write a new one with the old name.
|
|
|
|
|
Standard question #2:
What error message do you get?
---
b { font-weight: normal; }
|
|
|
|
|
just copy the file on desired location, it will automatically replace the existing file.if i'm getting u correct
Dotnet
|
|
|
|
|
if i have two time variables:
a = 08:32 ( 08 is hours; 32 is minutes)
b = 13:54
how to compare this time format?
( the time output should be b longer than a )
Best regards,
Chee ken
|
|
|
|
|
If you use TimeSpan structures, you can compare them and do calculations on them. Example:
TimeSpan a = new TimeSpan(8, 32, 0);<br />
TimeSpan b = new TimeSpan(13, 54, 0);<br />
<br />
if (a > b) Console.WriteLine("Time a is longer.");<br />
if (b > a) Console.WriteLine("Time b is longer.");<br />
if (a == b) Console.WriteLine("They are equal.");<br />
Console.WriteLine("Comparison: " + ToString(TimeSpan.Compare(a, b)));<br />
Console.WriteLine("Differece in minutes: " + ToString((b - a).TotalMinutes));
---
b { font-weight: normal; }
|
|
|
|
|
You can also compare to DateTime values and the result is a TimeSpan
DateTime date1 = DateTime.Parse("2006-06-01 08:32");
DateTime date2 = DateTime.Parse("2006-06-01 13:54");
TimeSpan span1 = date2 - date1;
-- modified at 9:20 Saturday 21st October, 2006
Kind Regards,
John Petersen
|
|
|
|
|
I solve this problem already with your help ,thanks Guffa and John Petersen..
Best regards,
Chee ken
|
|
|
|
|
i write a string and i want convert it to aski code how can i do this.
for example:
string str = "hello";
i want convert it hello for asski code.
thanks a tone for ur help
|
|
|
|
|
All strings in .NET are Unicode, so to truly get the ASCII code you would have to encode it to ASCII first:
string str = "hello";<br />
byte[] ascii = Encoding.ASCII.GetBytes(str);
Now you have an array of bytes containing the ASCII character codes. Note that any characters outside the ASCII characer set is converted to a question mark, so if you for example converted "bidé", you would get "bid?".
If you want the Unicode character codes, you can just cast a character to an int:
int code = (int)(str[0]);
---
b { font-weight: normal; }
|
|
|
|
|
byte[] ascii = Encoding.ASCII.GetBytes(str);
what is Encoding?
we dont have Encoding in c# asp.net
|
|
|
|
|
ptvce wrote: we dont have Encoding in c# asp.net
Yes, you do. It's in the System.Text namespace.
---
b { font-weight: normal; }
|
|
|
|
|