Browse by Tags
All Tags »
ASP.NET 2 (
RSS)
Using regular expressions in ASP.Net is even easier than implementing them in plain html and yet few developers are using them. In this article I will show two ways of implementing Regular Expressions, using a Regular Expression Validator and using plain Javascript in ASP.Net. Both examples are very very simple. We will validate a telephone number and an email address. How to Implement Regular Expressions in ASP.Net with Validator Controls. 1) Create a new a page in a web application project in visual...
Recently Brian Johnson posted something that made me think. There are hundreds and probably thousands of web developers out there who have never used regular expressions and even if the knew about them they don't know HOW to implement them. Regular expressions are really awesome once you start using them. They are exceptionally powerful although they look really difficult in the beginning. For the beginners I suggest that you visit a site like http://www.regular-expressions.info/ as they have many...
Virtual Earth Map Control SDK now available is now available for download here . This can be used in your windows forms applications as well as ASP.Net Websites. Virtual Earth 3D development manager Duncan Lawler has an article in the MSDN Magazine about the techinques his team has used in developing and implementing this new control. You can read all about it here . For those developers out there familiar with the control, here is a list of new features with this release. Share this post: email...
OK! Its official. Static variables are really really really evil. and naturally I found out the hard way. Now I have used static variables in a few places. Usually just to keep track of who has what permissions on the current page, the PrimaryKey of the entry they working on and so forth. To my surprise, we have discovered that these static variables are carried between user sessions. And by that I don't mean you log off and log back on and the variable still has a value. I mean, that when a...
Discovered something very interesting yesterday. We have website that is nearing completion and we decided to test it via a dialup connection. Every page that incorporated ATLAS took 10-15 seconds to load. after that the page work brilliantly but still, it takes too long. Now I'm left wondering whether its the 207 Page ATLAS framework script file that is taking so long to load or whether this is just an issue with it being a BETA release. I suppose only time will tell. We have still to leave the...
I trying to find out exactly what happens on your page when you use an Atlas Update Panel. The following script entries are made: <script type="text/xml-script"> <page xmlns:script="http://schemas.microsoft.com/xml-script/2005"> <components> <pageRequestManager id="_PageRequestManager" updatePanelIDs="test" asyncPostbackControlIDs="test2,Button1" scriptManagerID="ScriptManager1" form="form1" /> </components> </page></script> This is what is generated for...
I think all I'm going to say is WOW. I went to devDays yesterday and during the keynote Ahmed gave us a quick run through of ASP.Net ATLAS. And I cannot believe I've left it so long to get started on it. It is so easy. No jokes, it is amazingly simple! I've already incorporated it into an existing application and it cause 0 problems. Best of all is the performance increase. So I'm going to show you have to use it really quickly. 1) Download ATLAS, its a 2.2MB file so I doubt the boss will mind ;...
I still learning a lot about ASP.Net 2 and I discovered a cool new feature that I don't remember 1.1 having. a new property for the asp:Button is the PostBackUrl property. You set to which url this button must post to and so when you click the button it goes straight to the next page. No more Response.Redirect! Then once you arrive at your new page you can access the previous page's controls via the Request.Form collection. Share this post: email it! | bookmark it! | digg it! | reddit! | kick it...
I'm not sure what i was expecting but I got asked to look into Master Pages today for the first time. Looking into something new is always so exciting but to be honest I'm actually a bit disappointed. I know this wasn't really possible in .Net1.1 as far as I know of but Master pages to me are like the Includes statement of classic asp. I can't really say it's similar to frames but it feels that way. The one nice thing though is the nested Master Pages, that'll probably become quiet useful. Maybe...
man this is driving me mad! added a new page to my project and am using it exactly the same as my other pages except this page cannot see the same namespaces that all my other pages can see. Now I've googled this to death and all everyone says is add a reference to the dll and but this is ASP.Net 2 so there IS NO DLL!!! during design time is sees the namespace no problem but the moment I try access this page access a network it throws its hissy fit. I'll post if I find anything. and yes, I have destroyed...
I battled with this for a while so maybe it'll help someone else at some stage. I needed to setup SQL Session State version2 for ASP.Net 2, so after much battling I finally found the aspnet_regsql.exe file under C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and after running the tool it STILL didn't work. I kept getting the "Please install ASP.NET Session State SQL Server version 2.0 or above" error. so after another 20min i got it right. you need to open your command prompt and navigate to the above...
I just tried to upgrade a ASp.Net 1.1 project into ASp.Net 2 and hit an error telling me to install version 2 the ASP.Net session State Sql Server. WHERE THE HELL DO I FIND IT? OR INFORMATION ON IT? After almost an hour of googling I have nothing to show for it! Is this version 2 backward compatible or will we have to upgrade all our projects to 2005? Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!
Everytime I run an ASP.Net2 project it starts Mozilla instead of IE!!! Mozilla isn't my default browser, and I cannot find the option to switch the option! must investigate this! Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!
Man did I battle with this! Thank goodness I've got a great boss who taught some things I didn't know about HTML to help me out. Basically, I wanted add/remove items to an arrayList when selected. Adding wasn't a problem at all. Removing on the other-hand. I'm pretty new to VS2005 and common sense says that functionality for controls should stay the same. Not anymore!!!! If I uncheck something then chkList.SelectedIndex.Selected should return false. BUT it was always returning true, because it was...
I've got a check list box with about 20 checkboxes. So when one is clicked, if it is unchecked i want to do something. onSelectedIndexChanged_click(blah blah) { if (!(chklstSelect.Items[chklstSelect.SelectedIndex].Selected)) { //do want i want } } AM I JUST BEING A N00B OR IS THIS CHECKLISTBOX NOT WORKING?!?!?!?!?! I'M FREAKING OUT!!!! Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!