|
|
You can rather use a regular expression validator.
This expression may be a good point to start.
^\d{6,50}$
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
ok.. let me try that bhardwaj.
|
|
|
|
|
I've got web application that calls to unmanaged DLL. For simplicity there is a function that just returns immediatly.
From VS it runs normally both in debug and release builds.
After web application linked in IIS7.0 unmanaged debug DLL version still runs from web project, but when the release build unmanaged DLL is put, it hangs after web application invokes unmanaged function, as I traced the cs code, and never returns.
What might be the problem?
Чесноков
|
|
|
|
|
im using DragPanelExtender to dragdrop a panel. i want to get position of panel on mouseup. i have the code that is working fine and is below:
<script type="text/javascript" language="javascript">
function pageLoad()
{
$addHandler($find('DragPanelExtender2').get_element(), "dragend", onMouseUp);
}
function onMouseUp()
{
var el = $find('DragPanelBID').get_element();
var dragLocation = $common.getLocation(el);
alert(dragLocation.x + '-------------' + dragLocation.y);
}
</script>
my problem is that i want this mouseup event to be added to dynamically added DragPanelExtender, i have no idea how to do it please help.
|
|
|
|
|
My browser is not allowing java script..i created htm page wit java script..1st ma browser show'n activex block popup..n whn im allow'n it..still not display'n script part..tried on both IE7 and firefox 3.5..plz helpme out..
|
|
|
|
|
are you running from web server?
If you are using file:// protocol, means directly opening a file from hard disk, you will be prompted to have script block issue.
This will not happen if you publish your file. If still javascript is not running, check the path of the script file properly. always use relative path to your server.
Also place a <noscript> tag to check if javascript is disabled.
Hope this helps you.
|
|
|
|
|
Well im nt using asp.net..simply txt..file jes writing short script in html tags..n saving as htm..bt it shud run script..so no means of convrt'n it into http or filesystem coz im jus using on txt file..s tyr anyway tht i cn run script on ma browser..
|
|
|
|
|
I suspect its because half the keys are missing on your keyboard
greendragons wrote: bt it shud
bUt it shOuLd
greendragons wrote: s tyr anyway tht i cn
Is THERE anyway thAt I cAn
there is no extra charge for making your question readable, you may even get a sensible answer if you do.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
If u cn solve my problm thn ok else no needa point out useless things..
|
|
|
|
|
His comment is far from useless.
He is in a nice way pointing out, that you need to write
so people can read what your actually trying to tell them
without having to guess.
This will in return help us help you!
|
|
|
|
|
Ok..well what about my answer? How i run java script on my browser..tried evrything.. Turned off firewall..disabled filters popups and all but still no cigars..
|
|
|
|
|
I, and many others, find it hard enough working out what some people mean when English isn't their first language without having to try and work out what word they thought they meant. The clearer your explanation the more likely you are to get a useful answer.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
I am facing a weird issue in IE8 for the menu control of my aspx page.
I am having an dynamic menu control in my page. Issue is top menu is displaying, however the submenus under each menu is not visibile at all in IE8. Any idea why it is happening? Is there some error on IE8? Or should I do something to make it invisible?
It is visible in IE7,Firefox etc. Please help
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
|
I want to pass parameters from aspx page to RDL server report.
Using Cross posting i am able to access the parameters from the previous page and also the know which is the previous page.
Thus dynamically bind the report and pass the parameters .
But my requirement is i want to open the report page on new window.
Also know the previuos page(parameter page.)
I want to know whether querystring or session will work best for me.
if there are any other solution let me know.
thanks in advance
Tejesh
|
|
|
|
|
use
ReportParameter param1 = new ReportParameter(paramName, paramValue);
ReportViewer.ServerReport.SetParameters(param1);
|
|
|
|
|
hi Abhishek thx for replying
i want to know how do i access the parameters from the previuos page,
when i opened the report page in new window.
Which will be the optimum solution(querystring,session or something else)
|
|
|
|
|
Optimum solution is the context transfer. If you are using window.open.. the best way is doing through querystring.
|
|
|
|
|
Hi all,
<a href= "filename.xls" target="_blank" >Open Excel</a>
by using above line of code i can able to open the excel file as separate file.
But i want to open that excel file with in the same asp.net web page not separately.
|
|
|
|
|
|
You can use this to open a new window.
<a href= "yourpage.aspx" target="_blank" >Open Excel</a>
Place this in the handler to the page or just write the content to the page in code behind.
Response.ContentType = "application/vnd.ms-excel";
string sFile = Server.MapPath("MyExcel.xls");
using(FileStream fs = new FileStream(sFile, FileMode.Open, FileAccess.Read))
{
byte[] b = new byte[(int)fs.Length];
fs.Read(b, 0, (int)fs.Length);
fs.Close();
}
Response.Clear();
Response.BinaryWrite(b);
Response.End();
the file will be opened to the client.
|
|
|
|
|
hi abhishek.
The code, which you have given is opening the excel as separate file.
But i want the excel sheet as part of the web page. Or with in the web page.
|
|
|
|
|
Hi all,
I am working on Medical transcription voice file format conversion. I need a help on This voice file (.DSS, .DSS2) to WMA or WAV file format conversion. Anybody have an idea feel free to post or share with me.
Thanks in Advance.
pandu
|
|
|
|
|
Pandu438 wrote: I am working on Medical transcription voice file format conversion. I need a help on This voice file (.DSS, .DSS2) to WMA or WAV file format conversion. Anybody have an idea feel free to post or share with me.
AFAIK : It has nothing to do with ASP.NET
|
|
|
|