I'm using the accordion Ajax control. For each Accordion pane I have text and a Button dynamically created. When the user fires the click event I want to know what button in which pane was fired. So I want to handle the button's click event in a way that I can send the ID (probably by event args) to the event handler in order for the han...
I have an aspx page defined as follows:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" language='javascript'>
function changecolor() {
var lbl = document.getElementById('lblDisplayDate');
lbl.style.color = 'red';
};
</script>
...
I have a HttpHandler called Handler that I compile into a DLL and put in the /bin folder of my ASP.NET app. Then I have a .ashx file:
<% @ webhandler language="C#" class="Handler" %>
but I get a cannot create type 'Handler' error.
However, if I wrap Handler in a gratuitous namespace, say foo, and change the .ashx to
<% @ webhandler ...
Hi,
I have an ASP.NET 2.0 web application(C#) where I wanted to enable Single Sign On. I want only certain users to have access to all the pages, but others to only see a few pages. What changes do I need to make to my Web.config file, and what code would I need in my code-behind for the pages?
Thank you
...
I'm trying to determine the best way to implement a 404 page in a standard ASP.NET web application. I currently catch 404 errors in the Application_Error event in the Global.asax file and redirect to a friendly 404.aspx page. The problem is that the request sees a 302 redirect followed by a 404 page missing. Is there a way to bypass t...
I have a Gridview with alternating row colors and want to highlight a row when its clicked anywhere on that row. Unfortunaly, the code that I found and am using applies the darker color shade to the previously clicked row. For example, If out of a 4 row gridview, 2 and 4 are shaded silver, while the other 2 are white. If I click on r...
I need to create a service that will return XML containing data from the database. So I am thinking about using an ASHX that will accept things like date range and POST an XML file back. I have dealt with pages pulling data from SQL Server and populating into a datagrid for visual display but never into XML for delivery, what is the best...
I have yet to find a "nice" way to do two way databinding in .Net.
The one thing I don't like for example in the present asp.net two way databinding is doing the binding in the aspx page is no compile time checking, ie:
<asp:TextBox ID="TitleTextBox"
runat="server" Text='<%# Bind("Title_oops_spelled_wrong") %>'>...
I have a StackedBar which shows 5 values per bar, with the data value displayed in the middle of each block. So far, so good. However, when the value is zero, the value is still being displayed, which is messy when there are a lot of zeroes.
I would like to be able to hide the label for a zero. How can I do that?
(I presume I could do ...
I have a masterpage with a Login Control in it. When the Login button is clicked, I would like for a JQuery Dialog to popup if the user's membership is about to expire within 30 days, else it will just log them in as normal. I can't figure out how to do it. I wll post parts of code:
Here is the javascript:
<script type="text/javascr...
I'm implementing a custom controller in ASP.NET MVC and really want to be able to use a colon in the urls, so that I can identify class/column names and their values, like so:
http://mysite.com/user:chaiguy
...but apparently ASP.NET or IIS doesn't allow colons in urls. I did some digging and apparently it's considered a security issue,...
I am looking to access the content of a web page that is going to be written to the browser. I have played around and tested using Form Adapters and that works great for any content between <form> and </form> but the content that falls outside of it is not in the context that is passed to the Form adapter.
Is there a way (via an HTTP M...
I have an ASPX page that redirects to a page that has an IFRAME which requests an ASP page on an entirely different domain. Once I'm done doing what I need to do there, I need to get back to the original ASPX page.
Is there anyway to do this? history.goback(-1) does not work as it just refreshes the IFRAME. Any suggestions?
...
If you were going to set up a Email Alerts for the customers of your website to subscribe to, what rules of etiquette ought to be followed?
I can think of a few off the top of my head:
Users can Opt-Out
Text Only (Or tasteful Remote Images)
Not sent out more than once a week
Clients have fine-grained control over what they receive ema...
Before we were not using Crystal Reports. In our project now we have added Crystal Reports to our project. When I transferred my project to the server it produced a Crystal error.
I suspect that Crystal is not installed on the server. Then installed Crystal 11 on the server. The development machines have Crystal 8.5. The server produces ...
What is the purpose of adding the batch="false" in the compilation tag in ASP.NET 1.1?
...
How can I add a string property to my ASP.NET custom control that will result in the designer (either in HTML view or wysiwyg view) providing auto-complete by providing a list of some 30 suggested strings, while allowing for custom strings to be input?
Right now I'm using a property of type enum to allow the user to select from a list, ...
We have questions about free .NET libraries and applications, but I'm curious about what ASP.NET control packages you've used that provide the best bang for your buck. Yes, paid stuff.
I'll get the ball rolling by saying I love the Telerik controls, but their price tag isn't great. The one reason I would say the value is the greatest he...
I have contentpage overriding the OnInit event of a masterpage. The override works fine, until I put a custom user control on the page: in this case the OnInit event does not fire for the contentpage (no overrides are used in the user control)
What are the possible causes/solutions for this? (I use the OnInit event to create dynamic con...
I'm trying to setup ELMAH to log errors for our application. I have successfully added the modules and am having no problems loading the ErrorLog page (elmah.axd). However, Elmah isn't logging any test exceptions that I'm generating.
My web.config looks like this:
<configSections>
<!-- Other stuff -->
<sectionGroup name="elma...