|
can u explain me which character shud u want to entered?
the following code help u for
<br />
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" <br />
ControlToValidate="TextBox1"<br />
ValidationExpression="[1-9]{minvalue int,maxvalue int}"<br />
<br />
ErrorMessage="The zip code must be 5 numeric digits!"<br />
runat="server" /><br />
<br />
e.g maxvalue=5 minvalue=1 [1-9]{1,5}
e.g maxvalue=--- minvalue=5 [1-9]{5,}
e.g excact 4 character long value in textBox [1-9]{4}
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
if u want to use jscript thn i'll try to catch to ur problem and i'll send u . give me ur rply
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hi
Thanks for kind help.Ya sure send me javascript for validation.
Thanks
monika
|
|
|
|
|
hi monika i send u javascript to enter only numric values
<br />
<head><br />
<script type="text/javascript"><br />
function KeyCheck(myField, e)<br />
{<br />
var key;<br />
<br />
if (window.event)<br />
key = window.event.keyCode;<br />
else if(e)<br />
key = e.which;<br />
else <br />
return true;<br />
<br />
if (((key > 47) && (key < 58)) || (key == 8))<br />
return true;<br />
else <br />
return false;<br />
}<br />
</script><br />
</head><br />
<body> <br />
<INPUT onkeypress="return KeyCheck(this, event);" id="txtTest" type="text"><br />
<br />
</body>
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
I recently converted one of my web apps over to vs2005 (i did this manually as it felt safer and isnt too large )
While im very happy with vs2005 i couldnt help notice one oddity...
i put all my classes, including my 'basepage' (a page inherited by all other pages with useful functions in it) in the app_code folder.
My basepage references some controls in the project (these live in the 'lib' folder).
I cannot seem to access the control types in code from the basepage
This is clearly something ms have done on purpose, and while i understand the model and logic behind putting your code in the app_code folder i cant seem to find anything to explain why this might be.
p.s im aware that i can put the codebehind for my controls in the app_code folder, but that doesnt really explain what im asking.
Anyone know?
---Guy H ( ---
|
|
|
|
|
There is not anything mystical about the App_Code folder. It's just a good place to put code that is not pages.
Code in the folder is not isolated in any way from code outside the folder, so if you have trouble accessing classes it's because you don't use the correct namespace.
---
b { font-weight: normal; }
|
|
|
|
|
but if they are both created within the same web project and i havent added any extra namespaces they should both be in the same namespace right?
this was my 1st thought and i searched the object browser etc.. nothing!
---Guy H ( ---
|
|
|
|
|
Basically, if you want to have code to be compiled, you have to put it in app_code folder. exceptions are only pages (.aspx) and controls (.ascx) with their code behind (AFAIK). You can access code in app_folder from outside of this folder (page can call this code), but you can not access code outside of app_folder from inside (your library cannot access page). If you need to work with any of your pages / controls from app_folder, you have to create interface for it, put this interface into app_folder and your page / control have to implement this interface. Then you can call methods or access properties of your control / page using this interface, which is known to your code (it is in app_code folder).
Pilo
|
|
|
|
|
Hello All I am very New For Asp.net . I want to Inline Programming In asp.net with C#.....If U have Any Idea Or Tutorial Based On Inline programming ...So Plzzz Sent me That Url..
Thanks In Advance
Life is not easy ,let's make it.
|
|
|
|
|
www.asp.net and www.codeproject.com
---Guy H ( ---
|
|
|
|
|
i use Content Pages inheriting master page.
But i cant use defaultfocus="txtName"
Because there is no Form, how could i set focus to a control?
|
|
|
|
|
use javascript
Best Regards
3ala2
|
|
|
|
|
Hi,
i have an asp.net web application. A user can start a process which takes a
long time, about 1.5 hour.
but after about an hour, internet explorer display's the page:
"The page cannot be displayed".
If i look at the processlist, the aspnet_wp.exe is still running fine. And
the last action before ending is write a small text file. It does it
perfectly. So i conclude it's no server side problem.
Does anyone know why internet expolorer displays that message. And how to
prevent it from comming up?
imran
|
|
|
|
|
After an hour? That's odd, I would expect it to time out after a few minutes.
A web page is not supposed to take hours to create, and keeping the connection alive for that long time is a waste of resources.
Start the job in a background thread, and provide a page where the user can monitor the progress.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I m also facing the same problem. Kindly help me anyone, how to prevent Page can not be displayed message in IE.
|
|
|
|
|
can anybody tell me how can i edit records in Gridview. I am using asp.net 2.0
|
|
|
|
|
|
Hi there
I am in urgent need to know how to disable page level caching in a user control.
Please provide asp.net 2.0 specific solution.
|
|
|
|
|
these code may help u
to remove page from cache. these code r write into Page Load event
if (Session["username"] == null)<br />
{<br />
Response.Redirect("login.aspx");<br />
}<br />
<br />
<br />
Response.Buffer = true;<br />
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);<br />
Response.Expires = -1500;<br />
Response.CacheControl = "no-cache";
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Thanx Deepak
But I was looking for page directive to disable caching.
|
|
|
|
|
Page.Response.Cache.SetCacheability(HttpCacheability.NoCache) ?
you should explain what behaviour you would like to achieve...
Pilo
|
|
|
|
|
|
I implemented ASP.NET 2.0 Client callback script (ICallbackEventHandler) to
get the result back from server without postback the page. Problem is when
session expires or authentication times out.
If I click on any button which performs postback on page, everything is fine
and I'm getting forwarded to login page, but when I click on the button which
implemented client callback script on and then a postback button, the error
happens.
Everybody can help me.
Thanks.
-- modified at 1:37 Thursday 16th November, 2006
|
|
|
|
|
Hi all,
Please anybody tell me the connectionstring for mysql.
Thanks & Regards
Mishra
|
|
|
|
|
This Page[^] will hep you out
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|