I'm writing a component that I would like to be able to use in both MVC and WebForms web apps, but I'm not sure how to handle the differences between how HttpContext is handled.
My component involves a custom IHttpHandler (for WebForms) or a custom ActionResult (for MVC).
So I've got a few questions:
Is there a way to use an IHttpHan...
if i have a search function for my site and i want the user's former search preferences to be available at any page on my site where the search module is available all i can think of is to convert the $_POST variable to a cookie...
but i am just modifying what was already constructed by another person whom i replaced, and i dont know if ...
Hi,
I have an existing asp.net webforms project that uses Microsoft's Enterprise DAAB for the DAL, I need to implement some extensive features, and I would like to use NHibernate to make things easier.
Is there any design patterns/architectures out there that allow a hybrid DAAB/NHibernate DAL ? is it a good idea ?
My thinking is: if ...
I always put calls to Response.Redirect in my WebForm's OnLoad method, mostly because every example I've seen do that. I was wondering if it was any more efficient (and correct) to do that in OnPreInit? Even if the endResponse param is true?
...
I've had several clients ask this, and I've never been able to get or give a satisfactory answer. Can you (practically) put a working form into an HTML email?
My understanding is that you can, but that there's no guarantee of email clients properly handling it, so that method would only be practical with individual recipients that you'd...
I have an ASP.NET webforms application with a Menu control. How does one hide a particular menu item via code? I've seen a few articles pointing out how to do it with ASP.Net membership/roles-based security, but this particular use case has nothing to do with that. I simply need a way to programmatically remove a menu item from code. Any...
I have a simple form with some plain html input like bellow using ASP.NET Web Forms (not MVC)
<table id="tbl_SchoolDetails">
<tbody id="tbody_SchoolDetails">
<tr>
<td>
School Name
</td>
<td>
<input id="SchoolDetails_SchoolName" type="text" value="<%= ViewModel.School.Name %...
I’ve to build a HTML survey builder application with an AJAXified user interface (i.e.Wufoo,...).
The typical survey will be multistep with multi-dependencies between form fields/questions, public access most of the time, and export results to PDF + CSV.
Have been studying/testing some PHP frameworks ( CodeIgniter, Symfony and CakePHP)...
I've got a problem on a webforms application where a user selects some criteria from dropdowns on the page and hits a button on the page which calls this method:
protected void btnSearch_Click(object sender, EventArgs e)
They then click on button to download a zip file based on the criteria which calls this method:
protected void btn...
Hi,
I am trying to use the asp.net ajax toolkit masked edit control to take an hour/minute input with the mask 99:99 and the masktype="time" property set.
However it doesn't seem to do any time validation client or server side.... it allows me to input any numbers like 88:77 which isn't a valid time.
Is this a bug in the control or is...
i am using enum keyword to define set of values and the values are coming from database tables.
I am not confident that this values will remain constant in database and in switch case statement we need to give constant values so..how to solve this problem..please reply me....
...
I need to be able to view an embedded pdf in an ASP.Net form as well as print and save the document back to the web server. The pdf document allows filling out of various fields and I also need to have a Print and Save button that's on the form that's not in the pdf default viewer.
So the scenario is the user opens a pdf document in an ...
Why does the WinForms default name for controls start with lowercase, but is uppercase for WebForms? What's the likely rationale for this?
...
Duplicate:
Should I pursue ASP.NET WebForms or ASP.NET MVC?
We are developing an enterprise application which uses client-server architecture. It is based on .NET Framework 3.5, the client is a rich WinFom application and the entire system is in Beta testing stage. We need to exposed some of this system's functionality through web....
How can I find out which FORM an HTML element is contained within, using a simple/small bit of JavaScript? In the example below, if I have already got hold of the SPAN called 'message', how can I easily get to the FORM element?
<form name="whatever">
<div>
<span id="message"></span>
</div>
</form>
The SPAN might be nes...
What PHP function file can return the current date/time?
...
I've got a pretty simple site (around 8 pages) with only one way page containing any significant codebehind, and I'd like to try learning MVC, using it as the test.
Is it best to start a new MVC Web App from scratch and cut-and-paste the HTML in, or will it be easier to retool the existing files.
Basically, what am I in for? What's it ...
I have an existing asp.net webforms application with all its business logic and DAL in the app_code folder.
What is the best way to structure tests with nunit ? Add a separate test project to the solution or do I have to put the tests in the app_Code folder ?
...
I'm using forms authentication on a very small ASP.NET web app (Web Forms) in which I want to store additional info about the user in a separate database table.
This is then linked back to the aspnet_User table and I was figuring the best column to link to is the UserId column. Problem is I can't work out how to get this piece of data w...
We got strange error last days. ___doPostBack is undefined.
We are building quite advanced website, but not using postbacks much. One of place where postback used is ASP.NET Login Status control.
It is probabalystic, sometime it is rendered, sometimes - not. For IE, Chrome it works mostly fine, but from FireFox it is quite high chance ...