I have decorated my model using Metadata classes attached to my model classes via the MetadataType attribute. I have some use the Range attribute, Required attribute, etc. and some custom attributes I have created.
Now I want to hook into the rendering engine (or whatever it is called) of the Dynamic Data framework and be able to chang...
Consider the following code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
If Page.IsPostBack Then
If ViewState("test") IsNot Nothing Then
Response.Write((ViewState("test").ToString))
Else
Response.Write("Viewstate is empt...
UPDATE: I've been experimenting with my controls some more and I think I've gotten closer. Please read on for updated info.
I have 2 ASP.NET 2.0 user controls, one of which is placed inside of the other one. Inside of the inner control I have an HtmlAnchor tag control which I'm trying to set a URL for from the outer control. When I atte...
My web application worked very well in a Windows Server 2003 with .NET Framework 2.0. When I migrated to Windows Server 2008 with .NET Framework 3.5.
With the same code running in both servers the difference between them was the following: for a given async ASHX (IHttpAsyncHandler) the previous server automatically answered the request ...
I have an ASP.NET page. What I want to do is pass in an ID field that is in the querystring.
So if my page is
http://www.mysite.com/default.aspx?id=35
I want a silverlight control that is on this page to have access to the id field. My silverlight control is going to get data for a grid and it needs to use the id.
...
Hello all,
I have an asp.net update web app. Users go the the page, hit the update button and the program runs. We also want this program to run as a scheduled task everynight. Is this possible? How would you handle this?
thanks
...
After upgrading our web application to .NET 3.5 we noticed a strange issue with the Wizard control. Usually after IIS is restarted and a page with the control is loaded, the left hand navigation pane will not be displayed. Hitting this page again will solve this issue. It is also visible in dev environment, although it is intermittent an...
I have an asp.net application (relying party) that uses a passive STS for authentication and retrieval of claim values. The relying party is using the FederatedAuthenticationModule (FAM) to enable a passive redirect to the sts. I found documentation on how to specify required claims when using InformationCards, but have yet to find det...
Does the garbage collector clean up web service references or do I need to call dispose on the service reference after I'm finished calling whatever method I call?
...
I have a GridView that is populated via a database, inside the GridView tags I have:
<Columns>
<asp:TemplateField>
<ItemTemplate><asp:Panel ID="bar" runat="server" /></ItemTemplate>
</TemplateField>
</Columns>
Now, I want to be able to (in the code) apply a width attribute to the "bar" panel for each row that is generated. How...
I have a ListView that I am databinding to a collection of objects something like this:
int total;
List<Client> clientList =
clientData.GetClients(criteria, pageNum, pageSize, out total);
uxClientList.DataSource = clientList;
uxClientList.DataBind();
Where the pageNum, pageSize and total parameters facilitate paging at the data a...
Imagine I have some code to read from the start to end of a file like so:
while(sw.readline != null)
{
}
I want this to be fully asynchronous. When deriving from IHTTPAsyncHandler, where would this code go and where would would the code to get the content of each line go? I'm a little confused of how to use this interface as I haven't...
How can I change the Text for a CheckBox without a postback?
<asp:CheckBox ID="CheckBox1" runat="server" Text="Open" />
I would like to toggle the Text to read "Open" or "Closed" when the CheckBox is clicked on the client.
...
Hi i am looking for an events calendar where user can come in and add their events.. and then latter on other ppl can view it...
what i am looking for is something like this..
http://www.torontoparentsguide.com/Events/tabid/92/Default.aspx
...
When my ASP.NET application crashes (when it shows the default exception page), I'd like to be able to click on a line of the call stack in the browser and Visual Studio would open the code file at the given line.
Do you think it's possible ? Maybe with a macro/add-in ?
...
Hi! I have this question: "Does implementing a custom MembershipProvider class needs you to implement a custom Membership class too?" I am a bit confused about implementing a custom membership framework on ASP.NET.
I dont have sample classes to show you but what if the previous website used a database or schema that is different to the ...
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 small class that displays an alert via Javascript. I am using this class on a page that checks if the user entered a valid zip code. If a valid zip code is not entered, an alert is displayed, and the page is posted back to the same page so they can change it. If they enter a valid zip code, they are redirected to another page. T...
I have a very fast web server (IIS6, ASP.NET) that I want to use for several sites. Now, I already have a domain that maps directly to the IP address of the server, but how can I get another domain to map to a subfolder (i.e., a separate ASP.NET application) on that same computer? Is it theoretically possible? (note: only port 80 is open...
Hi,
I am working on a project which was developed in Visual Studio 2005 (.NET 2.0). I have Visual Studio 2008 and on opening the solution the files are converted to older framework.
But the project uses a AjaxControlKit which I guess is not available by default in ASP.NET 2.0 and hence it throws an error that a reference/library is mis...