Welcome to weblogs.com.pk Sign in | Join | Help

January 2006 - Posts

Creating Web Site in IIS using ADSI

As posted earlier about ADSI; IIS also has an ADSI provider and one can use ADSI to manage IIS. Here is a simple script to create a new site; you can call it using >iis-newsite.vbs SomeRandomNumber SomeUser Domain >iis-newsite.vbs 8479 weblogs weblogs.com.pk
Posted by khurram | 0 Comments

Managing file ACLs from the shell

Windows Resource Kit has lot of command line tools for system administrators. One such tool is CACLS.exe that can be used to manage ACL (Access Control List) of files and folders. One can easily use it in batch files to manage ACLs in bulk . You can find
Posted by khurram | 0 Comments

Using ADSI to create an Account

ADSI is an API that can be used to manage directory services; Windows is shipped with an ADSI provder called NTDS that can be used to manage accounts and groups using ADSI. Here is the Windows Scripting Host (WSH) script to get this done. Save it as VBS
Posted by khurram | 0 Comments

Points to motivate developers to prefer using ObjectDataSource

From management and/or architect perspective; using ObjectDataSource is preferred; but from developer’s view; SqlDataSource is much easier way to go. Give me 5 good points that can be used to motivate developers to prefer using ObjectDataSource. <smile
Posted by khurram | 1 Comments
Filed under:

Nested User Controls

Today while winding up my current project; I wanted to export everything as a single user control that can be used in any ASP.NET v2 web application; by just dropping the control on the page. For this I needed to implemented nested user controls; that
Posted by khurram | 0 Comments
Filed under:

AOP Frameworks for .NET v2

As per plan, tomorrow is my last day for the .NET v2 project at my workplace. It’s a light weight inventory system; and I am excited that how many new things I am able to learn in this project. DNN4, Enterprise Library and today; Aspect Oriented Programming
Posted by khurram | 1 Comments
Filed under: ,

Editing Received Messages In Outlook

One thing I came to know today; that in Outlook (I tried Outlook 2003) you can edit the mail message not only message body but also subjects. I have configured couple of search folders that does the subject searching, and I am quite happy to find that
Posted by khurram | 0 Comments
Filed under:

XACT_ABORT

Using transactions in SQL Server is sometimes tricky. Here is today’s learned lesson. If you set xact_abort to on; you don’t need to rollback the transaction; it gets automatically rolled back in case of any error. One thing that can lead you to problems
Posted by khurram | 0 Comments
Filed under:

Asp.NET v2 Compilation Model

As said before; ASP.NET v2 compilation model is slightly different than its previous versions. In ASP.NET v2; assembly for each page is generated; thus; theoretically speaking you can have each page written using its own language. However its not yet
Posted by khurram | 0 Comments
Filed under: ,

Master Detail with DataSourceControls

To implement master-detail using ASP.NET v2's new DataSource control; we can have two DataSource control; lets assume first is retrieving summaries and the second retrieve the detail information. The second data source will be parametric. Lets assume
Posted by khurram | 0 Comments
Filed under:

DNN4 :: Enterprise Library

Last month; when my team started working on a very exciting new project; we all decided that we will use .NET v2 for all aspects of the project. We still are trying to make SQL 2005 available for this project; its new features like Service Broker will
Posted by khurram | 1 Comments
Filed under: , ,

Project :: SNMP based Graphing System

I need to get the following software developed. Please use CONTACT ME option on my weblog and make your bids along with time that you think will require to build it. If you need any other information; please use the same. Scenario There exists a device
Posted by khurram | 0 Comments
Filed under:

mySQL :: STRICT_TRANS_TABLE :: mySQL or SQL-Express

I was free today; so I planned to upgrade mySQL database server, which is used by some our intranet applications at my workplace. I moved things to mySQL version 5. I dumped the databases; remove previous mySQL service; installed mySQL 5 in separate location.
Posted by khurram | 0 Comments
Filed under:

Procedure or function &amp;amp;lt;YourProcName&amp;amp;gt; has too many arguments specified

If you are using Data Source Control and receiving the exception, Procedure or function <YourProcName> has too many arguments specified; this can be due to the reason that in your data control some child control is binded to some column which is
Posted by khurram | 0 Comments
Filed under:

DataSource Parameters

If you are using SqlDataSource [ASP.NETv2]; and you need to pass on certain parameters not accessible using Form, Cookie, QueryString or Session, use simple Parameter and data-bound control’s even like Inserting, Updating or Deleting. In the even you
Posted by khurram | 0 Comments
Filed under:

Hajj and Eid Wishes :: Data Source Controls

Well wishes to all the Hajj pilgrims and Eid wishes for the rest. I got very few time for my PSK2 endeavor, due to Eid shopping and some pending work that needed to be done at our place. PSK2 is now called SilverBulletPortal (SBP). Why Silver Bullet?
Posted by khurram | 0 Comments
Filed under: ,

Server Timers

.NET v2 now features Server Timers, if you are using Timers in Windows Services earlier and is porting the code to .NET v2; use System.Timers.Timer instead of System.Windows.Forms.Timer. System.Timers.Timer is more optimized for server side timers; and
Posted by khurram | 0 Comments
Filed under:

PSK2 :: ASPNET Providers

Happy weekend to everyone… Today we went to receive the report card of our son. He has received certificate in Enthusiasm, and his teacher has advised us to buy Abdullah more books; as he has tendency to explore new things. I am feeling great, but my
Posted by khurram | 0 Comments
Filed under:

Portal Starter Kit :: Membership And Role Provider

Today I again worked on my PSK2 thingy . I wanted to make a proof of concept by implementing a custom membership and role provider on ASP.NET v2 platform to show how easy things can get and how one can integrate it even with existing applications. I took
Posted by khurram | 0 Comments
Filed under:

FileUtility

Last year, I volunteered to fix a web application which had some serious security issues. It’s being built using ASP (classic) platform. While working on it; I needed some mechanism with which I can capture all the requests, parse the parameters being
Posted by khurram | 0 Comments

Reporting Services :: ReportServerUrl

If you have configured SQL Services Reporting Services, and specifically has set ReportServerUrl in Report Manager’s configuration, you might get the following exception. The configuration file contains an element that is not valid. The ReportServerUrl
Posted by khurram | 0 Comments
Filed under:

Attaching/Detaching SQL database :: sp_ChangeObjectOwner

If you detach your database and attach it to another SQL Server instance; chances are that same logins doesn’t exists. If there are some database objects in a database which are not owned by dbo but by some login which might not exists in the second server,
Posted by khurram | 0 Comments
Filed under: