Showing posts with label design. Show all posts
Showing posts with label design. Show all posts

Thursday, March 29, 2012

please explain "What is Singleton Design Pattern? What does volatile provide? "

Can any body please explain me "What is Singleton Design Pattern? What does volatile provide? " in C# 2.0

-Sanjeev

Hi,

take a look at this page:http://www.dofactory.com/Patterns/PatternSingleton.aspx.

Grz, Kris.


Many ThanksSmile

But What does volatile provide?


Hi,

sanjeev_asp.net:

But What does volatile provide?

You can just look it up in the documentation:http://msdn2.microsoft.com/en-us/library/x13ttww7(VS.80).aspx.

Grz, Kris.

Wednesday, March 21, 2012

please help me about asp.net 2

i have 3 qustions about asp.net 2
i already design sit by vs.net 2003 and now i download vwd 2005 and like design new my site by vwd 2005
1 - in vs.net 2003 i have a bin site that when i upload site to host copy this folder and build this by build sulotion but
in wvd i didnt see bin folder
2- when i creat a site by vs.net 2003 many file build automaticly for example refrences,global.ascx,... but in this version
dont build
3- when i want upload my site in host which i need upload file
please help me

bahram wrote:

i have 3 qustions about asp.net 2
i already design sit by vs.net 2003 and now i download vwd 2005 and like design new my site by vwd 2005
1 - in vs.net 2003 i have a bin site that when i upload site to host copy this folder and build this by build sulotion but
in wvd i didnt see bin folder
2- when i creat a site by vs.net 2003 many file build automaticly for example refrences,global.ascx,... but in this version
dont build
3- when i want upload my site in host which i need upload file
please help me

1) By default VWD and VS 2005 do not compile an assembly (.DLL file) automatically. The code is placed in the App_Code folder and dynamically compiled at runtime.

2) If you need those files, you can add them manually by right-clicking the project in Solution Explorer and then Add File.

3) I'm not sure I understand this question.

Friday, March 16, 2012

please help me to solve my provblem..its very urgent

i have a button in my webform. whenever i click that button it should display the crystal report designer window so that the end user can design his own report...
i don't know how to display crystal report designer window at runtime in asp.net.please help me...

please please help me...its very very urgent

Hello Niranjana,

A CrystalReportViewer needs a CrystalReportSource in order to function. So, in the scenario you outlined above, you'd need to dynamically add both to the page. In VB.NET, this would look something like the following:

 Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim crs As New CrystalDecisions.Web.CrystalReportSource crs.ID = "CrystalReportSource1" crs.Report.FileName = "CrystalReport1.rpt" form1.Controls.Add(crs) Dim crv As New CrystalDecisions.Web.CrystalReportViewer crv.Height = New Unit("200px") crv.Width = New Unit("200px") crv.AutoDataBind = True crv.ReportSourceID = "CrystalReportSource1" form1.Controls.Add(crv) End Sub

HTH,
Clay


sir,

thank you so much for ur information.

but my problem is different. I need to design the crystal report at runtime... ie one end user be able to design his crystal report.. ie adding fields ,formatting crystal reports all those things...

if u have any idea please help me sir

thanks & regards

nisha


Hi nish,

I dont whether its possible to enable the users to design his own reports... But try the below logic...

1. You need to list all of the fileds available in the reports...

2. Create the query which fetches the data from the table for the fields selected by the user and empty for unselected fileds. (initially you need to design the reports with all the fields)

3. suppress the fields in crystal reports if the field value is empty.

I hope the above will help you...


that i can do sir,i have already listed all the fields of a table in a listbox and use that to create crystal report...

my problem is really different...the end user should able to design his own crystal reports.

at runtime the designer should come. can we use any Report Designer Component(RDC) in asp.net...i am not getting an exact idea from net also. if u can please help me sir...


Hi nish,

Sorry I dont know whether its possible or not... I think its not available in Crystal reports... but may be in some other third party report tools...


anyway..thank you sir..