It might be a dupe but I cannot find a straight answer. If a person is about to start learning web development over .Net framework, which technology should he go for ?
Asp.Net WebForms
Asp.Net MVC
keeping in view these three aspects
future scope
complexity
features
Note: has done some WinForms programming using C#
Thanks
...
On most platforms and with most JVMs you can pre-allocate the heap on start-up by setting the -Xmx and -Xms options (or a variant thereof) to the same size.
Is it possible to do the same with .NET, and if so, how?
...
MolhadoRef is a refactoring-aware SCM
tool that is capable of capturing and
versioning of the semantics of Java
program entities and refactoring
operations that were performed on
those entities.
Does anyone know of such a system in the .NET universe?
(Why is it that .NET always seems to be way behind java with the type of ...
I'm attempting to add in an access rule to a RegistryKey like so:
using ( RegistryKey registry = OpenOrCreateMyKey() )
{
RegistrySecurity security = registry.GetAccessControl();
security.AddAccessRule( new RegistryAccessRule(
new SecurityIdentifier( WellKnownSidType.BuiltinUsersSid, null ),
RegistryRights.WriteKe...
I can map incoming class names by using a SerializationBinder and overriding the BindToType method, but I found no way of changing the name of the class in the serialization process. Is it possible at all??
EDIT:
I am referring to the serialization using the System.Runtime.Serialization, and not the System.Xml.Serialization.
Thanks!
...
I have a rules file for workflow within my solution and its properties are
Build Action = Embedded Resource,
Copy to Output Directory = Copy always
I can't change the build action to Content, otherwise the workflow compilation won't work. However, I need the file to be deployed to the output folder and it seems not to work. I...
Hi
I have a form that allows users to insert items in the database. I call Scope_Identity() to get last identity value inserted. This works ok. When inserting the item a passowrd is randomly generated which is also saved in my database. I need to retrieve this password as well, immediately after the item is inserted. How do I do this?
...
I want to try a few things with the new version of the framework, but I use my machine to develop quite a few .NET 3.5 applications.
Will I be able to uninstall the framework and Vs 2010 without problems or incompatibilities? Has anyone tried it?
...
Hi,
I've got an issue where i'm trying to call an object in spring.net through a ProxyFactoryObject. Now the the object that i'm calling in the factory has one constructor which takes in another object by reference through constructor injection. When i call the proxy from the c# code the correct target object is returned from the prox...
I have a class that I want to be serializable but contains a public instance of delegate that, apparently can't be serialized:
<Serializable()> Class A
Public Delegate Function TestEventHandler(ByVal myObj as CutomObject, _
ByVal myObj2 as CustomObject) as Boolean
' does not 'want' to be...
Afternoon all.
Here's an easy one for you that I can't figure out.
I have a requiredfield validator that is doing its job too well! Upon the lnkLogOut, the user should be logged out but the requiredfield validator is preventing this.
protected void lnkLogOut_Click(object sender, EventArgs e)
{
Session.Abandon();
...
Hello,
I'm hosting WCF services in Asp.net web page in ASP.NET Compatibility Mode
(AspNetCompatibilityRequirementsMode.Allowed). I've written simple HttpModule:
public class ExceptionInterceptor : IHttpModule
{
public ExceptionInterceptor()
{
}
public void Dispose()
{
}
public void Init(HttpApplication co...
Hi,
I find that HTTP Streaming / Server Push is quite promising for my project. Does someone have any clue on how to implement this in Windows Mobile?
.NET / Native / other implementations are welcomed. Preferably with permissive license.
some links on HTTP Steaming / Server Push:
- Push Technology
- Streaming HTTP / Server Push
- Cro...
I have a system which periodically checks a mailbox for new items, and if there are any there downloads them, matches the subject line to a regex and processes them accordingly. I am using this to monitor daily report files and it works well when the file attached to an email is an excel / CSV file, however when the attachment is an HTM...
public class ErrorLogModel
{
public int UnitID { get; set; }
public string Address { get; set; }
public IList<HardwareLogModel> _Hardware { get; set; }
}
public class SPLHardwareLogModel
{
public Guid HardwareID { get; set; }
public string HardwareDesc { get; set; }
public string HardwareStatus { get; set; }...
Hi all,
I have the following DB model:
**Person table**
ID | Name | StateId
------------------------------
1 Joe 1
2 Peter 1
3 John 2
**State table**
ID | Desc
------------------------------
1 Working
2 Vacation
and domain model would be (simplified):
public...
A LinkedList can't be serialized using XmlSerializer.
Now, how to however save/retrieve data from a serialized objet LinkedList. Should I implement custom serialization?
What I tried to do:
using System.Xml.Serialization;
[Serializable()]
public class TestClass
{
private int _Id;
private string _Name;
private int _Age;
...
Hi,
i am working on an intranet application which should able to control sub-applications. As part of the application i want to read the logs of the sub-applications. the sub applications are keeping the connection alive by sending an alive signal every 15 minutes. so the channel is not closed - this works fine, for many days.
but when...
Quiz question: What is the output of running the following program:
Sub Main()
Try
CallToMethodThatThrowsException()
Catch ex As ArgumentException
Console.WriteLine("Argument exception caught")
Finally
Console.WriteLine("Outer finally block")
End Try
End Sub
Public Sub CallToMet...
Is this post (http://blogs.msdn.com/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code.aspx) still the preferred method for debugging framework code from visual studio? Or has anything changed?
...