We're looking at removing all of the static resources (mainly images) in our ASP.NET 2.0 web app, and moving them to their own separate server. The main design requirements are for speed (so caching will be important) and a minimal level of security (so that people can't just directly download or rip off the images). Using a plain .net 2...
Hi,
I have a default.aspx file and 2 user controls.
Code for user control 1
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %>
<%@ Register Src="~/WebUserControl2.ascx" TagName="wc1" TagPrefix="asp2" %>
<asp2:wc1 ID="control1" runat="server" />
Code for user control 2
<...
If user clicks on a side of the text in the drop down menu, the menu disappears but system performs no action and user needs to click right on the text.
Clicking on a side should not disappear the menu but should stay there so that user should know that he has not clicked on the right place.
OR
Clicking on a side of the text should p...
I am working In dotNet Framework 3.5 ASP.NET C#. I want to create Campaign in Microsoft AdCenter API Version 6.0. For that I reffered the website 'http://msdn.microsoft.com/en-us/library/bb671919.aspx'. I created the same example with different Campaign Name (because campaign name is unique). But I got the error message 'Invalid client d...
I would like to have the following signature of a MVC controller.
public ActionResult Create(Persons[] p)
{
}
Is it possible to have something like this?
EDIT:
Let's say I would like to obtain an array of person objects by submitting a list of names separated by a special symbol.
For example I submit a form
<form>
<input name="...
I am trying to create a resizable GridView wrapped up as a server control. I am using the ResizableControlExtender from the AJAX Control Kit, which as far as I know requires that
the control that is to be resized
must reside inside a panel
the initial panel size
must match the initial target control
size.
I can do this happ...
I have a list of Accommodation objects bound to a Repeater, and then a nested Repeater which has the various attendee groups listed [e.g. Default, Seniors, Juniors]. This is all output fine, with the values displayed as LinkButtons, which when clicked gets sent to a code-behind event handler.
Here is an example of the output to give you...
this is my code
private void sendToClient(Dictionary<string, string> reportDic)
{
Response.Clear();
Response.BufferOutput = false;
String ReadmeText = "some text";
Response.ContentType = "application/zip";
Response.AddHeader("content-disposition", "filename=" + "filename.zip");
usi...
Scenario: We have a server where there are multiple ASP.NET websites hosted on it. A few days ago quite a few of these websites "broke" with the following error:
Warning 44 Could not resolve this reference. Could not locate the assembly "AjaxControlToolkit, Version=1.0.10920.32880, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, ...
Consider the following scenario which I'm due to find myself in shortly:
You're to begin coding a new project that will be a "community website" in ASP.NET and you have a completely blank canvas to work from. You have free reign to consider and evaluate (not necessarily use) any libraries and ways of working to try and produce the most e...
I was reading a blog today (http://somewebguy.wordpress.com/2009/07/20/is-encrypting-your-web-config-a-waste-of-time/) about both how to encrypt your appsettings/connectionstrings etc. using the aspnet_regiis tool.
He has a follow up post with some feedback from others saying this is a waste of time.
My question is, what do you think?...
I have a usercontrol in ASP.Net featuring a button that I use to postback. This button also has some Javascript validation that is done before it processes the event.
Today I tried to postback to another URL by setting the PostBackURL property of the button. But it didn't work and the page kept posting back to itself. So I did some inve...
I have an aspx page with three web controls: one to control the List Users page, one to control the Edit Users page, and one to control the Add User page. I have discovered a method for accessing these elements, but it seems to be limited. Here is what I have done:
Protected Sub editUser(ByVal sender As Object, ByVal e As System.Web...
I've read about the app_offline.htm file which can be placed within the root of a .NET 2.0 application which will in essence shut down the application and disable any other pages from being requested.
I've placed the file in the root, and my site still loads. I went into default documents in IIS and set it to app_offline.htm and the si...
All,
I have an ASP.NET(C#) that functions as expected with the integrated debugger/web server. However when I move it over to a IIS server it appears as though the cache object is not being set. Can anyone offer any help?
Here is the class that sets the cache and subsequent cookie.
class globals
{
public NameValueColl...
Hi friends,
I am tring to open the COM1 port but I am getting this error message "Access to the port 'COM1' is denied". Actualy, I am writing a program for sending SMS via net. I accept there could be an error, but "Access denied" error should not arised. Please give me any solution. If port requires any access privileges then how can I...
Hey guys,
i am making a website using asp.net and C# and well i got stuck at the first hurdle, i found out that to use code you use the <% %> with asp but i dont get how i would create an object of my class to use in the aspx file?
I think its syntax more than anything i cant seem to get to work.
Thanks,
Ash
...
I have some webservices hosted in a sharepoint environment on a virtual machine. These services are accessible from within the VM, but when I try to invoke this service from my asp.net application on the host machine I get an error with status 500 and a soap fault exception (unauthorized access). The IIS setting on both host and VM all...
The following headers work on IE but not on FF
<%@ Page Language="C#" ContentType="text/csv" Inherits="System.Web.Mvc.ViewPage"%>
<% Response.AddHeader("Content-Disposition", "filename=report.csv;attachment"); %>
In FF the suggested name in FF appears as "report" without the extension.
...
If I set a .ascx control's visible attribute to true, what event is called? What method can I create in that control's codebehind to act on this event?
Thanks :)
...