-
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#
Asp.net using c#
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Abhineet SrivastavaRank #1,890 · 783 reputationPosted Sep 10, 2013, 8:33 AM EDT
Can you please explain little bit more?
Cheers
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Sep 10, 2013, 9:40 AM EDT
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;
}
}
Ring ZhongRank #6,843 · 255 reputationPosted Sep 10, 2013, 6:55 PM EDT