1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
348 views

http://www.computerforum.be/downloads/_net_logo_2_8aA.jpg

Want to learn .NET but don’t know where to start? Well.. visit www.dotNETProgrammers.net a community for .NET developers. The .NET board is pretty new so don’t expect a lot of posts but it’s growing as we speak ;)

Your Ad Here
Tags Tags: ,
Categories: .Net
Posted By: HappyFace
Last Edit: 26 Jul 2009 @ 01 10 PM

EmailPermalinkComments (0)
 27 Apr 2009 @ 3:17 PM 
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...
510 views
C#:
  1. using (StreamReader re = File.OpenText("engineeringserver.txt"))
  2. {
  3. string input = null;
  4. while ((input = re.ReadLine()) != null)
  5. {
  6. Console.WriteLine(input);
  7. }
  8. }

This code snippet has been sponsored by FruitfulTime. Try out FruitfulTime ProductivityMeter Business Editiona employee monitoring software

Your Ad Here
Tags Tags:
Categories: .Net
Posted By: gaetano
Last Edit: 25 Apr 2009 @ 03 20 PM

EmailPermalinkComments (0)
 26 Apr 2009 @ 3:08 PM 
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...
432 views
C#:
  1. public class Writetextfile
  2. {
  3. public static void Main(string[] args)
  4. {
  5. FileInfo t = new FileInfo("engineeringserver.txt");
  6. using (StreamWriter Tex = t.CreateText())
  7. {
  8. Tex.WriteLine("Visit engineeringserver.com");
  9. Tex.Write(Tex.NewLine);
  10. }
  11. }
  12. }

This code snippet has been sponsored by FruitfulTime. Try out FruitfulTime TaskManager a to do list software

Your Ad Here
Tags Tags:
Categories: .Net
Posted By: gaetano
Last Edit: 25 Apr 2009 @ 03 20 PM

EmailPermalinkComments (0)
 25 Apr 2009 @ 3:07 PM 
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5 out of 5)
Loading ... Loading ...
424 views

1.  Register your handler

C#:
  1. static void Main(string[] args)
  2. {
  3. AppDomain currentDomain = AppDomain.CurrentDomain;
  4. currentDomain.UnhandledException += new UnhandledExceptionEventHandler(unhandledExceptionsHandler);
  5.  
  6. }

2. Log information about the unhandled exception. You can write the information to console or to a log file

C#:
  1. static void unhandledExceptionsHandler(object sender, UnhandledExceptionEventArgs args)
  2. {
  3. Exception e = (Exception)args.ExceptionObject;
  4. Console.WriteLine(e.Message);
  5. Console.WriteLine(e.StackTrace);
  6. }

This code snippet has been sponsored by FruitfulTime.  Try out FruitfulTime TaskManager a task list software

Your Ad Here
Tags Tags:
Categories: .Net
Posted By: gaetano
Last Edit: 25 Apr 2009 @ 03 21 PM

EmailPermalinkComments (0)
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...
463 views

http://i.msdn.microsoft.com/Bb398934.UpdatePanelTutorial12Step2(en-us,VS.90).png
For those that wonder how to use the UpdatePanel component in visual studio 2005 without getting an annoying 'sys' is undefined error message, this is how to get it working.

First of all u need to download the ASP.NET AJAX 1.0 here (ASPAJAXExtSetup.msi) and install it. After that you need to create a webproject and edit the web.config file so that it looks like this:

<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<authentication mode="Windows"/>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
</system.web>
</configuration>

In your *.aspx file, drag and drop the ScriptManager, UpdatePanel and drap & drop a Label and a Button inside teh UpdatePanel.
Next, create a class and paste this method in the class file:
More »

Your Ad Here
Tags Tags: , , , , , , ,
Categories: .Net
Posted By: HappyFace
Last Edit: 20 Apr 2009 @ 07 26 PM

EmailPermalinkComments (0)
\/ More Options ...
Change Theme...
  • Users » 888
  • Posts/Pages » 1,444
  • Comments » 506
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

Online Users



    No Child Pages.

Forum



    No Child Pages.