Winform Versus MVC

Jun 1, 2010

I want to know when to use winform and MVC asp.net

View 11 Replies


Similar Messages:

Configuration :: Deploying Versus Releasing Versus Implementing

Sep 16, 2010

What is the difference between; Deploying an application Releasing an application Implementing an application

View 1 Replies

Application_Start Versus OnInit Versus Constructor?

Jul 23, 2010

I've gone rounds with this ever since I started programming classic ASP 12 (or so) years ago and I've never found a great solution because the architecture of ASP and ASP.NET has always been a swamp of bad practices, magic shared singletons, etc. My biggest issue is with the HttpApplication object with its non-event events (Application_Start, Application_End, etc.).

If you want to do stuff once for the entire lifespan of an HTTP application, Application_Start is the obvious place to do it. Right? Not exactly. Firstly, this is not an event per se, it's a magic naming convention that, when followed, causes the method to be called once per AppDomain created by IIS.

Besides magic naming conventions being a horrible practice, I've started to think it might be a reason there exist no such thing as a Start event on the HttpApplication object. So I've experimented with events that do exist, such as Init. Well, this isn't really an event either, it's an overridable method, which is the next best thing.

It seems that the Init() method is called for every instantiation of an HttpApplication object, which happens a lot more than once per AppDomain. This means that I might as just put my startup logic inside the HttpApplication object's constructor.

Now my question is, why shouldn't I put my startup logic in the constructor? Why does even Init() exist and do I need to care about Application_Start? If I do, can anyone explain why there is no proper event or overridable method for this pseudo-event in the HttpApplication object?

And can anyone explain to me why in a typical ASP.NET application, 8 instances of my HttpApplication are created (which causes the constructor and Init to run just as many times, of course; this can be mitigated with locking and a shared static boolean called initialized) when my application only has a single AppDomain?

View 2 Replies

How To Print A Pdf From Winform Without Opening

Oct 25, 2010

I have pdf file saved on my hard disk. I want to print it without opening it in a single click.

View 1 Replies

Convert A WinForm To A WebForm In .NET?

Dec 7, 2010

I didn't think it was possible but I was just talking to a co-worker who said she had done it before. Is she pulling my chain?

View 4 Replies

Web Forms :: How To Convert Winform Component

Jan 25, 2010

I have succeeded in capturing image from webcam with window form.

There is a problem, i.e I'd like to apply this application on web page.

I try to convert winform component to webform component

(Winform Component (PictureBox) to Web User Control (asp:Image)), but it fails.

View 1 Replies

Architecture :: Integrate .NET Page Into A Winform

Apr 1, 2011

I've an ASP.NET application running for reporting purposes. This is done for the management. The persons on the production floor have

a windows application running. Some of them needs to view the ASP.NET reporting page. To avoid writing twice the same reporting tools

(ASP.NET and Windows application) I want to import the ASP.Net pages into a windows form. I don't want to have the ASP.NET pages running

outside the windows application.

View 1 Replies

C# - Trigger On Database Using A Web And Winform Application

May 25, 2010

Situation: I have a web application which shows errors and where you can accept those error messages. I also have a service, which checks errors from a system and sets the error messages in the database. When I accept an error in the web application, i would like the service to know which error message has been accepted, so that it can do some other actions. My guess is that this could be done through some sort of trigger, but i can't figure out how.

View 1 Replies

C# - Can Create A PDF Quotation File From Winform

Aug 6, 2010

Assuming i have a winform that has a button called "Create a Quote". Once user clicks it, a PDF File gets created on desktop. The PDF File has a fixed design/structure e.g. the logo is at the top left corner, the headers are fixed, etc. However, the data it self is pulled from a database.

As you see above, Quotation #, Description, Qty, U.P (USD), T.P (USD) records should be fetched from the db and dumped in the pdf template then create the pdf for user.

View 1 Replies

C# - Is There Equivalent Of WPF OriginalSource Event Property In Winform?

Jan 23, 2011

From:

[URL]

The OriginalSource property of the object identifies the original object that received/initiated the event. Consider a custom control (called CustomControl1 in this example) that is composed of a TextBlock. When a MouseDown event is raised on the TextBlock, the OriginalSource property will be the TextBlock, but in CustomControl1's handler, the Source will be changed to the CustomControl1 object so that other elements along the event's route will know that CustomControl1 received a MouseDown.

Is there equivalent of WPF OriginalSource event property in Winform and ASP.NET ? If not how to emulate this ?

View 1 Replies

How To Determine If The Executing Assembly Is A Web App Or Winform/console

Apr 16, 2010

I would like to write a helper function which build the exception message to write to a log.The code look like:

if(IsWebApp)
{
use HttpContext to get the Request Path and RawUrl [code]....

View 4 Replies

Create Global.asax In Winform Application?

May 17, 2010

I'm trying to create Global.asax in a Winform. I could do it in ASP.NET, but i couldn't find a way for Windows Application. I have a singleton class called DataAccessLayer, i need to instantiate it once only, so i can call its method/properties anywhere in the application easily.

View 5 Replies

JQuery Application Running From CD - Convert In A WinForm App

Mar 9, 2010

I've developed a very simple ASP.NET (jQuery) application. The RDBMS is MS Sql Server but I could easily convert it in MS Access. My client would like to have it available on a CD, ready to run. I was thinking to convert it in a WinForm app but, still, I have to install the framework on the client. Is there any other "possible" solution?

View 5 Replies

C# - Plug Dependency Property Framework To Winform Or .NET ?

Dec 18, 2010

The dependency property framework is a general UI Framework that can be needed outside WPF. So is there a way to use it for Winforms or ASP.NET UI for example ?

Update: I mean can I declare a few namespaces and use dependency property framework in winforms and asp.net ?

View 3 Replies

Web Forms :: Signed WinForm Control Not Showing In Web Page?

Nov 8, 2010

I developped a light WinForm Control that run like an ActiveX in a Web Page. No problem yet.However, when i want to access System.IO I got a Security Exception. It seems that I have to sign my assembly, so that's what I did. When my assembly is signed, my Web Browser can't show the Winform. I set IE to download any ActiveX in the Security tab ... Nothing happens. Uncheck "Sign Assembly" ... works fine ...

View 2 Replies

Simulate Virtual Users Interacting With Winform Or ASP Application?

Mar 10, 2011

Microsoft release a product named - Visual Studio Load Test Virtual User Pack 2010 to do that. However, it cost USD$4,799. So,is it other free or commercial tool can do simulate jobs? At now, my solution is :

Winform :
3 x virtualbox + WinXP with some macro software.

ASP.NET
3 x virtualbox + WinXP + Firefox and iMacro

View 3 Replies

System.Security.Permissions.SecurityPermission Winform In Webform?

Nov 22, 2010

It's a ?/$%/$%"!$ mess ... My webpage contains a winform user control. That user control send text to LPT1.It acts like an ActiveX. I set my website (on localmachine) as a trust one in IE and set all properties for ActiveX under security tab. The user control is showed under IE but I got a System.Security.Permissions.SecurityPermission when execute it.When I sign my control, IE can't display it ! I registered the dll in the .Net Framework Configuration tool

View 3 Replies

C# - Parameter Is Not Valid Exception When Saving Image In Winform?

Nov 22, 2010

I am getting a parameter is not valid exception..While saving the image

Here is my code to save the image

if (!File.Exists(pictureBox1.Tag.ToString()))
{
Image image = pictureBox1.Image;
image.Save(pictureBox1.Tag.ToString(), ImageFormat.Jpeg);
}
else
{
string delStr = pictureBox1.Tag.ToString();
pictureBox1.Image.Dispose();
File.Delete(delStr);
Image image = pictureBox1.Image;
image.Save(delStr, ImageFormat.Jpeg);
pictureBox1.Image = Image.FromFile(delStr);
}

View 2 Replies

SQL Reporting :: Display SSRS Report Based On Winform Parameters?

Jan 25, 2011

I need to display report in winform based on winform parameters.

I'm ve in SSRS report via URL, I deployed in Reportviewer in winform . Now I need to display that report based on my win form parameters i.e., I'm ve in textbox and button.

I ve to enter related item in textbox and when I press the button the report should be viewed based on this values. Remember I'm calling report via URL.

View 2 Replies

C# - Convert WinForm To WebForm / Show Database Grid On Screen?

Nov 26, 2010

i have C# Winform program and i need to convert it to Webform. can i get any simple sample for how to show database grid on screen,

add new, update and delete ?

i try to show table on screen like this:

SQL = "SELECT * FROM MEN order by Lname";
dsView = new DataSet();
adp = new SqlDataAdapter(SQL, Conn);
adp.Fill(dsView, "MEN");
adp.Dispose();
GridView1.DataSource = dsView.Tables["MEN"].DefaultView;

View 1 Replies

Viewing Crystal Reports Other Than Through Custom Developed Webform Or Winform Apps?

May 19, 2010

At work we currently have a custom in-house built winforms app for the business users to view reports. It has role-based security and several administrator functions.My boss is thinking about getting me to port this app to webforms.My question is, are there options other than custom built winforms and webforms apps for deploying/viewing/administrating Crystal Reports at an enterprise level (role-based security, easy report deployment, etc)? I'm thinking about third-party packages or perhaps applications provided by Microsoft/Business Objects/SAP?

View 1 Replies

VS 2013 - Pass Data With POST Method From WinForm To WebForm And Retrieve It

Jul 9, 2015

What I want to do is Pass data with GET/POST method from WinForm to WebForm and retrieve it. I know how to send the Datads using Winform. How can I capture those data using webform so that after i get the submitted data from the winform I can perform my querys .

View 8 Replies

Winform Control Hosted In IE, FileIO Security Exception / How To Solve This Error Message

Nov 4, 2010

I see a message on:

winform control hosted in IE, FileIO security exception.

I have got the same problem, which I cannot figure out what is the solution for weeks.

I have Windows 7 (Home premium edition), framework 3.5 (how can I check that, if gacutil is correct version, if it metters, anyway ...)

I am writting on C#.

Also on assemblyInfo.cs :

[code]....

View 5 Replies

VB.Net Versus C Sharp

Aug 18, 2010

which is the better language in terms of coding, proficieny if we compare between VB.Net and C Sharp.

View 7 Replies

SQLDataSource Versus ADO.NET

Mar 8, 2011

If I want to connect to a database in ASP.Net, is it better to use ADO.NET rather than SQLDataSource? They serve a similar purpose, correct?

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved