Profilo di ambatiProgramming Myself.. Amb...FotoBlogElenchiAltro Strumenti Guida

Blog


30 maggio

Ado.net DataServices

First download asp.net 3.5 extensions : http://www.asp.net/downloads/3.5-extensions/

  1. Visual Stuido 2008. Click File/New/Project… Choose a Visual C#/ASP.NET Web Application 
  2. Delete the Default.aspx that was automatically created.
  3. Right click on the WebApplication project and click Add/New Item…
  4. Choose an ADO.NET Data Service and click Add (say fielname is WebDataService1.svc)
  5. Choose an" LINQ to sqlclasses" and click Add (say filename is DataClasses1.dbml)
  6. Add App_data folder and add "Northwind.mdf" file.
  7. Drag and drop Supplier,Product,Category tables in designer (DataClasses1)
  8. Lastly, we need to expose the object we created before (with the Entity Framework) to the web in this new Data Service. To do this we need to do two things. Both of these things are represented in the code block below.
  9. Tell the service which object to use. This is the object we put in the WebDataService<….> inheritence of the class.
  10. Tell the service which parts of the object should be visible. We are going to make * visible (which means everything). This is the line we put in the Intialize Service

Configure WebDataService1 to use DataClasses1Context

Open up the WebDataService1 .cs and change the code to look like below:

 

public class WebDataService1:
            WebDataService<DataClasses1Context> {
            
    public static void InitializeService(IWebDataServiceConfiguration config)
    {
        config.SetResourceContainerAccessRule("*", ResourceContainerRights.AllRead);
    }
    
}
 
Now press F5 it will open a xml file
Fetch ProductID = 1 : http://localhost:1453/WebSite5/NorthwindDataService.svc/Products(1)
Fetch the Supplier for the Product : http://localhost:1453/WebSite5/NorthwindDataService.svc/Products(1)/Supplier
Fetch Products 11 - 20 : http://localhost:1453/WebSite5/NorthwindDataService.svc/Products?$skip=10&$top=10
Check out the documentation on ADO.NET Data Services for the ASP.NET 3.5 Extensions CTP at:
http://quickstarts.asp.net/3-5-extensions/adonetdataservice/default.aspx
And click the run button at the below link:
http://quickstarts.asp.net/3-5-extensions/dyndata/WalkthroughBuildingDataDrivenWebSite.aspx
Demo at : http://quickstarts.asp.net/3-5-extensions/Samples/DynamicData.Walkthrough01/cs/Default.aspx

In order to complete this walkthrough, you will need:

ADO.NET Data Services asp.net 3.5 extensions

ADO.NET Data Services

The ADO.NET Data Services framework lets you create and access data services on the Web. The services use well-known formats to represent the data, such as JSON and XML. Data is made available across the Web in the style of a representational state transfer (REST) resource collection that is addressable by using URIs. Clients can interact with the resources by using HTTP verbs such as GET, PUT, POST, and DELETE. The ADO.NET Data Services framework can expose any data source (database data, XML documents, Web services, and so on) as a REST service.

http://quickstarts.asp.net/3-5-extensions/adonetdataservice/overview.aspx

29 maggio

SqlServer Reporting Services 2005

SQL Server 2005 Reporting Services (SSRS).
 
 Installing SSRS creates two new virtual directories under the default website on IIS. By default, they are named Reports and ReportServer. The ReportServer site hosts a web service for running and managing reports. The Reports site allows you upload reports from a browser and run reports over the web.
 
ReportServer and ReportServerTempDB databases are created after installation
 
 
In vs editor u will get Business Intelligence Templates (One report wizard and second one Reports)
 
using shareddatasource create datasource then rdl file.
 
Then u have to deploy (if it is local then it is http:localhost/reportserver in TargetServerURL
 
Then open web or windows application. Drag a report viewer control on to the form
 

ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote

ReportViewer1.ServerReport.ReportServerUrl = New Uri("http://localhost/reportServer")

ReportViewer1.ServerReport.ReportPath =

"/SSRS/Report2"

Dim params(0) As Microsoft.Reporting.WebForms.ReportParameter

Dim p As Microsoft.Reporting.WebForms.ReportParameter

p =

New Microsoft.Reporting.WebForms.ReportParameter("contract", TextBox1.Text)

params(0) = p

ReportViewer1.ServerReport.SetParameters(params)

ReportViewer1.ServerReport.Refresh()

the above code we have to write .

http://www.simple-talk.com/sql/learn-sql-server/beginning-sql-server-2005-reporting-services-part-2/

http://www.simple-talk.com/sql/learn-sql-server/beginning-sql-server-2005-reporting-services-part-3-the-chart-control/

http://www.simple-talk.com/sql/learn-sql-server/beginning-sql-server-reporting-services-part-4/

How to  add a data (coming from database ) to report header: (I solved one issue today)

---------------------------------------------

U can’t directly display a field in page header of the report..

 

Refer this link to display a field in page header

http://blog.irm.se/blogs/eric/archive/2006/05/25/Reporting-Services_3A00_-Data-in-a-Page-Header.aspx

 

It says u need to create a dummy parameter for this field to get displayed in page header

 

1)     create a parameter and set these values :

(a)Name-give some name

    Prompt-leave blank,don’t give anything,otherwise it will display like any other parameters of the RDL or SP

(b) available values-nothing to do with this section

©   default values- select “from query” ,dataset-give the datasetname

                                                         Value field- select the field name from the drop down

 

 

And then click ok

 

In the page header drag and drop a textbox

 

There u can put the parameter name which ever u have created using the above procedure

 

 

That’s all.

 

 

Useful links for reporting services:

 

1)     http://technet.microsoft.com/en-us/library/bb395166.aspx

2)     http://download.microsoft.com/download/c/2/0/c2091a26-d7bf-4464-8535-dbc31fb45d3c/rdlNov05.pdf

3)     http://download.microsoft.com/download/1/3/4/134644fd-05ad-4ee8-8b5a-0aed1c18a31e/reporting_services_design.doc

4)     http://download.microsoft.com/download/2/7/c/27cd7357-2649-4035-84af-e9c47df4329c/reportdesigntips.doc

 

Report Definition Language (RDL)

Using the Report Builder tool

The Report Builder is a neat addition to the SSRS package. It allows developers to create a tool that is delivered to the user via the web, using one-click deployment. The tool allows the user to select from pre-defined fields and functions as the basis for building their own reports.

By using this we can give customer a reporting tool.

Report Builder allows you to deliver an Ad-hoc reporting tool to you clients. If you find yourself constantly having to produce custom reports for various clients, all off the same data, then this is the tool for you. It allows you to transfer that control to your customer's hands. That frees you up to do more important work and your customers may even enjoy designing their own reports. For your part you free up your time and look like a hero to your customers and your boss.

Dundas charts : Microsoft

28 maggio

ASP.NET MVC framework

Advantages of an MVC-Based Web Application

The ASP.NET MVC framework offers the following advantages:

  • It makes it easier to manage complexity by dividing an application into the model, the view, and the controller.

  • It does not use view state or server-based forms. This makes the MVC framework ideal for developers who want full control over the behavior of an application.

  • It uses a Front Controller pattern that processes Web application requests through a single controller. This enables you design an application that supports a rich routing infrastructure. For more information, see Front Controller on the MSDN Web site.

  • It provides better support for test driven development (TDD).

  • It works well for Web applications that are supported by large teams of developers and Web designers, who need a high degree of control over the application behavior.

27 maggio

Have to check

Asp.net 3.5 extensions :http://quickstarts.asp.net/3-5-extensions/default.aspx
 
 
Smart Client is a term used to describe an application environment which:
  • delivers applications over a web http connection
  • does not require installation (or provide automated installation and updates)
  • automatically updates without user action
  • has the look and feel of desktop applications

How smart clients came into picture:http://blogs.msdn.com/dphill/articles/66300.aspx

New project

Again a big change: Moved to new team.
One year 3 projects: Different project structures  : Agility to proces and now to ...
Web based to opensource and now to windows based...
CRM to PHP now to finance domain....
 
Liked it but at the same time no time given for me in between..
 
26 maggio

SmartCity Review

SmartCity  Full review:
 
New retail marketing :http://en.wikipedia.org/wiki/Zara_(clothing)
25 maggio

Janaagraha WISA volunteer

I always want to make my surrondings a better place in all fields whether it is social or technical.
I came to know about Janaagraha one day.
Then I registered in that site.
Then I got mail from Janaagraha to participate in CAP program.
After missing so many CAP programs I went to ISI CAP program.
That was a nice experience.
That day I believed that it is not a time pass organisation.
This is what I want.
My search was ended here.
I want to involve in their activities fully.
Then I came to know about WISA program.
Roy , Devanshi told me about this.
I joined as a volunteer in WISA.
I have to do field work as part of this.
I have to collect some information regarding public amenities in Koramangala area.
Sanjana gave some ideas how to collect better information from the citizens.
They are very helpful tips.
Yesterday (24th May 2008) Sonu called me about the plan. He is my partner  in Koramangala area.
Today morning I started from my room (Belandur area) at 9 am and met Sonu at Reliance Fresh (Jakkasandra) and we have done a quick overview of our schedule.
I prepared a full list of Koramangala areas that we have to visit.
We identified the areas using maps and asking Real Estate guys.We even took the help of a Central Reserve Police guy. Really he helped more than anybody else.He gave advice to go Koramangala Police Station to get full information. We went and collected full information.
Now at 12:30 AM we decided to go to KHB colony.
We asked so many shop people to get the address.The voter list address are not having information regarding block,main ,cross . Koramangala is divided into 8 blocks ( I think so) but in the list it has 18th block ,16th block .They are not present. Voter list address has to change.
Finally we went to H.No.198 (Sujith Kumar) house.Actually in the list it was given that Sujith Kanna. Actually the address is 4A Cross,17E Main H.NO 198 ,KHB colony. Sujith went to US.His parents are here.
After finding difficulty in introducing ourself to his father ( first he was not convinced) then he gave a warm welcome to us.
He was nice person and gave so much information.He is a retd govt official person concerned about the society."What do you want me to do?" in one of the conversation he told these words. It hurted me a bit but after hearing his later words I came to know about his concerns about the society. Good person.
Then we went to #361 Venkabo Rao. He is a Telugu guy being in Bangalore over 40 yrs. When I told that we are from Janaagraha he is ready to give the details.As he know about Janaagraha and its activities he gave information with no hesitation. He is participating actively in their areas associations. But he commented one thing that the form which we are using is big. I too agree.We are taking more than 10 min(approx. 15min).Good experience with him.
Thats it.Only 2 houses are identified from KHB colony.We have our own work in office. So we dispersed.Before that we made a plan for the next week (it should be in the early hours next week, exchanged email and phone nos.) Nice experience with Sonu. He is a Malayali but can handle Kannada. He is an entrepreneur and that to in my field. I liked it as I have the similar thoughts.
Next week with some more thoughts and experiences.
 
24 maggio

Amazon Web Services

Amazon is more than online book retail store It has exposed webservices.
 
A big list is there
 
I attended their sessions. Now I can start experimenting on them

StartupCity

Today morning I went to Startup City event in Nimhans.
The session given by Ashish Gupta , Helion VC was good
And My Entrepreneurial Experience by Rajendra Mishra(Lead India Movement) was excellent.
Really he showed the importance of middle class people to involve in the Government.Otherwise things will become even worse.

Take away from Great Indian Developer Summit

As a developer we have to concentrate on these lines said by some good speakers. Plan a year like this

Yakov Fain : Select 5 good books related to technology and read them.  Difficult part is choosing the best books and authors.

Venkat Subramanian : Atleast read one new language per year. New language means which drives new way of programming
     c# ,Java are related. Both are OO . So there is no new.
     Ruby is different from above.
     Functional or Dynamic languages like that.

Thanks Vic for giving me this good oppurtunity. This was my first big event I attended.
23 maggio

Dynamic Functional Meta Programming Languages

From the Java Bleeding Edge Technology Developer Summit
I heard these Dynamic Functional Meta Programming Languages

Venkat Subramaniyan is the best speaker out of all speakers there.

Tomorrow  I will be at Startup City to learn from their experiences.
22 maggio

Developer Summit review

After attending Developer Summit Java tracks I came to know that Java is well matured than any other languages.
 
A very big crowd and very passionate about Java.
 
So many Java guys knows about Hibernate,OR mapping , Rule Engines, Unit Testing  frameworks and Mock framework.
 
I know they are not that much known in .Net industry.

Developer Summit Event

From the last 3 days I am attending Developer Summit Event.
It was an excellent oppurtunity for me.
First thing I liked about it I got an oppurtunity to met some of the best people in industry.
Second thing I liked about it is I heard the latest buzz in the industry from the eminent speakers.
Thanks to Salt March Media for arranging this.
 
I am a dotnet guy. So from the first day I am attending the sessions.
 
The most I liked are:
 
I : Bleeding edge .net
 
All the 5 Sharepoint sessions from ED Musters ,Sharepoint guru. He made all the topics so clear even for a fresher.
Domain Annotations session by Erik Doernenburg.
And I missed this session : Asp.net MVC First Look as it was overlapped with Sharepoint.
 
Then yesterday I attended rich web track.
The keynote by Jesse James Garrett (Father Of Ajax) is the best out of all the tracks. He made audience ( a very big crowd) to get the sense the importance of User Experience through his presentation. Really good insight.
Shivakumar (VP Nokia) is also another good one on the importance of Mobile track.
 
Today I am going to the Java track.
 
Will update you by the end of the day once after attending .
 
Day by day my curiosity is getting increased.
Help desk people are really supporting.
Goooooooooooooood.
 
20 maggio

Erik Doernenburg session on Testable Architecture

Today at Developer Summit I attended Annotation session by Erik Doernenburg
Actually I dont know about it . Just like that I attended as there are no interesting sessions at that time.
But if  I have not attended that really I will miss about this great topic. What a technical depth session.
 
Tomorrow Erik is giving a session in his company Thoughtworks and it is open to all .
 
Erik Doernenburg (http://erik.doernenburg.com/) will be talking about  
"Towards a testable application architecture". Erik has talked about  
this previously at JAOO in 2004.

If you plan to land up, it would be great if you could head over to: http://thoughtworks.wikispaces.com/Confirm+Presence
  and sign up. This is very much an informal event and we don't  
discourage people who land up on a whim at the last minute - the sign  
up is for the organizers to get an idea of the numbers.

About Erik:
Erik Dörnenburg is a Principal Consultant at ThoughtWorks Inc. where  
he is helping clients with the design and implementation of large-
scale enterprise solutions. Building on his experience with J2EE,  
Microsoft .NET and other environments, Erik is continually exploring  
patterns of enterprise software. He is an advocate of agile  
development and Open Source software, holds a degree in Informatics  
from the University of Dortmund and has studied Computer Science and  
Linguistics at the University College Dublin.

Where:
ThoughtWorks Technologies (India) Pvt Ltd.
2nd Floor, Tower C, Corporate Block, Diamond District
Airport Road, Bangalore - 560 008, India
t: +91 80 2508 9572
f: +91 80 2508 9584

Diamond District is on Airport Road near the 100 ft Road/Airport Road
flyover, right opposite TGIF/Bombay Post.

Join this group : http://thoughtworks.wikispaces.com/GeekNights

Ketan from Thoughtworks: http://ketan.padegaonkar.name/

Topics: "Towards a testable application architecture" by erik doernenburg Slides
Confirm Presence

19 maggio

Income tax returns filing through online - very easy...

Steps to follow…

  1. Select appropriate type of Return Form.

Þ      http://www.incometaxindiaefiling.gov.in/portal/individual_huf.do

2.      Download Return Preparation Software for selected Return Form.

Þ      For Employees: http://www.incometaxindiaefiling.gov.in/portal/downloads08-09/itr/ITR1_2008_09_R1i.zip

3.      Fill your return offline and generate a XML file.

4.      Register and create a user id/password.

Þ      http://www.incometaxindiaefiling.gov.in/portal/login.do

5.      Login and click on relevant form on left panel and select "Submit Return".

Þ      http://www.incometaxindiaefiling.gov.in/portal/uploadXML.do

6.      Browse to select XML file and click on "Upload" button.

7.      On successful upload acknowledgement details would be displayed. Click on "Print" to generate printout of acknowledgement/ITR-V Form.

8.      Incase the return is digitally signed, on generation of "Acknowledgement" the Return Filing process gets completed. Assessee may take a printout of the Acknowledgement for his record.

Þ      Generally we don't have Digital singes.. so, go to next step)

9.      Incase the return is not digitally signed, on successful uploading of e-Return, the ITR-V Form would be generated which needs to be printed by the tax payers. This is an acknowledgement cum verification form. The tax payer has to fill-up the verification part and verify the same. A duly verified ITR-V form should be submitted with the local Income Tax Office with in 15 days of filing electronically. This completes the Return filing process for non-digitally signed Returns.

 

You can find more details at

http://www.incometaxindiaefiling.gov.in/portal/howToEFile.do

 


You can download E-filling application form from

http://www.incometaxindiaefiling.gov.in/portal/individual_huf.do

 

Or you can simply click here for salary/TDS persons(ITR-1).

 

You can see previous and current filling reports at Loginà My AccountsàMy returns

 

For any queries.. you can call  or email to

  Aayakar Sampark Kendra (ASK)

  Phone: 0124-2438000

  Email:  ask@incometaxindia.gov.in

Bus Route Information sites of different cities

The following links give U all road directions along with Kms, Auto fare, Traffic at any point of time. 
 
17 maggio

What is Javascript and some must watch tutorial videos

 
there are multiple books and free online resources available for learning JavaScript, i would suggest viewing these videos from the Senior  JavaScript Architect at Yahoo and creator of JSON, Douglas Crockford.

Douglas in these four videos mentioned below, provides a comprehensive introduction to the JavaScript Programming Language. A must watch for anyone planning to learn Javascript.

MOSS training First Day

I am very happy to be part of Bdotnet team.

I felt very very happy after listening MOSS session today by Arun.

Simply superb. Fully technical stuff.

Really expecting some more interesting stuff from Arun.

Its our request from the members who are attending MOSS training. For covering the topics if it takes time also please continue. We will stay.

Spend nearly one year for getting information on Sharepoint.

Eagerly waiting more on BI (excel services ,reporting services) ,Infopath (Business process), workflow  

Thanks Arun for giving a deep dive sessions.