asp.net

child combo doesnot get populated on changing parent combo on up/down key press while navigated through tab control...

i have 2 combobox A & B.. the values in B is populated according to selected value in A,, my code works fine when i click combo A and select a item,, the values according to it get populated on combo B. i have written it on the change event... But when i use tab to navigate and select the items in combo A and change on pressing keyboar...

MOSS 2007 404 error when accessing Lists.asmx webservice

Currently I have an ASP.net 4.0 app in which I've made a web reference to an MOSS 2007 server. When I access any lists.asmx methods from the root application, everything works fine. However, if I try to change the service URL in C# code-behind to that of a subfolders list.asmx, then access the any method, I get a 404 error. The really st...

Connect ActiveDirectory with ASP.NET or PHP

Hi Im looking to create a web application using ASP.NET MVC or PHP (not decided yet!) and I want to use the local ActiveDirectory to register users. Can anyone point out how to do this on PHP or ASP.NET? Would like answers on any of the technologies Best regards, David ...

Static field initializer runs before Application_start, sometimes

I've got an ASP.NET web app that is starting to show some very strange behavior. Here's some example code: // in Bar.cs public class Bar { public static Baz baz = Something.Step2(); } // in Global.asax public void Application_Start(...) { Something.Step1(); } The short version of the story is this: On some machines, Something...

How do I make an ASP.Net GridView postback on an onBlur event?

I have an ASP.Net GridView, with two columns ("ID" and "name"). The name column is editable via an <asp:TextBox>. What I want to do is have the grid trigger its update event when the user clicks away from an editable cell. I know I can attach an onBlur event handler to the TextBox to retrieve the value when the user clicks away. Ho...

TELERIK/ASP.NET - Cannot retrieve textbox text, from code behind.

I have a Telerik:RadTextBox control in my markup called txtName. I'm trying to retrieve the inputed value in the code behind with foo = txtName.Text; but var and txtName always show an empty string. Any ideas? Markup <telerik:RadTextBox ID="txtName" Runat="server" Width="300px" /> CodeBehind campaign.Name = txtName.Text.Trim(); I...

Handling the submit action of two TextBoxes

I have an ASP.net page. That has an Ajax Toolkit Tab Control. That has tabs. That have custom ascx controls I wrote. I have a text box that perform a search action. It is declared like this: <asp:TextBox ID="txtPrereqSearch" runat="server" ontextchanged="txtPrereqSearch_TextChanged"></asp:TextBox> Nothin...

change cursor to busy while page is loading

I understand how to use javascript to change the cursor to busy while the page is making and ajax call. However I have a page that does not use ajax, it uses a postback to reload the page. However the load is rather data intensive and it takes a few seconds. During this time the user can still click on the page. I want to turn the curs...

IIS 7.0 reflect web site changes

I have published a website on my windows server using IIS 7.0 and visual studio 2010. Its an asp.net project. While publishing it I chose the option "Allow this precompiled site to be updatable" But what I do not know is how to update it when I change my templates/pages/IP address etc in my visual studio project files? I have to rem...

Is there a "single line" way to generate an encrypted string?

I want to generate a link http://site/?code=xxxxxxxxxx Where xxxxxxxxxx is an encrypted string generated from the string user01. And I will need to convert it back later. Is there a simple way to encrypt and decrypt a string like this? ...

Validating controls in ListView insert/edit templates

Hello, I added a RequiredFieldValidator to my InsertItemTemplate, and it seems to be working fine. The problem I am having, however, is that now I cannot do anything else in the ListView (like edit or delete items) UNLESS the required field has a value. Is there some way I can manually do the validation when the user clicks the 'Inser...

Response.TransmitFile OnSucess OnFail? Also, how many concurrent downloads?

Hi, I've got an app that user's can download a file through. I need to log when the file transfer completed successfully and also when it failed. Is this possible with Response.TransmitFile. Here is my code: Response.ContentType = "application/octet-stream"; Response.AppendHeader("Content-Disposition", "attachment; filename...

What are the ways to perform these using LINQ?

Though I liked LINQ very much and using in our current project, sometimes we are facing problem to solve the following. Returning multiple results (tables) with single DB call from database and binding the same in ASP.NET. In case of stored procedures, using single SP we can perform multiple operations with single DB call. Using LINQ, ...

ASP.NET authentication - multi-app and multi-user database

We have a simple ASP.NET app that uses the ASP.NET SqlMembershipProvider and all is great. We want to create a second app on the same server, also use the SqlMembershipProvider, but a different "applicationName" so that the user accounts between the two apps are kept separate. It looks like this would be possible by making the two di...

ASP.NET Server Control - Is shared Viewstate between controls possible

If I have a master 'composite custom server control', with several child custom controls, is it possible, for the master control to share its viewstate with the child controls, which are also custom composite server controls,(all of the controls are composite custom server controls)? To expand a little more, say I have a Person control...

Using "SQL IN" in <asp:SelectCommand>

Hello Everyone!, I want to refresh GridView based upon whether a particular <asp:CheckBox> has been selected or not. I am using <asp:SqlDataSource with a SelectCommand and my query goes like this.. SelectCommand="SELECT * from [Table1] where [COL1] in (case when @checkbox=1 then 'FOO' else 'BAR')... and the <SelectParameters> have b...

BeginRequest fires for static files in ASP.NET MVC app

I was under the impression that static files (CSS, images, @font-face files, etc) bypassed ASP.NET completely, and were served directly by IIS. However, my BeginRequest event handler is being called for every HTTP request, including those for static files. This concerns me because I'm creating an Entity Framework data context to be u...

DatumChooser and Popup

Is there any library that contain DatumChoser control and PopUp control ( ASP.NET, C#)? There are no those controls in standard controls, like Label for example. What I need to include ? ...

ASP.NET Repeater not binding after ItemCommand

Hello I have a repeater that is looping a user control, like this: <asp:Repeater ID="repItems" runat="server" EnableViewState="false" OnItemCommand="repItems_ItemCommand"> <ItemTemplate> <dmg:confirmItem runat="server" OnDataBinding="confirmitemItem_DataBindi...

header and footer that always appear at top and complete bottom

I know I can just use a master page, but what markup do I use on the master page to always have a header at the top and a footer all the way at the bottom using some CSS code? ...