I have a C++ bible laying around somewhere. Probably around 2000/3000 pages which explain everything you'd ever need to know with great ease and simple examples. I still use it as a reference. If you need it, PM and i'll send the title and author.
I have a C++ bible laying around somewhere. Probably around 2000/3000 pages which explain everything you'd ever need to know with great ease and simple examples. I still use it as a reference. If you need it, PM and i'll send the title and author.
It's a problem with the way ViewState is configured on the machine. Have a look at this: http://www.codinghorror.com/blog/archives/000132.html
When you created each user did you approve their account? Make sure each user is in the 'approved' status, otherwise they won't validate.
Ok I put some breakpoints at:
if (FileUpload.PostedFile != null)
and
int nFileLen = myFile.ContentLength;
And when i move the curser over:
int nFileLen = myFile.ContentLength;
it writes: myFile.ContentLength 0does that meen that it thinks that the file doesn't fill more than 0?
and how do I change that?
Open your web.config. Look at the <authentication> tag and check the mode. Is it set to "Forms"? If so, change it to "Windows". This *should* work. Note, however, that anybody running that page will run as aspnet user. You can use impersonation to impersonate an account with less privileges. Now, don't judge me on this but this probably makes sense since you're uploading data to the server, i'd imagine you have to be able to do this as a privileged user, hence the windows authentication mode. Hope that helps.
Okay, i just saw a reference to Update Panel in your page code, but your upload control is declared outside of it. Use breakpoints and run your page in debug mode. Set break points inside of the first if statement and see what you're getting in FileUpload.PostedFile. Check for any internal errors and property values.
Also, don't use system.io to save the file. You can do so with FileUpload.PostedFile.SaveAs();
FileUploader control does not work in the upload panel. In other words, it isn't Ajax compatible control. You need to do a regular postback through a trigger. It's a security constraint in the design of the component. You can look it up on msdn.
That's not true, you can write unmanaged code in C#.
Why should you?
It's one of the aspects of C# I like the most! I am tired of destructors who destruct something that's already destructed and tired off difficult to trace pointer and handle errors.
You said it yourself It's more stable, better structured but slower.
Btw : slower? With the fast computers of today that becomes an issue of lesser importance.
It's designed for a managed platform. That doesn't mean you can't write unmanaged code. You can still write your assembler and use pointers, but that isn't the aim of the .net platform.
As far as speed, like someone said games are heavy on performance and speed. I probably wouldn't write a professional game in XNA. Why? Memory and Framerate. You don't know when you garbage will be collected meaning you don't know your CPU usage. Since garbage may not be allocated right away, it stays in memory which is an overhead. This'll dramatically screw with your FPS. This is just one of the easiest examples.
C# is the microsoft's version of Java and C++ mix. It's designed for a managed platform. It's more stable, better structured but slower. I think there is managed C++ nowdays, but i've never used it.
That doesn't even make sense. You're talking about a function, not a module, and you're talking about finding a sum when only one argument has been passed.
It's the sum of the squares of a number. You do not need the second number. But yeah, the term module doesn't make sense.
nova2177, modular programming, at least in reference to the old VB, refers to a collections of functions. Generally, a collection of related functions grouped into modules. But it seems like in your case your professor's referring to a function. But i'm not sure and this is why i asked you what language you're using.
Alright, perhaps what you're trying to create is a reusable class which utilizes this algorithm. What languages is this going to be done in? You could probably start looking at object oriented programming. I think that's what you're looking for.
What exactly are you refering to, when you say 'modular'? You mean how to write a function/procedure based on an algorithm? Or are you trying to write a pseudo-code using some sort or algorithm? Pseudo-code isn't really dependent on any language. I think there is a standardized way of writing pseudo-code, but it's generally written in a form that is the the easiest to understand. Have a look at some examples: http://en.wikipedia.org/wiki/Pseudocode
MIS is similar to Computer Science, but is more heavier on the business side and IT systems (servers, routers and etc) rather than the actual software engineering. A lot of things you'd learn as an MIS major is how to run an IT business. Computer Science is mostly about software design/planning/engineering and computer architecture such as gates, adders, multiplexers, decoders, caches, etc and how they're used in computer components.
CS is also heavy on math. You're looking at 3 calc classes, discrete math, differential equations, some probability for computer networks and applications, numerical analysis and some physics. I'm not entirely sure, but i think MIS only covers half of that. Finally, you'll be dealing with a bunch of programming classes in CS. MIS only covers a few, to get your feet wet. The rest would be business classes.
Hopefully you haven't changed your mind about CS, in case you wanted to take this diection :) It's not as difficult as it may seem but you'll need to be ready for some heavy studying. MIS is like a shortcut to the IT world. You'll probably be able to land a job as a developer after getting you degree. However, lot of people do technical support or Quality Assurance (they're software testers, documentation and project planning guys.)