Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:676125
More Search Options
RSS Available
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 »
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online