Search

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

Matching Posts

  • Re: JavaScript within Custom server control

    Remove the control and the include from your aspx and re add after recompiling. protected override void Render(HtmlTextWriter writer) { CreateCtrlLeave(); if (_panel != null ) { _panel.Attributes.Add( "onmouseout" , "CtrlLeave(); " ); _panel.RenderControl(writer); } }
    Posted to Web Forms (Forum) by mokeefe on 1/29/2009
  • Re: CustomValidator Client Side Determine Value of Another Table Cell

    Consider you table row textboxes as the HTML Input elements that they become on the client, then consider the direct relationship between the pair of textbox’s per row and create a client side object which links the two objects and provides for the validation. In your server side code instantiate an array of these objects - one for each row in your output – and wire your custom validator client function. Be sure to test server side validation through setting customValidator1.EnableClientSript = false;
    Posted to Web Forms (Forum) by mokeefe on 1/29/2009
    Filed under: validator controls, .net 2.0 c#, custom validator, javascript, .net validator control display, javascript asp.net
  • Re: Argument '4': cannot convert from 'string' to 'int'

    Hi there natureHermit. I am unconcerned about the other static params the issue is converting a value of x to an integer of the number of cents. I misread the value type as a currency formatted string. Result (awaiting confirmation) - // order.OrderTotal is a float int cents = 0000; decimal val = decimal .Parse(Order.OrderTotal.ToString(), NumberStyles.Currency); val = decimal .Round(val, 2); string s = val.ToString( ".00" ); if (! string .IsNullOrEmpty(s)) { cents = int .Parse(s.Replace
    Posted to Web Forms (Forum) by mokeefe on 10/22/2007
  • Re: Argument '4': cannot convert from 'string' to 'int'

    Check out the response, and reply there. I'll be back in five.
    Posted to Web Forms (Forum) by mokeefe on 10/22/2007
  • Re: Argument '4': cannot convert from 'string' to 'int'

    No response on the sent PM and I need to split. However, on another review of your original post and another take, it appears that order.OrderTotal might just be a property of type double? If so does this make it easier? double orderTotal = 85.0000; int cents = GetCents(orderTotal.ToString()); // use cents in web proxy method call.
    Posted to Web Forms (Forum) by mokeefe on 10/22/2007
  • Re: Argument '4': cannot convert from 'string' to 'int'

    Ok Kevin. Lets not have a quick ten message pump into the forums queue. Would you like to resolve in private messages and post any further data here as appropriate?
    Posted to Web Forms (Forum) by mokeefe on 10/22/2007
  • Re: extending ASP.NET 2.0 controls

    Hi there, The key thing you need to realise is that ASP WebControls result in the output of standard HTML Elements. The functionality provided by the controls is not provided through any new capbilites added to these Elements or the extension of the browser capabilites. In this instance the FileUpload control results in te output of an HTML Input Element of type File. I don't really want to try and explain how ASP.Net works in this simple post, but in order to achieve your stated objectives you
    Posted to Custom Server Controls (Forum) by mokeefe on 10/22/2007
  • Re: Trouble with imagemap and finding controls on page 2

    Hi Steve, < asp:ImageMap ID= "ImageMap1" runat= "server" ImageUrl= "~/Images/Logo 01.jpg" > < asp:CircleHotSpot Radius= "100" X= "150" Y= "150" /> < asp:CircleHotSpot Radius= "100" /> </ asp:ImageMap > Code protected override void Render(HtmlTextWriter writer) { String script = string .Empty; // where ImageMap Control is ImageMap1 for ( int i = 0; i < ImageMap1.HotSpots.Count; i++) { PostBackOptions options
    Posted to Web Forms (Forum) by mokeefe on 10/22/2007
  • Re: Iterating though dynamically created textbox

    Hi there, You really shouldn't be using FindControl to locate dynamically created controls. With dyanically created controls you know in advance the control tree structure and should therefore access the control via it's position in the control tree. This is typically accomplished by wrapping a group of controls in a parent container, which may have no rendering, or using the existing parent structure such as a TableRow. Also check this out. http://forums.asp.net/t/1169674.aspx Can help further
    Posted to Web Forms (Forum) by mokeefe on 10/21/2007
  • Re: Argument '4': cannot convert from 'string' to 'int'

    Hi Kevin , You simply need to pass your OrderTotal to the Private GetCents method and pass the return value to the Web Service Proxy. The Pange_Load or Init bits was purely an example for you to test.
    Posted to Web Forms (Forum) by mokeefe on 10/21/2007
Page 1 of 210 (2093 items) 1 2 3 4 5 Next > ... Last »