I've got the following Setup in my Theme:
\App_Themes\Default\StyleSheet.css
\App_Themes\Default\PrintStyleSheet.css
The PrintStyleSheet.css file has a set of printing css rules set in them wrapped in an @Media Print { } block.
I need a way to programmatically remove the PrintStyleSheet.css from the list of css files for ASP.NET to ...
Is there a way to determine if running app is WinForms or Web at runtime?
[Edit]
Is there actually a problem if I reference both System.Web and System.Windows.Forms in my class library?
[Summary] (so far)
What I've learned so far:
HttpContext.Current is null if checked in an async thread, so it cannot reliably be used in a helper m...
I'm working with forms inside jQuery Dialog, and am having some issues with the data it's posting. First load and save works fine, posts the correct data. Until I refresh the page though, every subsequent load seems to work, as in the correct data is in the form, however, when saved, the data from the first load is what is posted every t...
In ASP.Net MVC action methods can return json objects simply by returning something like so:
JSon([whatever])
How do I return a JSon representation of say List<String> with webforms either through a service or through a method in the code behind of an aspx page? This seems incredibly confusing compared to ASP.Net MVC.
...
I want to post russian text on a CP1251 site using LWP::UserAgent and get following results:
# $text="Русский текст"; obtained from command line
FIELD_NAME => $text # result: Г?в г'В?г'В?г'В?г?вєг?вёг?в? Г'В'Г?вчг?вєг'В?г'В'
$text=Encode::decode_utf8($text);
FIELD_NAME => $text ...
I need to find a child control in a winforms panel. I was wondering if there is a method similar to Panel.FindControl() of the asp.net webforms panel in the .net winforms version
...
I've got a pile of code here that looks like this:
if (stateTax > 0)
{
tr = new TableRow();
tbl.Rows.Add(tr);
td = new TableCell();
td.CssClass = "stdLabel";
td.Text = "NY State Tax";
tr.Cells.Add(td);
td = new TableCell();
td.Text = string.Format("{0:C}", stateTax);
td.CssClass = "justRight";
tr...
Hi,
I have an ImageMap control in an ascx file of mine. I'm trying to make something happen when the user clicks on an area in the map, but the page just posts back without my "imageMap_Click" event handler never being invoked. Suggestions?
<asp:ImageMap ID="imageMap" runat="server" ImageUrl="~/images/MapImages/map.jpg" HotSpotMode="Po...
I am attempting to use the MapPageRoute feature in Visual Studio 2010 and
.NET Framework 4.0 with a asp.net webforms application.
What I have noticed is that if I define a page route called "Default" like
below and the page Default.aspx exists in the project, then the route does
not work.
routes.MapPageRoute("Default", "defa...
Is it possible in my RegisterRoutes method in global.asax, to map some routes to an asmx?
Ideally I would like to do something like:
routes.MapPageRoute("ServiceSearchCats", "services/search/cats", "~/Services/Search.asmx/Cats");
(and therefore my endpoint for the service becomes "http://mydomain.com/services/search/cats", instead of...
I have come across the ASP.NET ready made controls like grid, repeater... etc.
For example while dealing with GRID i remember following facts,
ASP.NET V1.1 has DataGrid with "virtual row count" which is heavily used for custom paging which is need of big sites to perform well.
ASP.NET V2.0 added the GridView with all sort of cool fea...
I have embeded a Google Doc Form into my website. I have added a field for attaching a file. By default I have
form action="https://spreadsheets.google.com/formResponse?formkey=..." method="post"
I want to make it so form action="submit.php"
That way, in the php file, I can add the code to save the uploaded file on to the server. But ...
I have a Web Site project, and within it I have a user Web Control defined in an ascx file.
The control is added to the Site.Master, and it shows up correctly on the page and everything is fine.
I need to override some of the control's fields on one of the pages that derive from Site.Master.
// In OnLoad:
MyControlName control = (My...
I have build a Custom Control with an ImageURL property. At design time when I enter an image in the ImageUrl I get the following error message
Error Creating Control - AmazeDropDownList1'~/Image/help.png' could not be set on property 'ImageUrl'.
<myCompany:MyCompanyDropDownList ID="AmazeDropDownList1" runat="server" ImageUrl="~/Image...
I've been slowly transitioning from a traditional web forms architecture to the MVP pattern (Passive View). So far, it's been fairly easy to implement b/c the views I've dealt with have all employed a classic PostBack model.
However, I've come across my first view that will refresh portions of itself via web services. I can't grok w...
I'm looking for an open source php form builder or form generator to add/edit/delete/search records?
I have to create a simple manager for some records, it's a common application that should be found easily, but I can't find any good code/class/application/etc :(
Any help is appreciated.
...
I've seen this advice...
ideally the web should follow the REST principle and be completely stateless. Therefore a single URL should identify a single resource, without having to keep the navigation history of each user.
...and I read the Wikipedia page http://en.wikipedia.org/wiki/REST and it really sounds good, but I don't get ho...
I have a search form where several checkboxes are checked by default. When the form submits, as a GET, the url will only contain the list of checkboxes that were left checked.
http://www.example.com/page/?checkbox1=yes&checkbox2=yes
It is difficult with this scenario to determine the difference between when a user first arrives a...
Hey there,
What is the best way to get a number of property values of a business object from the View to the Presenter in a WebFormsMvp page?
Bearing in mind this issue with DataSources: http://bit.ly/dtQhw0
Here is what i propose:
The scenario is, I have a business object called Quote which i would like to load form the database, e...
Hello,
I want to give my users the option to build and save web forms.
Can you please recommend plugins/frameworks/scripts which do that?
Regards,
Jon
...