Converting Windows Form Application In Web Application?

Dec 27, 2010

Is it possible to convert a windows form application into a web application?

If it is not possible, how can I add the OpenFileDialog in a web application form?

I cannot see it in the toolbox if i choose new web application. On the other hand, I can see it if I choose windows form application.

View 21 Replies


Similar Messages:

C# - How To Display Windows.Form.MessageBox In Web Application

Jan 24, 2011

I want to display my validation error messages in the MessageBox. I have Four TextBoxes and One Button control. When I click the Button Control, the TextBoxes without the text to be shown in the MessageBox. I have almost done this, but the problem is When I click the Button, the MessageBox is opened as a minimized window. So it is difficult for the end user to realize. I want to display the MessageBox to the user when button clicks.

Here is my code, In the Button Click Event

[code]....

View 4 Replies

VS 2010 Connecting To SQL Database From Windows Form Application?

Aug 5, 2010

I had another thread on this problem but I wanted to start this one so no one had to look at the code I posted in the other thread. I have a successful connection but want to display data from the SQL database on my website in my Windows form application. Here's the code I have so far. Used some of the ADONET Tutorial1 here. The table Ray Rover Activation has a number of different columns but to start out I just wanted to see if I could display data for the EmailAddress column.

Code:

[code]....

If I comment out the Sub DoStuff I don't get any errors but neither is anything displayed other than the messagebox message. If I don't comment out DoStuff then I get an error, "Incorrect syntax near the keyword 'FROM'". Maybe someone could enlighten me some on what I need to do get the data in the column EmailAddress to display.

View 2 Replies

Web Forms :: Printing Receipt In Windows Form Application

May 29, 2013

How to print data Fron listbox ..

Pattern being 

Item name  Quantity Price 

ABC                  2         20

Total=                         20

View 1 Replies

Converting A Client Application To A Server Application?

May 14, 2010

I have written a program that interprets bar charts on the web and converts them into textual summaries. It is blind and visually impaired get more information during their web surfing. Anyways, right now all of the processing is handled on the user's machine and it is a very resource intensive program. So, I wanted to make it so the main computation was done by a server so that the user could simply click on a graph and get the summary instead of waiting while the computation was being done. Does anyone have a clue how to tackle this problem? If you need more information let me know.

View 8 Replies

Visual Studio :: Call To The Class Library From The Windows Form Application Works Fine?

Aug 12, 2010

I have a windows service that calls a class library. The call to the Class library from the windows form application works fine. But from the service I do get the desired output. The event viewer does not report any error. The service was working fine until the recently when the server got remastered. Any suggestions what might have gone wrong?

View 2 Replies

C# - Converting A Web Application To A Silverlight Application?

Feb 15, 2010

I'm developing an three layer ASP.NET application with C# and Visual Studio 2008 SP1. I'm using WebForms.

I'm wondering to convert that application to a Silverlight application. Maybe I can reuse a lot of code of ASP.NET layer.

View 3 Replies

MailMessage Sent To Any Adress From Windows Forms Application, But Not From Asp.net Application, After Both Are Using The Same SMTP-server?

Jan 27, 2010

I'm experiencing a to me mysterious error when sending e-mails through a SMTP-server from an ASP.NET web application. I get the famous error "unable to relay for xxx@yyy.zzz". What's mysterious to me is that when I cut and paste the exact same code that sends the e-mail into an usual .NET Windows Forms application, send the e-mail with this application, it all works just fine. This made me think that perhaps the problem is that the ASP.NET application runs as NETWORK SERVICE while the Windows Forms application runs on a domain user account, but it turns out that I have another ASP.NET application sending e-mail through the same SMTP-server running under NETWORK SERVER at the same IIS, and this application does not experience this problem.

I've further tried to send e-mails through the SMTP-server manually by telnet the smtp-server on port 25 and running the SMTP-protocol manually, and it all works fine. The SMTP-server is not configured with any kind of authentication or SSL.

Another mysterious fact is that the ASP.NET application can send e-mails from an adress within the same domain to an e-mail adress within the same domain, but not to any adress outside of the domain. But the Windows Forms application, that uses the exact same code, can send e-mails from any adress to any adress both within AND outside of the domain.

So to summarize:

The ASP.NET application can send
e-mails from addresses within the
domain to adresses within the domain,
but not to addresses outside of the
domain.
A Windows Forms application running
the same code on the same computer
can send e-mails from ANY address to
ANY address.
Another ASP.NET application on the
same IIS running under the same
account (NETWORK SERVICE) can send
e-mails using the same SMTP-server
from ANY adress to ANY adress.
There is no authentication configured
on the SMTP-Server.
Both the ASP.NET application and the
Windows Forms application utilizes
the System.Net.Mail.SmtpClient class
to send a
System.Net.Mail.MailMessage.

The code that sends the e-mail massage is:

private void button1_Click(object sender, EventArgs e)
{
MailMessage mesasge = new MailMessage(txtFrom.Text, txtTo.Text, "Test mail", txtBody.Text);
SmtpClient client = new SmtpClient();
if (!(string.IsNullOrEmpty(txtUserName.Text))) //Is false since txtUserName.Text is empty
client.Credentials = new System.Net.NetworkCredential(txtUserName.Text, txtPassword.Text);
client.EnableSsl = false;
client.Host = txtServer.Text;
client.Port = 25;
try
{
client.Send(mesasge);
}
catch (Exception ex)
{
txtResponse.Text = ex.Message;
}
}

As far as I can understand, this should be a matter of configuration rather than coding issues.

View 2 Replies

Can Windows Service Application Share A Bin Folder With A Web Application

Jan 5, 2011

I have some common dlls that are referenced by both a windows service application and a asp.net web application. I don't want to make separate copies of the dlls and I also don't want to put those dlls into GAC. I try to put that service application under the same root folder as the web application so that they can share the same bin folder. I am not quite sure if this will cause any problems? I did find the web application had random session timeout, but not very often. Not sure if it was caused by the shared dlls.

View 1 Replies

Get Application File Path In Windows Forms Application?

Nov 3, 2010

I have a simple windows form app that I need to get the file path for. I am placing a config file in the same directory and I need to be able to get the path to that file.

I have used
Application.CommonAppDataPath
but that returns the path with 1.0.0.0 at the end.

and
Applicaiton.StartupPath
but that returns the path with indebug at the end

Is there anyway to get the path to just the main file directory without anything appended to the end?

View 3 Replies

Web Forms :: Same Codes From Windows Application But Can't Compile The Same Way In Web Application

Jan 25, 2011

why is it that the exact same codes that i use to create a Windows application, which is able to work, does not work on a Web application? i created a windows application using c# and socket programming language. i will be connected to a remote server and through the windows application, and i will be able to send the "byte[] msg" to the server and activate the LED lightbulbs attached to the remote server. that exact same codes works well on the Windows application. however, when i create another Web application using the same exact codes, i does not have any error yet i am not able to activate the LED lightbulbs attached to it. is it that through the web or internet explorer i am not able to send the "byte[] msg" correctly? or that i sld modify "byte[] msg" to suit the web usage? or any other reasons?

View 7 Replies

Visual Studio :: How To Remove The Unused References In Form Level/vb.net Application And Web Application

Feb 3, 2010

How to remove the unused references in form level, vb.net application and web application?

How can I use fxcop to identity undisposed objects like dataset, dataview, connection, stream...? Any one having custom rules for the same?

View 1 Replies

Passing Data From Windows Application To Web Application?

Apr 26, 2010

I have a windows application and a web application. The windows as well as web application has a login page. The username and password are same for the windows and web application.

In the windows application, the user enters the username and password. With this username and password in windows application, is it possible to log into the web application? If yes, How to pass the data from windows application to web application, thereby logging into the web application. Is it possible to pass the username and password from a windows application to a web application?

View 5 Replies

WCF / ASMX :: Passing Value From Web Application To Windows Application?

Aug 17, 2010

I have a web page where I used a gridview and a button.When selecting rows in the grid and click on the button another windows application fires.I need to pass the values of the selected rows to the windows application.

Rightnow I'm saving the values in an xml file and fetch the values in the windows application.But this is not practical when creating xml files with random numbers(Scan125.xml,Scan7867.xml,etc).

View 1 Replies

Local Web Application Or Windows Application For System?

Jun 17, 2010

I am going to design system that will keep track of publications due by researchers in my work place
Need for this project :

1- a database housing the information .

2- Automatic reports must be generated .

the users will upload PDF and we have around 25 researchers.

I can't decide which one is better for my system .

My questions are :

1- Local web application or windows application ?

2- Access or SQL as database ?

3- I have visual studio 2010 for student use, Could I use it or I need to buy one ?

View 1 Replies

Web Application References For A C# Windows Application Developer?

Oct 14, 2010

I am used to working on C# .NET windows applications. I am interested in starting with web applications. good ebooks or references for C# ASP.net to begin with for a guy like me who is comfortable with windows applications?

View 3 Replies

Web Forms :: Integrate Windows Application Into Web Application?

May 19, 2012

is it possible to call or integrate the windows application into asp.net web application? is it yes then tell me how to do it.

View 1 Replies

Application To Windows Application Communication

Oct 11, 2010

What are the different ways in which a web application can communicate to a windows application? I have heard that activex control events can be handled in javascript to achieve this.

Does WCF or any new technology provide a better implementation for this?

Can the publish/subscribe architecture be used here?

View 2 Replies

Convert Windows Application To Web Application?

Jan 20, 2011

Is it possible to convert windows application to web application. if yes means how can do this.do u have any tools.if not means why.

View 1 Replies

Converting Vb.net Into A Web Application?

Sep 23, 2010

I have written a desktop application in vb.net. Now I need to convert it into a web application in asp.net. Can you please suggest how I might proceed?

View 1 Replies

Installing Windows Application On Client System (Example: Windows Update From Microsoft Site)

Nov 23, 2010

I have a ASP.NET application. From that, User register, User will get email after registration. My Req : When user click on link provided in email. Then it should go to my ASP.Net application page . That page should install a wincows application on Client system through web ( I was inspired by Microsoft Windows update from Microsoft site)

View 1 Replies

WCF / ASMX :: FTP Directory Listing In Windows Application But Not In Windows Service?

Dec 13, 2010

Iam using ftp client wrapper class for accessing ftp.

iam able to download files from ftp when used in windows application

when i try to use the same code with windows service i get an error

the error is

"The underlying connection was closed: An unexpected error occurred on a receive. "

this error i get on directory listing

the stack trace is:

[Code]....

Note:

FTP is getting connected throgh service
FTP is getting connected throug FileZilla, internet explorer

soruce code:

[Code]....

View 5 Replies

Installation :: Uninstall .net Windows Application From Different Windows User

Jul 7, 2010

We have a website portal hosted in Windows 2003 server. For security reasons we are using different windows Login user say (xxxx) for signin other than Administrator. Now with this user (xxxx) name I installed .net Windows Application. It was working fine. For some reasons I renamed the original windows Login user(xxxx) to different say (yyyy). Now this .net Windows Application is not working with (yyyy) and even it is not allowing me to uninstall it.

View 3 Replies

Crystal Reports :: Converting Doc To PDF In Web Application

Feb 12, 2011

Trying to preview a crystal report in pdf format in web application by passing parameter but showing error message:
crReportDocument.Export()
missing parameter value

<CODE>
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim Fname As String
crReportDocument.Load(Session("rptFileName"))
CrystalReportViewer1.ReportSource = crReportDocument
CrystalReportViewer1.RefreshReport()
CrystalReportViewer1.ParameterFieldInfo.Clear()
Fname = "C:TempTemp.pdf"
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
If Session("rptType") = "PrintOption0" Then ' Without Parameter
' no need to do anything
ElseIf Session("rptType") = "PrintOption1" Then ' One Parameter
paramField.Name = "@UserID"
paramDiscreteValue1.Value = Session("rptParameter1")
paramField.CurrentValues.Add(paramDiscreteValue1)
paramFields.Add(paramField)
CrystalReportViewer1.ParameterFieldInfo = paramFields
End If
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
' delete the exported file from disk
System.IO.File.Delete(Fname)
</CODE>

View 2 Replies

Localization :: Converting Web Application To Different Language?

Mar 29, 2010

I had created ASP.Net Web Application named 'Traning Management System' (in English) for my company. Now my boss wants me to translate that application to Arabic language. He wants everything to be in arabic. I don't know how to do it. I searched in google and came to know about localization and globalization. I could not understand the topics. My application contains 1 master page, 5 .aspx pages. The pages mostly contains labels, textboxes, gridview, buttons and other controls. The project also contains reports.

View 4 Replies







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