nauman1278

Stories kicked by nauman1278

The SMTP server requires a secure connection or the client was not aut(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 9 months ago

This annoying error comes up when using some smtp server that uses SSL. A simple implementation to configure smtp settings in an ASP.NET web application is to add these setting in the specific “MailSettings” tag of Web.config file. I had read more...

add a comment |category: |Views: 15

tags: another

Securing ASP.NET Web applications - Beginner's article(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 9 months ago

Want to secure a web application. A very good article relating to ASP.NET web application security hacks, and prevention techniques are defined at a beginner level. A good article for beginners, those who want o secure their applications. read more...

add a comment |category: |Views: 13

tags: another

Configuring SSL for a website on IIS(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 9 months ago

To remove the issue of sending/receiving data on http, SSL (Secure Sockets Layer) is used to encrypt data for transmission. In order to implement SSL successfully on your IIS, you need to get a Server Certificate. Server Certificates can be obtained from a trusted 3rd party read more...

add a comment |category: |Views: 8

tags: another

Change default browser in Visual Studio(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 11 months ago

Visual Studio opens a web project for debugging in the default browser. This might not be the Internet Explorer. To change this behavior stop debugging and open a ASPX File from your websolution. Hit File/Browse With … which opens the following dialog: Select your favourite Browser, set it as read more...

add a comment |category: |Views: 22

tags: another

Add an entry to event log in C#(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 11 months ago

EventLog is a good place to write your applications log. Here is an example to show how to do this: If ( !EventLog.SourceExists("TestCategory")) EventLog.CreateEventSource("TestCategory","TestLog"); EventLog evtLog = new Even read more...

add a comment |category: |Views: 21

tags: another

Publish a ASP.NET website from command line(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 11 months ago

In case of an automatic build/deployment process it might be a request to precompile the web application after building it. Since .NET Framework 2.0 there is a tool called aspnet_compiler.exe. You can use it like that: aspnet_compiler -v /MyIISWebApplic read more...

add a comment |category: |Views: 82

tags: another

Different operations on datatable (Add, Edit, delete, Sort etc) and X(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 11 months ago

Introduction DataTable is a central object in the ADO.NET library. If you are working with ADO.NET - accessing data from database, you can not escape from DataTable. Other objects that use DataTable are DataSet and DataView. In this tutorials, I will explain how to work with DataTable. I have read more...

add a comment |category: |Views: 53

tags: another

CSS - Conditional Statements(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 11 months ago

For CSS to work in cross browser enviroment, we have to write some conditional statements to make our styles look same in all the browsers. Below is the sample code that demonstrate how to write conditional statement tin CSS. <html> <head> <title>Conditional read more...

add a comment |category: |Views: 21

tags: another

Delete duplicate rows from table(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 11 months ago

Suppose there is a table called "EmployeeTable" which have some duplicate records. There is a three way to delete the duplicate rows. First way to delete duplicate rows : Select distinct * into Emp_Temp_Table from EmployeeTable In the above line we are inserting all the distin read more...

add a comment |category: |Views: 39

tags: another

Debugging Stored Procedures in SQL Serrver 2005(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 11 months ago

Pre-requisites 1. Find the .exe file under the directory, C:\Program Files\Microsoft SQL Server\90\Shared\1033\rdbgsetup.exe or similar path where the SQL Server was installed. The file rdbgsetup.exe stands for 'RemoteDeBuGsetup'. Look for the emphasis on letters. The filename reads read more...

add a comment |category: |Views: 6

tags: another

Tracking object (Table, SP etc) changes in SQL Server 2005(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 11 months ago

DBA's often need to track the changes being made to database objects such as tables, user defined functions and store procedures etc. Following article aims at providing the readers on how the changes being made to the database can be tracked with minimal effort. To get into details, i would read more...

add a comment |category: |Views: 10

tags: another

Demand Paging (Custom Paging) in ASP.NET with SQL Server(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 11 months ago

Many a times we need to present bulk data to the user in our day to day application development. Loading all data at one shot is okay when we have few hundreads data but when it comes to thousands of thousands records, it hardly work. In scenario like this we need to go for custom paging in read more...

add a comment |category: |Views: 83

tags: another

AJAX Tab Container - Style Problem(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 11 months ago

Cause Since the release of ASP.Net 2.0, all the pages' DTD are set to XHTML 1.0 Transitional by default. Consequently, AJAX Control Toolkits were also created to adhere with standard. All the rendered AJAX controls will follow the said document type definition. As it turns out, our page read more...

add a comment |category: |Views: 25

tags: another

Uploading a file using libcurl.net(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 11 months ago

Following is the code to upload a file to a ftp server through libCurl.NET library. using System; usingSystem.IO; usingSeasideResearch.LibCurlNet; class Upload { public static void Main( String [] args) { try { Curl .GlobalInit(( int ) CUR read more...

add a comment |category: |Views: 139

tags: another

this row already belongs to another table(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 11 months ago

When copying a row from one datatable to another you might get the error "this row already belongs to another table". Typically you might write code like this: string sConnString = ConfigurationManager.ConnectionStrings["NorthwindConn"].ConnectionString; DataSe read more...

add a comment |category: |Views: 96

tags: another

Return the value for the specific attribute using XPathNodeIterator(technoblogy.net)

submitted by nauman1278nauman1278(530) 2 years, 11 months ago

I will use the following XML document in the example below. <? xml version="1.0" encoding="utf-8" ?> < users > < user FirstName ="Tom" LastName ="Adams" Age ="23" /> < user FirstName ="Jhon" LastName ="Brams" Age ="17" /> < user FirstName ="Bill" LastName ="Smith" Age... read more...

add a comment |category: |Views: 23

tags: another