Query on .net
this blog contains information for .net and sql stuffs. You can find various tips and tricks to overcome problem you may be facing in ...
Tuesday, December 18, 2012
Windows 8 application development requirement
Monday, October 1, 2012
Add Event/Appointment in Google Calendar with Google account credential.
Friday, September 7, 2012
Html.RenderPartial() Sytanx Error : No overload for method 'Write' takes 0 arguments
Hey Everyone,
I was trying Html.RenderPartial() in Asp.net MVC and what I got “No overload for method 'Write' takes 0 arguments“
From my code it seems very clear that I have written correct syntax but actually there is a little problem with it.
My earlier code was is as below
@foreach (var p in Model.Members)
{
@{ Html.RenderPartial("MemberSummary",m); }
}
But it was giving me Error : “No overload for method 'Write' takes 0 arguments”. As we all know RenderPartial() directly writes in the output stream so it was better for using it than Partial().
After close look inside of code, I found that it should be C# statement and I was mixing inside of code block and I corrected out my code as below. It worked.
@foreach (var p in Model.Members)
{
Html.RenderPartial("MemberSummary", m);
}
Have a happy debugging !!
Monday, July 30, 2012
Windows Mobile 7.5 on my view.
Monday, July 2, 2012
Green field / Brown field development
In software development we are usually have two types of work to be done in any application. Both some legacy system is already running and we should require build on new system on it or build new system from very scratch.
When we are going to build new system without considering any of the old system and it does not connect with any other system such type of development referred as Green Field development
In contrast some system does not require depending on any other system, we can go ahead with development from scratch, we don’t rely on any other system such type of development referred as Brown Field Development.
Both type of development have their advantage and disadvantage on development.
Green Field:
Advantage
We have more control at the time of development,
We don’t rely on sub system.
We are free to stretch system as we need
Disadvantage
No reference is available, new system should build carefully meet all requirement of business.
Brown Field:
Advantage
Have reference of already running system
Can take advantage of existing data for future expansion
Can leverage system incorporate with new System.
Disadvantage
Hard to implement programming semantics at some level due to bound with old system.
We do many application but we might not know what type of development we do? Hope this will help us identifying our development.
Wednesday, June 6, 2012
Print button is not working in Crystal report viewer
Tuesday, June 5, 2012
Change default time out of strongly typed dataset table adapter command.
Public Sub SetCustomCommandTimeout()
Utility.SetCommandTimeout(CommandCollection)
End Sub
End Class
If (commands IsNot Nothing) Then
If (timeout < 0) Then timeout = GetConfigTimeout()
For Each cmd As System.Data.SqlClient.SqlCommand In commands
cmd.CommandTimeout = timeout
Next
End If
End Sub
Private Shared Function GetConfigTimeout() As Integer
Dim timeOut As Integer
If Not System.Configuration.ConfigurationManager.AppSettings("CommandExecutionTimeOut") Is Nothing Then
timeOut = CType(System.Configuration.ConfigurationManager.AppSettings("CommandExecutionTimeOut"), Integer)
Else
timeOut = 0
End If
Return timeOut
End Function