Click here to Skip to main content
15,916,318 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: To print an html page without loading it and without a print dialog, in asp.net Pin
Guffa13-Jul-06 23:03
Guffa13-Jul-06 23:03 
Question'System.StackOverflowException' occurred in System.Data.dll(urgent) Pin
srinandan..13-Jul-06 22:37
srinandan..13-Jul-06 22:37 
AnswerRe: 'System.StackOverflowException' occurred in System.Data.dll(urgent) Pin
enjoycrack13-Jul-06 22:41
enjoycrack13-Jul-06 22:41 
QuestionSession_end or browser close events? Pin
TintinV3ck13-Jul-06 22:23
TintinV3ck13-Jul-06 22:23 
AnswerRe: Session_end or browser close events? Pin
enjoycrack13-Jul-06 22:40
enjoycrack13-Jul-06 22:40 
AnswerRe: Session_end or browser close events? Pin
Guffa13-Jul-06 23:11
Guffa13-Jul-06 23:11 
GeneralRe: Session_end or browser close events? Pin
cloudking1196614-Jul-06 3:44
cloudking1196614-Jul-06 3:44 
QuestionASP.NET page is not working.............!!! Pin
gajee13-Jul-06 21:01
gajee13-Jul-06 21:01 
Hi..All,
Can somebody please tell me what is wrong with this ASP.NET page??

The browser is returning me the error
--> SubmitBtn_click is undefined <--

here is the code
......
...
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<%@Import Namespace="System"%>




<title>Untitled Document

void SubmitBtn_Click(Object Source,EventArgs e)
{
spanMessage.InnerHtml = GetFormattedDate(sugg.Value);
}


public static String GetFormattedDate(string cChoice)
{
string sReturn;
switch(cChoice.ToString())
{
case "0": sReturn=DateTime.Now.ToShortDateString();
break;
case "1": sReturn=DateTime.Now.ToShortTimeString();
break;
case "2": sReturn=DateTime.Now.DayOfWeek.ToString();
break;
case "3": sReturn=DateTime.Now.ToString();
break;
default: sReturn ="None";
break;
}
return sReturn;
}







Short Date
Short Time
Day of the Week
Date and Time






Thankyou.

AnswerRe: ASP.NET page is not working.............!!! [modified] Pin
J4amieC13-Jul-06 22:30
J4amieC13-Jul-06 22:30 
AnswerRe: ASP.NET page is not working.............!!! Pin
enjoycrack13-Jul-06 22:45
enjoycrack13-Jul-06 22:45 
AnswerRe: ASP.NET page is not working.............!!! Pin
Guffa13-Jul-06 23:25
Guffa13-Jul-06 23:25 
AnswerRe: ASP.NET page is not working.............!!! Pin
gajee15-Jul-06 1:27
gajee15-Jul-06 1:27 
QuestionDelete file from previous place after copy it to another place Pin
hi_arv13-Jul-06 19:49
hi_arv13-Jul-06 19:49 
QuestionImage component Pin
Malayil alex13-Jul-06 19:39
Malayil alex13-Jul-06 19:39 
AnswerRe: Image component Pin
psamy13-Jul-06 20:39
psamy13-Jul-06 20:39 
GeneralRe: Image component Pin
Malayil alex14-Jul-06 21:27
Malayil alex14-Jul-06 21:27 
QuestionAddin in ASP.NET Pin
aaraaayen13-Jul-06 19:39
aaraaayen13-Jul-06 19:39 
AnswerRe: Addin in ASP.NET Pin
RichardGrimmer17-Jul-06 3:02
RichardGrimmer17-Jul-06 3:02 
QuestionArrayList Pin
kirthikirthi13-Jul-06 19:20
kirthikirthi13-Jul-06 19:20 
AnswerRe: ArrayList Pin
psamy13-Jul-06 20:36
psamy13-Jul-06 20:36 
QuestionOutlook in ASP.NET Pin
aaraaayen13-Jul-06 18:50
aaraaayen13-Jul-06 18:50 
QuestionMail Merge using C#.net Pin
R.Prabha Devi13-Jul-06 18:34
R.Prabha Devi13-Jul-06 18:34 
QuestionTimer [modified] Pin
nisha261213-Jul-06 17:08
nisha261213-Jul-06 17:08 
AnswerRe: Timer Pin
mnaveed13-Jul-06 22:32
mnaveed13-Jul-06 22:32 
QuestionDoes AJAX can get ColumnName at client? Pin
Old Gun13-Jul-06 16:14
Old Gun13-Jul-06 16:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.