Sunday, August 17, 2008

Delay in threading

System.Threading.Thread.Sleep(3000);

How to prevent F5 or page refresh event in web based appliation

http://anujkrathi.blogspot.com/2007/06/how-to-prevent-users-to-press-f5-key.html
http://aspalliance.com/687

Data Access Application Block & Exception Handling Application Block

http://aspnet.4guysfromrolla.com/articles/062503-1.aspx

DAAB:
----
http://msdn2.microsoft.com/en-us/library/ms954827.aspx


Exception Handling Application Block (EHAB)
--------------------------------------------------------
http://msdn2.microsoft.com/en-us/library/ms954830.aspx

----------------------------------------------------
Enterprise Library 3.1 - May 2007
--------------------------------------------------------
https://www.microsoft.com/downloads/thankyou.aspx?familyId=5a14e870-406b-4f2a-b723-97ba84ae80b5&displayLang=en&hash=4trpDN%2bk1m83lSMkDNwbUKt0jafgzIfQLZsbka8pGpaowHu9sRb%2f%2fSl7to1Uji4I4C%2f3uJoiCQLIIEAaTNB8kQ%3d%3d

About the bcp utility

http://msdn2.microsoft.com/en-us/library/aa174646(SQL.80).aspx

Selecting an item in a drop down list

ddlyearcount.Items.FindByValue(currentyear.ToString()).Selected = true;

how to access session in class

HttpContext.Current.Session["mysession"];

How to enable Trace in .Net

Assign color to datagrid row in C#

System.Drawing.ColorTranslator.FromHtml("red")

Saturday, August 16, 2008

The request failed with HTTP status 401: Unauthorized." - SQL Reporting Services

Visit below link for more information

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=225392&SiteID=1

Go to IIS
for "Reports" virtual directory, remove anonymous access

.aspx/html page - default focus & default button


This row already belongs to another table

While playing with .net data set & data table, if they are pointing to same memory location will get above error.

for more information, visit below link
http://www.geekzilla.co.uk/View37EB5230-5B79-4D00-800C-52D7A46CFB15.htm

How to conver database null to zero in Oracle

NVL(field, 0)

for more information visit
http://archives.postgresql.org/pgsql-sql/2002-12/msg00139.php

System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.

System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.

Solution:

Modified the registry key for that. For registry key information visit below web site

http://msdn2.microsoft.com/en-us/library/aa344212(VS.85).aspxhttp://thedotnet.com/nntp/34104/showpost.aspx

Validation of viewstate MAC failed

Error:1

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

Solution:
visit
http://forums.asp.net/p/955145/1173230.aspx#1173230

SQL Server An error has occurred while establishing a connection to the server

SQL server error:26 SQL Server does not allow remote connections

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Solution:
Go to
start > Programs > SQL server 2005 > Configuration Tools > SQL Server 2005 Surface Area Configuration.

Click on "Surfacr Area Configuration for Services and Connection"
Enable Remote Connection option

there we go

First blog

Hi guys, this is very first time i am writing blogs. I was thinking since long back that to create blogs but today i get some time. I am working as a software professional, day to day life we face some challenging & difficulties while programming, we were try hard to resolve that issues & we are happy.
But i would like to share the solutions, May be it would be helpful to others.

Thanks to visit my blogs I would appreciate your feedback, Please feel free to contact me at prashantbrathod@gmail.com