Finally a dream comes true….

Long back I dreamed about starting a blog in my name and finally it happened 🙂 . I invite all of you to visit my new blog at

http://www.rajeeshcv.com

Advertisements

June 19, 2008 at 2:41 pm 1 comment

WPF Controls blog

I have started a new blog dedicated to WPF (Windows Presenation Foundation) controls

Please visit http://wpfcontrols.blogspot.com to know more about WPF Controls

The above blog covers list of thirdparty WPFcontrols, WPF Control development tutorials, WPF Video tutorials etc…

October 21, 2007 at 3:59 am 1 comment

Login failed for user ‘NT AUTHORITY\NETWORK SERVICE’

Few days back,I developed an ASP.NET website in .NET 2.0 with SQL Server 2005 as the back end.  Everything was working fine in the cassini (web server that comes with VS 2005).

After finishing the project, for the testing purpose I thought of publishing it in the real IIS in my local machine.

All went smoothly 🙂 and I was able to view the website locally, but when was I trying to login into the website with the administrator username and password I got something like thisLogin failed for user ‘NT AUTHORITY\NETWORK SERVICE'”

For some reasons I couldn’t understand why this is happening…. But after a googling I found that, this is because of the connectionstring that I used in the web.config 🙂

If you have created the connectionstring, like below

<add name=”xxxxx” connectionString=”Datasource=servername;Integrated Security=SSPI;initial catalog=xxxx;”
providerName=”System.Data.SqlClient” />

ie you are trying to login into the SQL Server DB using the Integrated Secrity credentials which wrong 🙂

So you have to explicitly specifiy the user id and password in the connectionstring, like below,

<add name=”xxxx” connectionString=”Data Source=localhost;Initial Catalog=xxx;user id=[userid];password=[password];” providerName=”System.Data.SqlClient”/>

Hope this will solve your issue

October 16, 2007 at 2:33 pm 14 comments

The “Atlas” Control Toolkit helps you bring your websites to life!

The “Atlas” Control Toolkit is a collection of samples and components that makes it easier then ever to build and consume rich client-side “Atlas” controls and extenders. The toolkit provides both ready to go samples and a powerful SDK to simplify the creation and re-use of your own custom controls and extenders.

Inside the toolkit you will find:

  • A rich set of sample controls and extenders that make spicing up your Website with rich functionality a snap. Everything you need to get started is inside including full source code, documentation, and more!
  • An easy to use SDK that simplifies the process of writing “Atlas” components.  

In the “Atlas” Control Toolkit, you’ll find the following controls and extenders (click the links to see them in action!):

  • Accordion Control: Create efficient UI from multiple panes with this animated control.
  • AlwaysVisibleControl: Docks a panel to a corner of the browser window and keeps it visible even when the user scrolls.
  • CascadingDropDown: Easily link drop downs, complete with asynchronous population and no postbacks!
  • CollapsiblePanel: This extender allows panels on your page to collapse and expand with no code.
  • ConfirmButton: This extender adds a confirm dialog to any Button, LinkButton, or ImageButton control.
  • DragPanel: Makes any panel into an object that you can drag around the page.
  • DropShadow: This extender adds attractive drop shadows to any control on the page
  • DynamicPopulate: Replace the contents of a page element with the result of a web-service call.
  • FilteredTextBox: Restrict the types of input that text boxes will accept.
  • HoverMenu: Allows UI to pop up next to a control when the mouse hovers over it.
  • ModalPopup: Allows you to show styled modal UI without using HTML dialogs.
  • NumericUpDown: Allow users to easily increase and decrease values using the mouse to scroll through values.
  • PagingBulletedList: Add paging and sorting to long bulleted lists.
  • PasswordStrength: Give your users visual cues to help them create secure passwords.
  • PopupControl: This extender turns any panel into a popup.
  • Rating: Let your users easily give feedback by rating content with this easy-to-use control.
  • ReorderList: This control is a full-featured data-bound control that allows its elements to be reordered on the client via drag and drop.
  • ResizableControl: Allow users to dynamically resize content, right in the browser.
  • RoundedCorners: Rounds the corners of any control for a clean, professional look!
  • TextBoxWatermark: This extender adds “watermark” prompt text to TextBoxes on the page.
  • ToggleButton: This extender turns an ASP.NET CheckBox into an image checkbox.

DOWNLOAD the “Atlas” Control Toolkit now!

August 20, 2006 at 4:34 am Leave a comment

Loading Gif Animations

I was sniffing around for some nifty loading gif’s for one of my projects when I found Ajaxload, a drive-thru Ajax-powered site that spits out loading gif animations to your liking on-the-fly. for graphically-challenged Web 2.0 geeks out there, this is the place to go if you want your apps to look cool while they’re pretending to load something.

August 5, 2006 at 9:55 am 5 comments

Inserting Unicode characters into MySql using Stored Procedures

Inseting data using stored procedure are very easy, but consider a situation where you have table that contain fields with utf8 character set.

Table something like this

CREATE TABLE `tblperson` (
`Id` int(11) NOT NULL auto_increment, `pname` varchar(255) default NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

If you use your simple insert procedure like the one below

CREATE PROCEDURE `P_updateperson`(
IN ppName VARCHAR(255))
NOT DETERMINISTIC
SQL SECURITY DEFINER
COMMENT ”
BEGIN

insert into `tblperson`(
pName
)
values (ppName);

END;

This won’t work, it will insert the data but not in correct format. So in order to work this, you have to rewrite the stored procedure like this.

CREATE PROCEDURE `P_updateperson`(
IN ppName VARCHAR(255) charset utf8)
NOT DETERMINISTIC
SQL SECURITY DEFINER
COMMENT ”
BEGIN

insert into `tblperson`(
pName
)
values (convert(ppName using utf8));

END;

Hope this tip will save a day for you

August 1, 2006 at 10:00 am 15 comments

Error : A potentially dangerous Request.Form value was detected from the client

This occurs when we try to post html code. The server will validate the postdata, if it find that its an HTML code, error something similar to this is shown. This actually helps to prevent running  malicious script. If you really want to post the html content add this to the page directive validateRequest=”false”. 

You can also do this from the web.config like this

<pages  validateRequest=”false” />

July 26, 2006 at 6:10 am 14 comments

Older Posts


Top Clicks

  • None

Calendar

December 2017
M T W T F S S
« Jun    
 123
45678910
11121314151617
18192021222324
25262728293031

Recent Posts

Feeds

Blog Stats

  • 93,230 hits