I need to get the ID of a dropdownlist (ASP.Net Control) So that I can tell if an item has been selected.
Right now I am trying to just write the count of the dropdownlist to an alert box as follows:
OnClientClick="alert(document.getElementID('<%=ListBox1.ClientID %>').options.length)
The error I get is 'document required.'
...
In my .ascx usercontrol i'm trying to dynamically generate links using a value i've stored in web.config.
<a href="<%$appSettings.MYPATH%>/file.aspx">link</a>
and when i try running, i get a parser error
Literal expressions like '<%$appSettings.MYPATH %>' are not allowed. Use <asp:Literal runat="server" Text="<%$appSettings.MYPATH%>...
Does anyone have experience with companies that have migrated from classic Asp to .Net badly?
In this company, the "folder" icon that represents a Solution and the "folder" icon that represents a Project and the "folder" icon that represents a file directory are all the same thing.
The .Net IDE is just a better notepad.
The entire com...
According to Miguel de Icaza posts (here and here) and Lluis Sanchez Gual post (here and here) MonoDevelop for Windows will be ready soon. Personally I'm very interesed in using MonoDevelop under Windows for developing open source projects for ASP.NET MVC. Yes, it's better to work in MonoDevelop under Linux but for many reasons I can not...
I have a couple of asp.net pages with TextBox controls on them. Some of them postback on enter (within a TextBox control) and others don't. For the life of me, I can't figure out why or why not...
I don't think this has anything to do with asp.net. Not using ajax etc. Tried playing with a very simple html page and still can't figure it ...
Hello
When the page first load i have a label who has 0 or 1. Look at the code and you will se what i trying to do. But it don't work because the page allready loaded.
protected void rptBugStatus_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemTy...
Hi. First of all, I'm a asp.net n00b, so bare with me. :)
I'm working through examples in a book trying to learn ASP.NET, and I've stumbled on something strange in there. First of all, if I type it as it's written in the book, VS gives me errors. This is the code as it's written in the book:
<asp:DataList ID="employeesList" runat="...
Is there a way to have a web service (WCF/ASMX/etc) call do some processing after it returns it's results? Note I'm not looking for a asynchronous calls as the client needs the result back ASAP, before the the extra processing is done.
The primary constraint is that as far as I can tell, the only way for me to run code on my server is v...
Hello I have a asp.net webpage, it has two search fields with separate submit buttons.
I'd like to allow the user to enter some data into one of the fields and then press the enter key and it submit using the appropriate button. Right now, the enter key submits for the first submit button, but I want this to change if there is data in t...
I'm using code from this article on a thumbnail handler, but when I reference my handler in a URL, something hangs. A breakpoint on the first line, int _width = 0; is never hit, and FF keeps waiting for the page. When I place exactly the same code in a page's code-behind, and reference that page in the img URL, it works as expected. W...
I simply want to add some Javascript checks when an item is inserted or edited. The only way I know of to do this (using inline Javascript) would be to disable the AutoGenerateXxxButton properties for the DetailsView and make my own. The issues I'm having is replacing them with custom LinkButtons (and keeping the default action) and addi...
There are lots of design patterns are available for developing the asp.net site. Every one design patterns are having their pros and cons. I want to develop high performance application using asp.net. Which pattern i should follow?
...
Is there a feature compatible alternative to the asp:ListView control that came with ASP.NET 3.5? Due to some recent issues with a certain hosting provider's installation of SP1, I'm looking for a temporary stand in for the ListView that can be dropped into place with minimal change to the rest of my code.
One simple alternative would b...
Hi,
Is it possible to change the graphics for the arrow down on the dropdownlist control, without having to create a custom control? I need all the normal properties, just want to style the arrow down a bit.
...
Which things i should take care to develop high performance asp.net application.
...
The code is below and checkbox is always FALSE. But on page it is different. It doesn't get checked or unchecked.
<script type="text/javascript">
$('.cbOzelHastaAdi').unbind('click');
$('.cbOzelHastaAdi').click( function() {
var parentDiv = $(this).parent().get(0);
var cbs = $(parentDiv).find('table input:checkbox');
if(...
Hi,
I have deployed an application written in ASP.NET 2.0 into production and it's experiencing some latency issues. Pages are taking about 4-5 seconds to load. GridView refreshing are taking around the same time to load.
The app runs fine on the develpment box. I did the following investigation on the server
Checked the available mem...
I would like to do something similar to the code in the link below (but other solutions are gratefully accepted), but instead of changing the background color for menu items, I would like to change the width. Specifically, I would like the first menuitem to have a width of 30 px and all other menuitems a width of 200 px.
http://stackov...
I am writing an asp.net application and have a form where a user must press a key to have a textbox become visible so that he/she can login. When the key is pressed, I want a label to disappear and a textbox to become visible. For some reason the 'onkeydown' event is not firing in FF or IE, but it works fine in Chrome. The application wi...
Background
In the spirit of continuous integration, I'm trying to automate our deployment process using a Web Deployment Project. Mostly, this has been painless. Most options were baked in and those that weren't were easy to add through the MSBuild XML interface.
However, I cannot seem to find an option for deploying to a remote IIS ...