C# Implement A simple Client And Server?

Oct 29, 2010

i want to implement a simple client and server using asp.net.

Requirments: The client side will be a web application using asp.net where user can go on any common web browser (Firefox, IE...) and be able to use it without having to install any plug-ins or .NET. It will have a "Connect" button, once press it will connect to the server.

On the server side, which will just be a windows form or console application, once it detects a connection comin from the client, it accepts it, and send "Connected" back to the client side. The client side then respond back with "Hello world" to the server and display on the screen.

Should be able to work on LAN and over the internet WAN.

*Im trying to avoid tcp/sockets because it uses non-standard ports and usally it will be block by firewalls.

View 3 Replies


Similar Messages:

Finding To Implement Simple Role Management

Nov 27, 2010

I have a very basic need in regards to membership and role management. I am having success with the membership and being able to use the [Authorize] filter, but the IsInRole() and all that goes along with it is failing. I am hoping someone can point out where I am going wrong.

1) Login action is called on the controller:

[code]....

If I add a check to the site.master to show/hide a menu item based on role there are no roles listed for the user anymore. I have tried both Page.User.IsInRole("Role1") and HttpContext.Current.User.IsInRole("Role1") neither of which is true. I also receive a failure on [Authorize(Roles="Role1")] filter.

View 2 Replies

How To Implement A Simple Search Mechanism On Webpage

Aug 18, 2010

I want to display records based on the Prod ID entered by the user in the text box. Where can I find a tutorial to do that?

I can't find a simple one. I am completely new to .NET, and hardly know anything about grid view, SQL connections and stuff.

I need a step-by-step tutorial that explains how to do it. I want to learn about all of this.

Oh, BTW, I did establish an SQL connection and was successful in displaying my table on the web page. I want to learn how to search from that table and display records.

View 1 Replies

Web Forms :: Implement Simple Spell Checking Class In C#?

Feb 22, 2011

I am using a rich textbox in my website, i need to check the spelling in the content of richtextbox. That i need to implement the spell checking class to check the spelling. give me the idea or sample code to achieve this.

View 1 Replies

AJAX :: How To Implement A Simple Autocomplete Textbox Into My Asp.net Site

Jun 14, 2010

I'm implementing a simple autocomplete textbox into my asp.net site and this is what I've come up with:

[Code]...

View 10 Replies

Custom Server Controls :: Want To Implement On Client Side  "onchange" Event?

Jun 9, 2010

I have developed and multicolumn combo box server control using textbox and image(for arrow) as described in following sample

http://www.codeproject.com/KB/custom-controls/Multi_Column_Combo_Box.aspx

It is working fine. Now what i want is to implement is client side "onchange" event.

for e.g. if we want to call javascript function on selection change event of dropdownlist control then we can do it as follows

DropDownList1.Attributes("onchange") = "javascript:Validate();"

Here "onchange" is inbuilt client side event for dropdownlist control

Similarly i want such client side event that the is fired when selection is changed in my multicolum control,something like this

MultiColDropDown1.Attributes("onchange") = "javascript:Validate();"

View 1 Replies

Web Forms :: Implement A Simple Login Page With User Session Management

Jul 23, 2012

I want to maintain user session in my project...the problem i am facing is when any user login is nt maintained.

View 1 Replies

Web Forms :: Transfer Data From Server To Client And Client To Server Using XML Web Services

May 24, 2012

What is Web services? What is Web services? How can I Transfer the data from server to client and  client to server using XML. Need one simple Example program(C# web Application) ...

View 1 Replies

GridView - Can Implement Client - Side Paging

Jul 29, 2010

Regarding ASP.NET's GridView server control: Can I bind to a datasource in the code-behind, load the entire resultset, and then implement client-side paging without postbacks? If this isn't possible with GridView, I'm willing to implement a custom solution. EDIT: My GridView instance sits inside of a nyroModal (jQuery) pop-up div, which is why I need a non-postback solution.

View 3 Replies

Security :: Implement Client Certificate In Windows 7 Running IIS 7.5?

Feb 12, 2011

I want to implement client certificate in IIS 7.5 in windows 7. As per my knowladge I need to setup server certificate first for IIS. But I could not figure out how to do that.

View 2 Replies

How To Implement Website Security Based On Client Hardware Or Other Solution

Oct 2, 2010

I have two websites (one asp classic and the other asp.net) which we would like to implement some kind of security based on the client's hardware. We want something other than a password which could be shared. The purpose is to be sure access to information on the websites is not shared.

We were contrmplating storing hardware info in our database and validating against that upun website entry.

I have been looking into ActiveX (it would be acceptable to limit our users to IE), although we do have users who would like to use I-Phones. I have done no ActiveX development myself but have found a few articles on the web about ActiveX but that whole approach looks complicated. And also there seems to be a 64bit issue making it even more difficult.

So, I wonder if anybody has any advice as to what the best options might be for securing the website access in a way that would prevent sharing?

View 1 Replies

C# - Show Only Client-side Validation With Client And Server Validators?

Dec 12, 2010

If I have something like the following:

<asp:TextBox id="test" runat="sever"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ControlToValidate="test"
ErrorMessage="Required"></asp:RequiredFieldValidator>
<asp:Label runat="server" id="lblStatus"></asp:Label>

if in the code behind, I set the label to "You must enter a value if the textbox is empty" to validate it on the server side and this is fine, but if javascript is enabled, I don't want to show the client side validation and the server side label together. Is this something where I would just have to disable the client-side validators if javascript was enabled?

View 3 Replies

MVC :: How To Deploy A Simple App To The Server

Feb 17, 2011

I created a MVC Movies application tutorial on my local mechine. Now I want to deploy it to my server. (IIS 7) I read few articles and I am lost in the middle.Can any one tell me how can I deploy a simple mVC app to the server?

View 6 Replies

C# - Client-Server App, Want To Create A Client Simulator ?

Oct 11, 2010

We've got a client app which connects using TCP to a server. Additionally, the client app makes use of .NET remoting to talk to another piece of locally running code.

I'm tasked with creating a "Client Simulator" to do some testing, where we'd need to have 100's of clients connected simultaneously to the server. Ideally, this would work out great if I were to run each client in it's own space, such as a VM, but this is not logistically feasible.

how to handle this? Is there a tool that could do something like this? Or some sort-of .NET concept I could use?

View 3 Replies

SQL Server :: How To Create Simple SSIS

Mar 29, 2011

i need to create a simple package that will: 1. insert a data to table A2. get the identity_scope3. insert multiple rows to table B with the id from table Ai created one, but it only does bulk insert, so i want to redo it again.

View 1 Replies

Is There Any Simple DAL Generator For SQL Server - MS Enterprise Library - VB.NET Or C#

Feb 9, 2010

Is there any simple DAL Generator for SQL Server/ MS Enterprise Library/VB.NET or C#?

View 7 Replies

Http - Is There A Simple(ish) Way To Route All Requests To The Server

Oct 5, 2010

Here's the big picture. We're running a server in IIS 6 that hosts several web sites and applications, and we're in the process of moving the whole thing to a different data center with a slightly different setup. We've notified our users and updated our DNS info so that theoretically everyone will be happily hitting the new server from day 1, but we know that someone will inevitably fall through the cracks.

The powers that be want a "Listener" page/handler that will receive all requests to the server and log the entire request to a text file, including (especially) POST data.

That's where I'm stuck. I don't know how to implement a single handler that will receive all requests to the server. I vaguely understand IIS 6 redirection options, but they all seem to lose the POST data on the redirect. I also know a little about IIS 6's built-in logging, but it ignores POST data as well.

Is there a simple(ish) way to route all requests to the server so that they all hit a single handler, while maintaining post data?

View 1 Replies

SQL Server :: Code For Simple Database Connection In 3.5?

Aug 8, 2010

.net frame work. I know about few controlin .net and I have tried few programs also. Now want to learn a databaseconnection in .net so please provide me one easy example of such program.

View 2 Replies

SQL Server :: Simple Union Query / From Northwind Database

Aug 4, 2010

I am a .net developer.I am not that strong in SQL.I need a simple query.This is from Northwind Database.

select 'Select All' as CustomerID,'Select All' as City union(select CustomerID, City from Customers
order by City)

i need to get output like 1st row should be Select ALl Select All and next rows should be output of this stat..(select CustomerID, City from Customers order by City)

i am not getting this...i can do by keeping the second query result in temp table and then using union... but i am looking without temp tables or simple query.

View 2 Replies

AJAX :: Simple Web Service Doesn't Work On Server?

Mar 6, 2010

The following 'hello world' webservice works fine on my computer (VS2008) but I can't get it to work on the server--either from an aspx page (below) or when invoked directly. I get '404 page not found' on the direct invocation.

[Code]....

I added the HttpGet and HttpPost to test the web service directly on the server. I can open the page and invoke it, but then get the 404 page not found response.

View 5 Replies

Custom Server Controls :: Create A Simple Control Provides From DLL?

Jan 4, 2010

I'm begginer and I would like an example how create a simple custom control that only needs DLL reference like this:

<%@ Register Assembly="myControl" Namespace="myControl" TagPrefix="cc1" %>
<cc1:myControl ID="myControl1" runat="server" name="" size=""..... />

View 1 Replies

Javascript - User Control With Client + Server Side CustomValidation; Wrong Client Side Validator Is Picked

Nov 23, 2010

I have a user control which contains a CustomValidator which is used according to whether a RadioButton is checked or not (there are several RadioButtons, I'm only showing the relevant one)

<asp:RadioButton runat="Server" ID="RadioBetween" GroupName="DateGroup" CssClass="date_group_options_control_radio" />
[code]...

There is some client + server side validation code (the server side code does exactly the same thing and is skipped for brevity)

<script type="text/javascript">
function ValidateDateFields_Client(source, args) [code]...

There are two instances of this control in the page. When running the client side version it hits the wrong one (the version of the control which is disabled). You can see from the generated HTML both are correctly specified. I'm not sure how .NET works out which clientside function to call given they both have the same name.

<script type="text/javascript">
//<![CDATA[
var ctl00_MCPH1_QueryTextValidator = document.all ? document.all["ctl00_MCPH1_QueryTextValidator"] : document.getElementById("ctl00_MCPH1_QueryTextValidator");

[code]...
Do i need to add something in to scope it? What's the best way to achieve this? If I disable the loading of the second control everything works fine.

View 1 Replies

Client - Server - Client Architecture?

Feb 23, 2010

I'm going to create my own project, and i have some difficulties with technology selection. I will have client application(windows forms) and web service. Data exchange between clients will be only by using this web service. Data will be like image stream,so I don't know which technology to use. I started to look at WCF, but i don't know a lot about it.

View 3 Replies

IIS Configuration :: Unable To Login With Simple Form When Hosted In Server

May 7, 2015

Why I can't login after I deployed in IIS?

[URL] .....

View 1 Replies

Web Forms :: Simple Server Control To Produce A Report Style Listing?

Feb 1, 2010

I currently have a gridview that is displaying tabular data from an sqldatasource that looks something like this:

[code]....

Since I have an unpredictable number of categories coming from the database, I would like to continue to use a single datasource with only one query to the database. There is no editing, it is simply for display purposes. What's the simplest way?

View 1 Replies







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