-
Write a ASP.NET program to accept the User Name and display a greeting message randomly chosen from a list of 4 greeting messages using c#
Loading
Write a ASP.NET program to accept the User Name and display a greeting message randomly chosen from a list of 4 greeting messages using c#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ring ZhongPosted Sep 10, 2013, 10:55 PM
Sanjeeb LenkaPosted Sep 10, 2013, 1:40 PM
try this:
in aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
in .cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = "Welcome :" + TextBox1.Text;
}
}
Abhineet SrivastavaPosted Sep 10, 2013, 12:33 PM
Can you please explain little bit more?
Cheers