Pages

Wednesday, August 27, 2014

how to design ASP.Net Grid control with Survey or quiz records in the Grouping Category of the Questions

1. Create DataList control.
2. Create Grid control inside the DataList
3. Bind Catagory data in the DataList control
4. It will loop all related questions during row databound.


 

Tuesday, July 22, 2014

Configure AJAX Control Toolkit in the Sharepoint 2007 in Windows server 2003 or Windows server 2008 R2




AJAX has been working in the SharePoint 2007 with windows server 2003.
So we migrated the above share point code and installed share point 2007 with windows server 2008 R2, but AJAX is not working in the new environment, after that I researched lot of articles  long long hours for trouble shooting and apply in the below steps
Steps
1.Installing Correct one of the AJAX setup(e.g 1.0,3.0, etc)
2.Modifying Port web config
3.Amend Master Page with script Code
4. Move .JS related files to Layout folders(i missed this step, I face issue then i fixed it)



<ajaxToolkit:ToolkitScriptManager EnablePartialRendering="true" runat="server" ID="ScriptManager1" />

For enabling Ajax in SharePoint 2007, We need first to configure SharePoint Portal to support AJAX. We can do it in following way -
  • Installing ASP.NET AJAX on servers in your farm
    • install the full " AJAX Extensions " from
ajax.asp.net
    • Download ajextoolkit -
http://ajaxcontroltoolkit.codeplex.com/releases/view/11121
  • Configure SharePoint to support AJAX & AjaxControlToolkit
    For enabling Ajax in SharePoint 2007, you need first to configure SharePoint to support AJAX. For this we need to add some configuration settings in web.config file.Locate your default web.config file ("C:\Inetpub\wwwroot\wss\VirtualDirectories\YourWebAppPortNo\web.config").

Thursday, June 19, 2014

Ho to check SMTP server is running into your machine using command prompt


To do  test the SMTP server function, You have to follow steps to identify that whether SMTP configured and working or not.
The following  steps you need to follow to check SMTP server functionality. We are using the command prompt telnet to test the server.

1. open command prompt and type :

telnet 25
Note: 25 is the port used by SMTP and is the SMTP server name.
After you hit enter you will get some output like
220 Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at
Tue, 22 Jan 2008 09:10:27 -0600
It means you got response from the SMTP server and it's the clue that SMTP is setup on the server.

2. For testing response say helo to it.
Type :
helo
output:
250 Hello [IP Adress]

3. Now we need to enter the From address of the mail.
Type :
mail from: admin@domain.com
output:
250 2.1.0 admin@domain.com….Sender OK

4. It's time to enter the recepient email address.
Type : rcpt to: someID@domain.com
output:
250 2.1.5 someID@domain.com

5. Now we are left with the data of the email. i.e. subject and body.
Type : data
output:
354 Start mail input; end with .

6. Type:
subject: this is a test mail for SMTP server functionality
Hi
This is SMTP test mail body
I am testing the SMTP server only for testing purposes.

.
.


7. Hit Enter, then . and then Enter.
output:
250 2.6.0 <C8wSA00000006@> Queued mail for delivery

8. Type: quit
output:
221 2.0.0 Service closing transmission channel

If you did everything as explained in the above steps, you will get a mail soon.

Kinldy check in the Queue and Drop folder.