Click here to Skip to main content
15,910,981 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: textbox substring validation Pin
Imran Khan Pathan26-Oct-07 23:21
Imran Khan Pathan26-Oct-07 23:21 
AnswerRe: gridview Pin
N a v a n e e t h26-Oct-07 22:40
N a v a n e e t h26-Oct-07 22:40 
Questionclient side validations Pin
Sonia Gupta26-Oct-07 21:40
Sonia Gupta26-Oct-07 21:40 
AnswerRe: client side validations Pin
N a v a n e e t h26-Oct-07 21:54
N a v a n e e t h26-Oct-07 21:54 
Questionhow????????????? Pin
ajsgja26-Oct-07 19:58
ajsgja26-Oct-07 19:58 
AnswerRe: how????????????? Pin
Imran Khan Pathan26-Oct-07 20:07
Imran Khan Pathan26-Oct-07 20:07 
GeneralRe: how????????????? Pin
ajsgja26-Oct-07 21:37
ajsgja26-Oct-07 21:37 
GeneralRe: how????????????? Pin
Imran Khan Pathan26-Oct-07 22:00
Imran Khan Pathan26-Oct-07 22:00 
I did give you an example.
cosider you have four button for "+" ,"=","1" and "2"

html source code
asp:button id"btnplus" runat="server" onclick="calendar_click" Text="+" />
asp:button id"btnequal" runat="server" onclick="calendar_click" Text="=" />
asp:button id"btnone" runat="server" onclick="calendar_click" Text="1" />
asp:button id"btntwo" runat="server" onclick="calendar_click" Text="2" />


global val
int prevVal,CurrVal;


event

protected void calendar_click(object sender,....)
{


string key=((Button)Sender).Text;
switch(key)
case "+":
   preVal=int.Parse(txtVal.Text);
   txtVal.Text="";
   break;
case "=":
   currVal=int.Parse(txtVal.Text);
   txtVal.Text=preval+currVal;
   break;
case "1":
  txtVal.Text=key;
  break;
case "2":
  txtVal.Text=key;
  break;
   

}


bEst rEgard
pAthan

please don't forget to vote on the post that helped you.

AnswerRe: how????????????? [modified] Pin
N a v a n e e t h26-Oct-07 21:22
N a v a n e e t h26-Oct-07 21:22 
GeneralRe: how????????????? Pin
ajsgja26-Oct-07 21:39
ajsgja26-Oct-07 21:39 
GeneralRe: how????????????? Pin
J4amieC27-Oct-07 1:12
J4amieC27-Oct-07 1:12 
AnswerRe: how????????????? Pin
John-ph26-Oct-07 21:38
John-ph26-Oct-07 21:38 
GeneralRe: how????????????? Pin
ajsgja26-Oct-07 21:39
ajsgja26-Oct-07 21:39 
GeneralRe: how????????????? [modified] Pin
John-ph26-Oct-07 23:00
John-ph26-Oct-07 23:00 
QuestionCalendar Control Example Pin
PeriyasamyRamachandran26-Oct-07 19:35
PeriyasamyRamachandran26-Oct-07 19:35 
AnswerRe: Calendar Control Example Pin
Member 387988126-Oct-07 19:46
Member 387988126-Oct-07 19:46 
GeneralRe: Calendar Control Example Pin
PeriyasamyRamachandran26-Oct-07 20:24
PeriyasamyRamachandran26-Oct-07 20:24 
AnswerRe: Calendar Control Example Pin
Imran Khan Pathan26-Oct-07 20:04
Imran Khan Pathan26-Oct-07 20:04 
GeneralRe: Calendar Control Example Pin
PeriyasamyRamachandran26-Oct-07 20:26
PeriyasamyRamachandran26-Oct-07 20:26 
GeneralRe: Calendar Control Example Pin
Imran Khan Pathan26-Oct-07 20:42
Imran Khan Pathan26-Oct-07 20:42 
AnswerRe: Calendar Control Example Pin
N a v a n e e t h26-Oct-07 21:38
N a v a n e e t h26-Oct-07 21:38 
GeneralRe: Calendar Control Example Pin
PeriyasamyRamachandran26-Oct-07 22:24
PeriyasamyRamachandran26-Oct-07 22:24 
Questionhow to display news feeds in marquee method Pin
karthidheena26-Oct-07 19:14
karthidheena26-Oct-07 19:14 
AnswerRe: how to display news feeds in marquee method Pin
Abhijit Jana26-Oct-07 20:48
professionalAbhijit Jana26-Oct-07 20:48 
QuestionTAB CONTROL Pin
PeriyasamyRamachandran26-Oct-07 18:18
PeriyasamyRamachandran26-Oct-07 18:18 

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.