No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Steve Lautenschlager is an Independent Web Developer and .NET Technology Consultant in Kansas City, MO. He began developing web applications at CERN, the birthplace of the web, and has worked in Microsoft's hosting division with Microsoft.com, MSNBC.com,…
- PC Specs
- Which one?
14 Posted Topics
Re: Hi aripaka, To include a client-side script block from your asp.net code behind look into [CODE]Page.RegisterClientScriptBlock()[/CODE] This is very useful for scripts you expect to use in many aspx pages. The following is an example C# method which registers a clientside javascript function to generate random numbers. [CODE]public static void … | |
Re: You might start with Forms Authentication in .NET. It automates the "remember me" cookie with the following method call. [CODE]FormsAuthentication.SetAuthCookie(userName, saveLogin);[/CODE] Here's a place to begin learning more: [URL=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebsecurityformsauthenticationclasssetauthcookietopic.asp]MSDN Documentation for SetAuthCookie Method[/URL] Cheers, - Steve | |
Re: Hi Prasadd, [COLOR=Red]1)[/COLOR] First the email syntax validation. I have written an article on this at the following link. In short, you can use regular expressions: [URL=http://www.cambiaresearch.com/cambia3/snippets/csharp/regex/email_regex.aspx]Email Validation[/URL] [COLOR=Red]2)[/COLOR] Send email from a desktop application. You can use the SmtpMail class just as you would in an ASP.NET application. You … | |
Re: What is it that's not working? What is the error or exception you're getting? You should be able to use the Update method to store data in the database, but your DataAdapter must be setup properly and the types and lengths of your database fields must be capable of storing … | |
Re: Hi Toulinwoek, Wouldn't it be nice if that were dynamic? :lol: How you might do this and whether you would want to probably depends on context. If you're dealing with strongly typed datasets, then you would have to update your data adapter and dataset. However, this is usually pretty easy … | |
Re: Hi Jason, Try rewriting/reorganizing the HTML body of your email to include the label2 inside the form tags--or a copy of the label. Then when you post to the admin page the contents of label2 should be available to your aspx page. You can probably make it a hidden label … | |
Re: I've read dozens of C# and .NET books. The best, hands down, IMHO is [I]Programming Microsoft Windows with C# by Petzold[/I]. It is focused on Windows Forms (desktop apps) rather than ASP.NET or ADO.NET, but that's a great place to begin. I no longer need it very often, but my … | |
Re: How to best manage configuration information will depend on your situation, but XML is not a bad way to go in many cases. You can create a Configuration class with all of your variables, then just serialize it to XML. It's simple. Check out my article on this subject for … | |
Re: [CODE] public void TestDoubleFormat() { string format = "0.00"; double d = 12; string s = d.ToString(format); d = 12.1; s += ", " + d.ToString(format); d = 12.12; s += ", " + d.ToString(format); lblOutput.Text = s; } [/CODE] Output: [CODE] 12.00, 12.10, 12.12 [/CODE] [QUOTE=johnsonlim026]I have a variable … | |
Re: Hi Madhusudhan, Your question inspired me to write some in-depth articles on the subject. :eek: I have dealt with this same problem before. I ultimately created several custom template columns which satisfy most needs. [URL=http://www.cambiaresearch.com/cambia3/snippets/csharp/aspnet/SimpleDataGridColumns.aspx]Adding Simple Columns to DataGrid (BoundColumn and HyperLinkColumn)[/URL] [URL=http://www.cambiaresearch.com/cambia3/snippets/csharp/aspnet/CustomHyperLinkColumn.aspx]A Custom HyperLink Column Example Which Inherits from … | |
Re: Hi SelArom, An ASP.NET application can be created in the root. [COLOR=Blue][B]1)[/B][/COLOR] In the New Project Window, when you select ASP.NET Application you are prompted for a location. VS.NET may suggest a location like [B][url]http://localhost/WebApplication1[/url][/B]. Just delete the [B]/WebApplication1[/B]. VS.NET will create the project in the root with a default … | |
Re: I think a Literal control might be what you're looking for. Replace: [CODE]<link rel="stylesheet" type="text/css" href="a.css" title="OneStyle">[/CODE] With: [CODE]<ASP:LITERAL id="litStyleSheet" runat="server"></ASP:LITERAL>[/CODE] Then you can dynamically set the link tag to whatever you want by setting the Text property of the litStyleSheet control in your code. [QUOTE=kish-kashta]Hi :rolleyes: i have a … | |
Re: [QUOTE=HLD77]I am trying to change existing icons on a toolbar. ... When I replace an old icon with a new one and build\start my project, I don't see the new icon. [/QUOTE] Hi HLD77, I had this problem for a long time before I discovered what was going on. The … | |
Re: Mozilla will render widths correctly if it comes from the style attribute or a stylesheet. Cheers, Steve |
The End.