Search

You searched for the word(s): userid:842878

Matching Posts

  • Re: Problems with javascript in Firefox

    Hi, Thanks for that, I had a look in the error console and found that the problem seems to in the code below: 'control' returns [object HTMLDivElement] but control.all is undefined. I did some googling and couldn't find why control.all is indefined in firefox function enableControl(controlId, bEnabled) { var control = document.getElementById(controlId); alert('control:' + control.all); if (control != null) { control.disabled = !bEnabled; for (i=0; i < control.all.length; i
    Posted to Client Side Web Development (Forum) by mdesoysa on 9/27/2009
  • Problems with javascript in Firefox

    Hi there, I am looking at some old code which has a radio button list: <asp:RadioButtonList id=rdolstCart Runat="server" RepeatDirection="Horizontal"> <asp:ListItem Value="Y">Yes</asp:ListItem> <asp:ListItem Value="N">No</asp:ListItem> </asp:RadioButtonList> and it is adding javascript on the onclick event using: rdolstCart.Attributes.Add("onclick", "javascript:rdolstCart_onclick('" + pnlCarrier.ClientID
    Posted to Client Side Web Development (Forum) by mdesoysa on 9/24/2009
  • Re: Javascript showing in IE but not firefox

    Hi there, There is no error, but the javascript should display 2 times (e.g: 12:30 p.m) - one in each span as shown in the code. In IE the times are displaying but not at all in firefox.
    Posted to Client Side Web Development (Forum) by mdesoysa on 9/22/2009
  • Javascript showing in IE but not firefox

    Hi there, The following javascript shows fine in IE but not in firefox. I used alerts to check that the values are correct for the variables and they are but they are just not being displayed? <%@ Control Language="c#" AutoEventWireup="false" Codebehind="UserInfo.ascx.cs" Inherits="CMSSource.Controls.UserInfo" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%> <div id="userInfo"> <div style="height: 40px"><
    Posted to Client Side Web Development (Forum) by mdesoysa on 9/21/2009
  • Re: Allowing nulls

    Hi there, I have added default values in the stored proc as specified in the link but when I refresh the stored proc and go to edit the report parameters, it still doesn't allow me to set either the ProjectID or ApplicationID as NULL. Any ideas?
  • Re: Allowing nulls

    CREATE PROCEDURE SDMReporting_GetUserActivityCount @ClientID int, @ApplicationID varchar(256) = NULL, @ProjectID varchar(256) = NULL, @FromDate datetime, @ToDate datetime AS BEGIN IF @ApplicationID IS NOT NULL -- This code runs if ApplicationID is available BEGIN -- For the new workitems created column DECLARE @Created AS TABLE ([Name] varchar(1000), New int) INSERT @Created SELECT DISTINCT CreatedByName, count(1) As [New WorkItems Raised Count] FROM ViewSDMReportingWorkItem WHERE Deleted = 0 AND
  • Allowing nulls

    Hi there, I have several parameters being passed into a stored proc. But 2 of them - ProjectID and ApplicationID are used in a conditional statement in the stored proc to determine which part of the stored proc should be run. E.g If ApplicationID is not null <do something>... The problem is that I only want either the ProjectID or the ApplicationID to be given a value. If one is selected, the other must be null. I tried allowing nulls the normal way (by selecting the checkbox) but it doesn't
  • Re: Confirm on closing browser window when detailsview is in edit/insert mode only

    Hi Paaresh, Thanks alot that solution works! One question I have though is if I already have something in the OnClientClick event can I still add the allowPostBack flag aswell? E.g: I already have button.OnClientClick = "if (!confirm('Do you want to delete this record?')) return false;"; So now where can I add the allowPostBack flag? Appreciate any feedback.
    Posted to Client Side Web Development (Forum) by mdesoysa on 6/14/2009
  • Confirm on closing browser window when detailsview is in edit/insert mode only

    Hi there, I have a page with a detailsview and I want to be able to add a confirm box if closing the browser window ONLY when the detailsview is in edit or insert mode. I tried the code below but I got a problem where once in edit or insert mode, if i click the 'cancel', 'insert' or 'update' command buttons, the confirmation box pops up. I only want it to pop up on browser close. protected void DetailsView1_ModeChanged(object sender, EventArgs e) { if ((DetailsView1.CurrentMode
    Posted to Client Side Web Development (Forum) by mdesoysa on 6/11/2009
  • Re: In-line validation problem

    Hi, Thanks for that it was what I was looking for. One small problem though - it works fine on inserting but on updating a field it validates even when I haven't changed anything or when I have changed one field but not the other it still gives an error for both fields. Does anybody know if there is another method similar to OnXXXChanging such as OnXXXUpdating ? My code from metadata.cs is below: [MetadataType(typeof(SupplierMetaData))] public partial class Supplier { partial void OnFCCSupplierIdentifierChanging
    Posted to ASP.NET Dynamic Data (Forum) by mdesoysa on 6/3/2009
Page 1 of 6 (60 items) 1 2 3 4 5 Next > ... Last »