Click here to Skip to main content
16,012,611 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Dynamically adding custom controls to a aspx page (C#) Pin
N a v a n e e t h18-Jul-07 0:25
N a v a n e e t h18-Jul-07 0:25 
QuestionHow to: Simple Database Connection Pin
totocaster17-Jul-07 21:43
totocaster17-Jul-07 21:43 
AnswerRe: How to: Simple Database Connection Pin
Paddy Boyd17-Jul-07 22:33
Paddy Boyd17-Jul-07 22:33 
AnswerRe: How to: Simple Database Connection Pin
mavii18-Jul-07 0:17
mavii18-Jul-07 0:17 
AnswerRe: How to: Simple Database Connection Pin
mavii18-Jul-07 0:22
mavii18-Jul-07 0:22 
QuestionAlways Accept Integer Values Pin
fmlove17-Jul-07 21:25
fmlove17-Jul-07 21:25 
JokeRe: Always Accept Integer Values Pin
N a v a n e e t h17-Jul-07 21:32
N a v a n e e t h17-Jul-07 21:32 
AnswerRe: Always Accept Integer Values Pin
Manas Bhardwaj17-Jul-07 21:48
professionalManas Bhardwaj17-Jul-07 21:48 
Well, If I get you correctly; you are interested in having a textbox which only accepts integer values. Am I rite?

If so, you can use the following code.
Hi,
this following code allows only integers.


<script language="javascript" type="text/javascript">
function intOnly(i) 
{
if(i.value.length>0) 
{
i.value = i.value.replace(/[^\d]+/g, ''); 
}
}
</script>


<asp:TextBox id="TextBox1" style="Z-INDEX: 102; LEFT: 240px; POSITION: absolute; TOP: 152px" Runat="server" onChange="intOnly(this);" onKeyUp="intOnly(this);" onKeyPress="intOnly(this);"></asp:TextBox>

GeneralRe: Always Accept Integer Values Pin
fmlove17-Jul-07 22:50
fmlove17-Jul-07 22:50 
Questionquery string in ASP.net Pin
ramakant_135217-Jul-07 20:46
ramakant_135217-Jul-07 20:46 
AnswerRe: query string in ASP.net Pin
N a v a n e e t h17-Jul-07 20:53
N a v a n e e t h17-Jul-07 20:53 
AnswerRe: query string in ASP.net Pin
Imran Khan Pathan17-Jul-07 21:18
Imran Khan Pathan17-Jul-07 21:18 
AnswerRe: query string in ASP.net Pin
Mubashir Javaid17-Jul-07 22:05
Mubashir Javaid17-Jul-07 22:05 
GeneralRe: query string in ASP.net Pin
zumbi17-Jul-07 22:14
zumbi17-Jul-07 22:14 
AnswerRe: query string in ASP.net Pin
chapathi17-Jul-07 22:39
chapathi17-Jul-07 22:39 
QuestionGridview values + storing them in database Pin
DKalepu17-Jul-07 20:11
DKalepu17-Jul-07 20:11 
AnswerRe: Gridview values + storing them in database Pin
N a v a n e e t h17-Jul-07 20:44
N a v a n e e t h17-Jul-07 20:44 
GeneralRe: Gridview values + storing them in database Pin
Amit.Amit.Amit...17-Jul-07 21:00
Amit.Amit.Amit...17-Jul-07 21:00 
GeneralRe: Gridview values + storing them in database Pin
N a v a n e e t h17-Jul-07 21:09
N a v a n e e t h17-Jul-07 21:09 
GeneralRe: Gridview values + storing them in database Pin
Amit.Amit.Amit...17-Jul-07 21:21
Amit.Amit.Amit...17-Jul-07 21:21 
GeneralRe: Gridview values + storing them in database Pin
N a v a n e e t h17-Jul-07 21:30
N a v a n e e t h17-Jul-07 21:30 
GeneralRe: Gridview values + storing them in database Pin
Amit.Amit.Amit...17-Jul-07 22:19
Amit.Amit.Amit...17-Jul-07 22:19 
GeneralRe: Gridview values + storing them in database Pin
DKalepu17-Jul-07 21:46
DKalepu17-Jul-07 21:46 
AnswerRe: Gridview values + storing them in database Pin
Amit.Amit.Amit...17-Jul-07 20:54
Amit.Amit.Amit...17-Jul-07 20:54 
GeneralRe: Gridview values + storing them in database Pin
DKalepu17-Jul-07 21:04
DKalepu17-Jul-07 21:04 

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.