|
sc steinhayse wrote: When I open my visual studio.net 2010 ide, and select help and about micorsoft, and click on about microsoft, I see the following: microsoft framework level 4.0.30319 RTMrel.
That's the version number of the latest supported framework.
sc steinhayse wrote: However when I open an existing web forms C# solution file and select properties and then select settings, I see the following target framework is .NET framework 3.5.
That's the framework-version that the solution is targetting; in other words, the sourcecode that you're looking at was written for version 3.5.
sc steinhayse wrote: Thus my question is shouldn't I be working with the .net framework 4.0 since I am working with visual studio.net 2010?
No, the IDE should open the solution without modifying it. If it was written targetting 3.5, it'll open it with that environment. You can upgrade the project to target the 4.0 framework if you want.
You can change the targetted framework under the projects' properties.
Bastard Programmer from Hell
|
|
|
|
|
Hi all!
A few days ago my boss told me to find and test an application server which allows us to run .NET applications on different platforms (Linux and MacOSX inclusively). I've spent about two days already to learn different approaches, but biggest part of them is not so handy and easy to use as I want. The only one candidate I have today is a TNAPS 3 Application Server. I was really impressed about its distribution size (3mb) and how easy I run it on Linux and Mac OS X (thanks for samples they provide for testing) and I think it will run on Windows as well. But I am still not completely sure about using it since it still under private testing and I have no using it before.
So my question is about TNAPS3 or its alternatives if available. Which one is better and easy to use.
Thanks
|
|
|
|
|
Normally "application server" runs X and provides functionality Y.
And for .Net you certainly are going to want to test the first part (X) of that extensively because you are relying on it to correctly implement the version of Net that you are using.
Because of course Microsoft is not providing that functionality on OSX/linux.
You might also want to invest some time into insuring that it is legal. Since if you commit to one and they get shut down by MS for some illegal methodology then you are going to be in a really bad place.
|
|
|
|
|
Hello,
I'm newbie to ASP. Please help
we've 5usercontrols in 5 different files, we used them in a defaul.aspx. Now i have problem.
I used Ajax tab's controller for 5 tab's i used 5 usercontrols in first user control we have a Add Button if we click on that Add button then it must navigate to 3rd usercontrol i.e 3rd Ajax tab. How can i do it?
Can any one kindly help me init?
I tried every thing no clues for me.
Please can any one help me ?
-Ajay
|
|
|
|
|
Switch to JQuery tabs http://jqueryui.com/demos/tabs[^] then you can do something like this
function onButtonClick()
{
$("#tabsContainer").tabs("select", 2);
}
No comment
|
|
|
|
|
Mark Nischalke
Thanks...
And where should i call this Function please reply...
|
|
|
|
|
I have less Knowledge on these stuff . and am a Newbie..
Please say me step by step please...
|
|
|
|
|
If you read the documentation on the JQueryUI links, it shows you how to add this control and manipulate it.
|
|
|
|
|
I think he meant he was a newbie at reading, not just ASP.NET
No comment
|
|
|
|
|
I need to have a RichTextBox be able to toggle Hidden text off and on, like MSWORD does when you press shift+ctrl+*.
Obviously I'll have to use unmanaged code and the RichEdit control. Anyone know how to do this?
I'm using VB 2010 and Win7.
|
|
|
|
|
I'm currently using FileStream.Seek which is a performance killer for random access with in a file.
Is there a more better/faster way to do this (other types of streams, file access methods etc.)?
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
Not sure - but this[^] could help you out.
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
|
|
|
|
|
I actually used FileStream because of this article, could have formatted the article better though.
No references or tests on seeks.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
Mehdi Gholam wrote: No references or tests on seeks.
Yes I noticed that too.
|
|
|
|
|
Ummm... what? I don't know how you'd do any random access of a file without Seeks. But maybe you could get a Solid State Disk?
|
|
|
|
|
About 30% of the time is spent in the seeks according to my profiler.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
Well, if you're not using a database engine and you need to reduce the number of seeks, you'll have to build some kind of caching engine to hold onto chunks of the file, if not all of it, in memory and then access the data from memory instead of disk. Of course, your engine will have to swap pages in and out as needed.
|
|
|
|
|
Mehdi Gholam wrote: better/faster way to do this
do what?
what is in the file: binary data, Unicode text, ASCII text, ...? please provide some details.
why don't you show actual code? please document your problem.
why do you want random access? please provide some context.
|
|
|
|
|
Binary files, it's for my RaptorDB project.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
I'm not surprised, if you need to seek all the time, you shouldn't rely on an architecture that is built with a number of general-purpose abstraction layers. If I wanted a database without using one, would go one of two ways:
- either use MemoryMappedFile for limited size databases;
- or use basic file operations in C/C++ (P/Invoke!), have all records sector-aligned, and always read/write entire sectors.
|
|
|
|
|
Somebody did memory mapped files with RaptorDB and it was slower, I can't say it was done in an optimized way (like I would do it ) but still.
My problem is not the writing part but the seeks take about 30% of the save time in my profiler.
[As a side note RaptorDB is faster than HamsterDB written in C++]
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
At work I've been tasked with checking the validity of some URLs that are stored in the database. Some of the files they are supposed to point to have since been deleted and some have disallowed characters -- ampersand (&) and tilde (~) in particular.
Last week I quickly whipped up a method that uses a WebRequest and GetResponse which works just fine. But because it has to download the content of the file before it returns, it takes rather longer than necessary to simply know that the URL is good and the file exists. Today I was experimenting with using BeginGetResponse and Abort in an effort to Abort the download once I know that the file exists, but it seems unreliable (and klugey).
Does anyone here have a better way to determine whether or not a URL points to an existing fie without downloading the file?
|
|
|
|
|
|
Excellent, I just need to try getting some HEAD. Thanks.
Edit: That worked, but didn't help much.
2345 webfiles were checked in 00:11:55.2816915.
Yesterday (with downloading) it took sixteen minutes.
Edit 2: I'm now spinning off threads (up to ten) and the total elapsed time is down to a minute and a half.
modified 12-Oct-11 0:50am.
|
|
|
|
|
Holy moly, I was just telling my coworker that there must be some solution to the problem that you have asked about. I will send him the answer posted by the other responder.
Somebody in an online forum wrote: INTJs never really joke. They make a point. The joke is just a gift wrapper.
|
|
|
|