|
Hi,
I was using this code in asp.net 2003 and it was working fine..
I am using vb script.
<asp:textbox onkeypress="OnlyNumber('txtConfirmACnumber')" id="txtConfirmACnumber" oncopy="return false" runat="server">
function OnlyNumber(str)<br />
{<br />
if ( ((window.event.keyCode <48) | (window.event.keyCode >57)))<br />
{<br />
window.event.returnValue=false<br />
}<br />
}<br />
But this code does not work properly in asp.net 2.0, This showing "window" is not a member.
Can anyone tell me is onkeypress not supported in asp.net 2.0????
THANKS
|
|
|
|
|
check this out might help you
http://sgdotnet.org/blogs/chuawenching/archive/2006/12/29/ASP.NET-2.0-_1320_-Move-the-cursor-from-1-textbox-to-the-other-automatically.aspx
|
|
|
|
|
use the following codes in server side, remove onkeypress attribute in the client side code.
txtConfirmACnumber.Attributes.Add("onkeypress","OnlyNumber(this.value)")
Regards
Elaraja.S
|
|
|
|
|
Hi all...
How to extract picture from excel sheet to a jpg file...
Pradeep Reddy
|
|
|
|
|
Dear Friends I am trying to load a file by filestream but when i write then command
file=new filestream(filepath,filemode.create)
its gives me the error "Access to the path is denied". Please Help me
|
|
|
|
|
I am not sure but this can help...
can you please make sure that ASPNET user account have appropriate access rights to the file?
|
|
|
|
|
Dear try to upload in Binary format, while using filestream..
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
By default the asp.net application will work under aspnet user rights.
aspnet user don't have rights to create files in the hard drive.
if you want to write files in the server, you can go one of follwing way.
1. share the path, give the rights to every one. write the file in this shared folder.
2. give the admin rights to the asp.net (it's worst case, nobody accept).
3. User impersonation. - search asp.net impersonation for more info.
Regards
Elayaraja.S
|
|
|
|
|
Hi all
i have array
[0,1] = "abc"
[0,2] = "dfd"
[0,3] = null
[0,4] = "abc"
[0,5] = "abc"
[0,6] = null
How can i remove item have value is null ?
|
|
|
|
|
hi AnhTin,
I am dilip, you can remove element from array you need to check whether element consists of null then you need to shift up array.
<br />
public static void check(array[][])<br />
int i,j,k;<br />
for(i=0;i<1;i++)<br />
{<br />
for(j=1;j<7;j++)<br />
{<br />
j=k;<br />
if(array[i][j]==null)<br />
{<br />
while(k<7)<br />
{<br />
array[i][k]=array[i][k+1];<br />
k++;<br />
}<br />
}<br />
}<br />
}<br />
Hope this will help you.
Dilip Kumar Vishwakarma
|
|
|
|
|
hi friends,
i am getting a run time error when i am trying to access the function defined in the webservice(WFC) from the client(i.e webform).
COULD NOT FIND DEFAULT ENDPOINT ELEMENT THAT REFERENCES CONTRACT 'CITIZENSERVICE.ICITIZENSERVICE' IN THE SERVICEMODEL CLIENT CONFIGURATION SECTION. THIS MIGHT BE BECAUSE NO CONFIGURATION FILE WAS FOUND FOR YOUR APPLICATION, OR BECAUSE NO ENDPOINT ELEMENT MATCHING THIS CONTRACT COULD BE FOUND IN THE CLIENT ELEMENT.
Web service Name : CITIZENSERVICE
Interface Name : ICITIZENSERVICE
Please help me out
Thanks in Advance
Chandra Gupta
|
|
|
|
|
i m using gridview to show the user and a child gridview to show the user details in the parent gridview cell..
my parent grid has two columns and child grid opens in the first cell.
now i want to show this grid in both cells..
the way to do this is merging the two cells.
but, how can i do this...
Please help me ...
thanx in advance..
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
set the colspan in the child cell to 2
it can be done in the OnRowDataBound event.
Regards
Elayaraja.S
|
|
|
|
|
Hi I am new to Asp.net....
I am converting a htm files in to aspx files for localization issues.
I have a table with width=100% and height = 100%.
when I open the html page inside a fixed frame window. The table is not filling the whole window.
I want the last <tr> of the table to be on the bottom frame of the window. The below is the piece of my table.
At present the last <tr> of the main table is displayed above the window size. I want the empty space between the tr and the window size to be removed....
any help is highly appreciated....
<body scroll="no" onkeypress="document_onkeypress();">
<form id="faqForm" runat="server"></form>
<table id="faqTable" cellpadding=0 cellspacing="5" border=0 width="100%" style="height: 100%">
<tr>
</tr>
<tr valign="bottom" >
<td>
<table cellpadding="0" border="0" cellspacing="0" width="100%">
<tr>
<td align="left"><a class="help" href="#" onclick="openHelpWindow('FAQ_help.aspx?culture=<%= Request.QueryString["culture"] %>',400,500);"><%= Resources.Immediacy.FAQ.FAQ_Help%></a></td>
<td align="right">
<input type="button" class="button" value="<%= Resources.Immediacy.FAQ.FAQ_ButtonOK >" id="ok" name="ok" onclick="doOK()">&nbsp;&nbsp;<input class="button" type="button" value="<%= Resources.Immediacy.FAQ.FAQ_ButtonCancel %>" id="cancel" name="cancel" onclick="window.returnValue=false;window.close();">
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
|
|
|
|
|
set the fixed height for the botton row,
<table>
<tr height =100%>
<td>
// insert your codes. if you want scroll for this content , use div tag, add your elements inside the div tag.
<td>
</tr>
<tr height = 25px>
<td>
</td>
</tr>
</table>
Regards
Elayaraja.S
|
|
|
|
|
i create a new simple sample web part and now i want to run it but i dont know how can i run it?
can anybody help me?
|
|
|
|
|
Hi i have developed an Asp.Net Website i use Session Variable to track the user it work properly in my local system i have installed my website on local server and test it but the session not work properly in the local server when i access it from my machine the session varialble losss its datas how to prevent it please help me
|
|
|
|
|
have you try to set things right in global asax ?
maybe you set your session variable to default in application_start ?
|
|
|
|
|
In my ASp.net Website Application there is no Global.aspx file pls help me how to set global.aspx file r how to keep session i have give value to session variable in login page
|
|
|
|
|
simple...
just add new item
and choose global.asax
and you can set the (not so..) whole new world at it...
hope it help
|
|
|
|
|
sir i changed my system firewall settings now i can acccess website installed on my system from any where on my LAN except from LOcal Server why this happen have to change any firewall settings on local server help me
|
|
|
|
|
wow..
that's fast.. hehehe :p
ok. maybe u should setting your proxy, if you have any. so you can access your own localhost.
ooorrrrr... maybe you should setting your browser.
if ie = internet options -> connections -> lan settings -> bypass proxy server for local address
if firefox = ....well, i believe you can do it...
hope can help
|
|
|
|
|
session variable will be reseted , once you close the browser window,
if you want to keep the values until reset the server,
use Application variables or cache variables.
also - if the browser disabled the cookies, session variables will reseted every postback of the page.
regards
Elayaraja.S
|
|
|
|
|
i did't close the browser window i work on the same browser without logout but the session variable can't be accesssble why this happen pls help me
|
|
|
|
|
Hi all
iam printing a grid view by using the following java script. I want to use paging however this JS is only printing the first page. Any ideas on how can print all and use paging.
<script type="text/javascript"><br />
function PrintReport()<br />
{<br />
var m = document.getElementById('menu');<br />
m.style.display='none';<br />
window.print();<br />
m.style.display='block'; <br />
}<br />
</script>
|
|
|
|