C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Chat Application


Posted Date: 15 Jul 2008      Total Responses: 2

Posted By: tharani       Member Level: Bronze     Points: 1



Hi,


I need chat application using asp.net.in client side i want display one window in that one subwindow,in that suppose two persons r charting.And in serverside one window is there nd in that i want 2 diaplay the ipaddress.if 2 persons r der 2 ipaddresses r display in seperate windows.Help me a lot ,its very urgent.



Thanking u,







Responses

Author: sandeep    15 Jul 2008Member Level: GoldRating:     Points: 6

just go through this code....


<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="User.aspx.cs" Inherits="Default2" Title="User Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<script type="text/javascript" language="javascript">
function CheckText()
{
var text = document.getElementById('<%= TextBox1.ClientID %>').value;
if(text.length <= 0)
{
alert('Enter Your Text...');
}
}
</script>

<table width="100%" align="center" cellspacing="0" cellpadding="0">
<tr>
<td align="center" colspan="2">
<asp:Label ID="Label1" runat="server" Text="OnLine Users!!" Font-Bold="True" Font-Size="10pt"
ForeColor="HotPink"></asp:Label>
</td>
</tr>
<tr>
<td style="width: 650px" bordercolordark="blue" align="center">
<div id="text" runat="server" style="width: 98%; height: 300px; border-left-color: blue;
border-bottom-color: blue; border-top-style: solid; border-top-color: blue; border-right-style: solid;
border-left-style: solid; border-right-color: blue; border-bottom-style: solid;">
</div>
<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="10pt" ForeColor="HotPink"
Text="Enter your Text Here!!"></asp:Label></td>
<td bordercolordark="maroon" style="width: 223px" align="center">
<div id="users" runat="server" style="width: 95%; height: 300px; border-left-color: maroon;
border-bottom-color: maroon; border-top-style: solid; border-top-color: maroon;
border-right-style: solid; border-left-style: solid; border-right-color: maroon;
border-bottom-style: solid;">
</div>
<asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="10pt" ForeColor="HotPink"
Text="Send Your Message Here!!" Width="100%"></asp:Label>
</td>
</tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 630px; border-right: red thin solid; border-top: red thin solid;
border-left: red thin solid; border-bottom: red thin solid">
<asp:TextBox ID="TextBox1" runat="server" Height="55px" TextMode="MultiLine" Width="635px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
ValidationGroup="5656"></asp:RequiredFieldValidator>
</td>
<td style="width: 113px; border-right: orange thin solid; border-top: orange thin solid;
border-left: orange thin solid; border-bottom: orange thin solid; background: orange"
align="center">
<asp:Button ID="Button1" runat="server" Text="Send" Width="75px" Height="28px" OnClick="Button1_Click"
OnClientClick="CheckText();" ValidationGroup="5656" PostBackUrl="~/user1.aspx" />
</td>
<td style="border-right: green thin solid; border-top: green thin solid; border-left: green thin solid;
border-bottom: green thin solid; background: green" align="center">
 <asp:Button ID="Button2" runat="server" Text="Cancel" Width="75px" Height="28px"
OnClick="Button2_Click" />
</td>
</tr>
</table>
</asp:Content>



Author: tharani    15 Jul 2008Member Level: BronzeRating:     Points: 1

Give ne the code in code behind.Both client and server side.


Post Reply
You must Sign In to post a response.
Next : dataset
Previous : viewstate
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use