Click here to Skip to main content
15,913,941 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to refresh page only one time Pin
yamuna_sutherland6-Nov-07 18:17
yamuna_sutherland6-Nov-07 18:17 
QuestionGrid View Pin
Big Ralph5-Nov-07 23:58
Big Ralph5-Nov-07 23:58 
AnswerRe: Grid View Pin
Sherin Iranimose6-Nov-07 0:32
Sherin Iranimose6-Nov-07 0:32 
AnswerRe: Grid View Pin
John-ph6-Nov-07 0:55
John-ph6-Nov-07 0:55 
Questionregular expession Pin
Sonia Gupta5-Nov-07 23:57
Sonia Gupta5-Nov-07 23:57 
JokeRe: regular expession Pin
Christian Graus5-Nov-07 23:58
protectorChristian Graus5-Nov-07 23:58 
GeneralRe: regular expession Pin
Mircea Grelus6-Nov-07 12:02
Mircea Grelus6-Nov-07 12:02 
AnswerRe: regular expession Pin
varshavmane6-Nov-07 0:09
varshavmane6-Nov-07 0:09 
Instead of having regular expression I did something like this:

I wrote a javascript function:

function onlyDigits(e)
{
var retKey = true;
var IsTwoDecimal = e.value.indexOf(".");
if (window.event.keyCode < 46 || window.event.keyCode > 57 || window.event.keyCode == 47)
{
window.event.keyCode = 0;
retKey = false;
}
else
{
//This code is used to restrict two decimal cost e.g.= 23.55 is valid
//but cost=45.55.66. is not valid.
if (IsTwoDecimal !=-1)
{
var s=e.value.split(".");
if (window.event.keyCode==46 || s[1].length>=2)
{
window.event.keyCode = 0;
retKey = false;
}
}
}
return (retKey);
}

<input id="txtCost" runat="server" type="text" onkeypress="return onlyDigits(this);" />

Hope this helps u???
GeneralRe: regular expession Pin
Christian Graus6-Nov-07 8:25
protectorChristian Graus6-Nov-07 8:25 
AnswerRe: regular expession Pin
soni uma6-Nov-07 0:43
soni uma6-Nov-07 0:43 
GeneralRe: regular expession Pin
Sonia Gupta6-Nov-07 0:51
Sonia Gupta6-Nov-07 0:51 
GeneralRe: regular expession Pin
soni uma6-Nov-07 1:03
soni uma6-Nov-07 1:03 
GeneralRe: regular expession Pin
Christian Graus6-Nov-07 8:24
protectorChristian Graus6-Nov-07 8:24 
GeneralRe: regular expession Pin
Malcolm Smart7-Nov-07 11:01
Malcolm Smart7-Nov-07 11:01 
AnswerRe: regular expession Pin
Nish Nishant6-Nov-07 12:46
sitebuilderNish Nishant6-Nov-07 12:46 
QuestionEditable DropDownList Pin
varshavmane5-Nov-07 23:28
varshavmane5-Nov-07 23:28 
AnswerRe: Editable DropDownList Pin
Sandeep Akhare5-Nov-07 23:33
Sandeep Akhare5-Nov-07 23:33 
GeneralRe: Editable DropDownList Pin
varshavmane5-Nov-07 23:42
varshavmane5-Nov-07 23:42 
GeneralRe: Editable DropDownList Pin
Sandeep Akhare5-Nov-07 23:49
Sandeep Akhare5-Nov-07 23:49 
GeneralRe: Editable DropDownList Pin
varshavmane5-Nov-07 23:50
varshavmane5-Nov-07 23:50 
AnswerRe: Editable DropDownList Pin
Sonia Gupta5-Nov-07 23:46
Sonia Gupta5-Nov-07 23:46 
GeneralRe: Editable DropDownList Pin
varshavmane5-Nov-07 23:50
varshavmane5-Nov-07 23:50 
GeneralRe: Editable DropDownList Pin
Sonia Gupta6-Nov-07 0:00
Sonia Gupta6-Nov-07 0:00 
QuestionWant to read excel file in asp.net using vb.net Pin
Khawar Abbas15-Nov-07 22:54
Khawar Abbas15-Nov-07 22:54 
AnswerRe: Want to read excel file in asp.net using vb.net Pin
Ganesan Sankaran5-Nov-07 23:19
Ganesan Sankaran5-Nov-07 23:19 

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.