Enable asp.net 2.0 profile

with asp.net 2.0 profile, you get access to untyped database storage all through the use of web.config file

 this is very useful for small website or if you have fields that may change its datatype later on in the development, and its really simple to use.

 insert following to your webconfig

<profile enabled="true">
   <properties>
    <add name="FirstName"/>
</>

thats it!  now you have a database field for "firstname"

To use it, simply call profile.Firstname
or profile.firstname = xxx to set it.

have FUNZ !

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: beggerking
Posted on: 4/28/2009 at 3:19 AM
Categories: Technical
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (1) | Post RSSRSS comment feed

IE crush when opening pdf file

ModName: msvcr71.dll

Offset: 000017fb

 this is caused by trying to open pdf inside internet explorer

fix:

 1. open adobe acrobat reader

2. edit -> preferece -> internet ->uncheck 'Display PDF in browser'

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: beggerking
Posted on: 1/19/2009 at 6:14 AM
Categories: Technical
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

use literal control to create popup alert, execute from code behind

in .net 2.0 , to create a pop up, you may use a literal control from code behind.

 1. put a literal control on page, set its Mode property to "encode" or "Transform"

 2. literal1.visible = false

within button onclick event

 3. literal1.text = "<script>alert('" & YourString & "');</script> "

 4. literal1.visible = true

 

the literal control executes the popup each time the button was clicked.

  

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: beggerking
Posted on: 1/15/2009 at 7:46 AM
Categories: Technical
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (1) | Post RSSRSS comment feed

Rootkit Antivirus Tools

Just a list of softwares to run when you are infected.

RUN IN THIS ORDER!  Extremely effective.

 1. sdfix - set it up, then run in safe mode    'deep rootkit killer  http://andymanchesta.com

 2. Atf-Cleaner - select all and clean out all temp files  'cleaner  http://www.atribune.org

 3. Malwarebyte's AntiMalware - malware cleaner  'deep malware seeker http://Malwarebytes.org

 4. Kaspersky Online Antivirus - antivirus  'last step to ensure virus free against the newest viruses http://kaspersky.com

All are free download/run from internet. 

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: beggerking
Posted on: 11/6/2008 at 10:40 AM
Categories: General | Technical
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

media on your website

 a tiny html insert to play your video file on your website

 

<OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=240

CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"

STANDBY="Loading Windows Media Player components..."

TYPE="application/x-oleobject"

CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">

<PARAM name="autoStart" value="true">

<PARAM name="filename" value="YourMovie.wmv"> <EMBED TYPE="application/x-mplayer2"

SRC="YourMovie.wmv"

NAME="MediaPlayer"

WIDTH=320

HEIGHT=240>

</EMBED>

</OBJECT>

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: beggerking
Posted on: 10/28/2008 at 5:30 AM
Categories: Technical
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Use role manager in asp.net sitemap file

1. add   <roleManager enabled="true"/> to system.web section of your config file

2. add roles="*"  to each sitemapnode , you may specify different roles such as roles = "admin" etc

  example:

   <siteMapNode url="/" title=""  description=""  roles="*">

 

have fun :D

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: beggerking
Posted on: 10/27/2008 at 7:15 PM
Categories: Technical
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (10) | Post RSSRSS comment feed

deploy network printer in active directory

1. add the printer to one of your server, and share it 

2. add this to the start up script under group policy to auto deploy a network printer

 RUNDLL32 PRINTUI.DLL,PrintUIEntry /in /q /n\\server\printername

ps.  PrintUIEntry is case sensitive...

Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: administrator
Posted on: 10/27/2008 at 5:15 AM
Categories: Technical
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed