|
I want validation expression to test special character at starting and ending and also no same special character should be continously two times .
like ##.
I tried a lot but could not suceed. I am getting no error on underscore which is also a special character.
can someone help me out ?
thanks
|
|
|
|
|
Can you show me the expression what you tried ? Have you used back referencing ? I wrote this expression,
([^a-z0-9]+)\1
1- This will match ##,@@...
2- This won't match ###, but will match ####
This will match all special characters that comes together. You can extend this by adding starting and ending characters you want to match.
|
|
|
|
|
i finished up with
^[a-zA-Z0-9]+(\w|(\b[\W]{1}))+[a-zA-Z0-9]$
thanks for the support which i got from my friends
|
|
|
|
|
sure !!
since i finished by your help .
^[a-zA-Z0-9]+(\w|(\b[\W]{1}))+[a-zA-Z0-9]$
but now the thing after vigorous testing i found that it wont work for _
for others it is working .
can you try it out for _.
thanks and regards.
|
|
|
|
|
How to add reference to mpr.lib in ASP.net application
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
What on earth is mpr.lib ? AFAIK, you can't add a lib file to a .NET app. ASP.NET has nothing to do with it, the .NET part is your problem.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: What on earth is mpr.lib ?
Yeah. I googled it and found that mpr.lib is using in this control.
this article wrote: Add the mpr.lib library in, to be linked into your application. To do this select 'Project->Settings' to open the project settings dialog. Select the 'Link' tab and from the drop down box select the 'General' category. In the 'Object/Link modules' edit box, type in mpr.lib
but not sure whether this is the one that he is using..
I wonder why VS doesn't allow us to add *.lib?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Because a .lib file is the compiled code to go with headers used to include a C++ library.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi friends
I need regular Expression string for single char '-' or values like 12.00 , -12.00 , 124.85 , -154.89 , -5.14 , 5.25 , 5247.25.......
User can add either single char - or values.
Thanks for advance
Pathan
---------------------------------------------------
|
|
|
|
|
Try
\A-\d*\.\d{2}\b|\b\A\d*\.\d{2}$
This will match all in the this pattern -10.00 and 10.00
|
|
|
|
|
Hi navneeth
I have tried all string 12.00 , -12.00 and - but didnt matched.
Please check out
Pathan
---------------------------------------------------
|
|
|
|
|
It is matching 12.00 and -12.00. Do you need any more combinations to be matched ? You are using this in .NET right ?
|
|
|
|
|
Ya. I am working in .net 2.0.
It should be also accept only a single char '-'.
Pathan
---------------------------------------------------
|
|
|
|
|
Imran Khan Pathan wrote: It should be also accept only a single char '-'.
\A-\d*\.\d{2}\b|\b\A\d*\.\d{2}$|\A-{1}$
|
|
|
|
|
hi friend
i am using remoting on same system then its work properly . if i using remoting server on different system and client on different system then error generates:-
A remote side security requirement was not fulfilled during authentication. Try increasing the ProtectionLevel and/or ImpersonationLevel.
any body tell me what problem here and how to remove this problem...
help me
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
Are you using impersonation in the application that calls the remoting object?
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
<identity impersonate="true ">
i am using this but there is no any effect on error
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
If you are impersonating the ASPNET account with some other account, this only works on the local machine. As soon as you leave the machine to access another computer on the network, the user is changed back to ASPNET for security reasons.
I have had this kind of problem when trying to access a COM on another machine, I couldn't make impersonation work over the network, so I used remoting instead and everything worked fine. Maybe you need to set some permissions on the remote computer. Could it be that the remote PC has a firewall enabled? In this case, the remoting port you are using might be blocked.
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Hello Friends ...
i migrated ASP.NET 1.1 application to 2.0 . i completed all the things after that i check with browser compatibility . and i changed HTML 4.0 v to HTML 4.01 v . in this .IE 7 working properly in MOZILA "OVERFLOW" CSS Property is not supporting and also its shows error on bellow line in CSS file
top:expression(this.offsetParent.scrollTop-0);
this is the overflow line ..
Please help for this ...
Thank u
Nanthakumar
|
|
|
|
|
nandhububbly wrote: top:expression(this.offsetParent.scrollTop-0);
expression doesn't support in non-IE browsers. So, you may need to handle this by using Javascript.
There are some CSS tricks that can be used instead of "expression." (eg: You can use max-width instead of width:expression(*** + "px") but it's too large to cover. maybe. you can tell us more details about why you use this and what it does in your application.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hello sir ... thank u soo much
i followed ur way but its not working actual process this project is reg Hospital management system. in one .aspx i need to add patient name and details and that same page i search exit patient option is there if i click search button that another page will come in that exit patient details is there so if i selected that one patient . that patient details comes previous .aspx page here blow that page one gridview is there that patient details comes under that page
so in that grid header contains patient id, name , ph no .. below that header name and id comes. if i scroll that datagrid that patient details overflow to that grid header this is actual function , this is working in IE but in Mozilla that datagrid header also overflow .
.CSS file
.gridFixedHeader
{
background-color:white;
font-size: 9pt;
color: #FFFFFF;
position: relative;
font-family: Airal,sans-serif;
border:#0066CC;
max-width :100px;
top:expression(this.offsetParent.scrollTop-0);// this line shows top doesn't have this property)
z-index: 1;
}
.aspx datagrid code
plz help for this
Thank u
|
|
|
|
|
Hello sir ... thank u soo much
i followed ur way but its not working actual process this project is reg Hospital management system. in one .aspx i need to add patient name and details and that same page i search exit patient option is there if i click search button that another page will come in that exit patient details is there so if i selected that one patient . that patient details comes previous .aspx page here blow that page one gridview is there that patient details comes under that page
so in that grid header contains patient id, name , ph no .. below that header name and id comes. if i scroll that datagrid that patient details overflow to that grid header this is actual function , this is working in IE but in Mozilla that datagrid header also overflow .
.CSS file
.gridFixedHeader
{
background-color:white;
font-size: 9pt;
color: #FFFFFF;
position: relative;
font-family: Airal,sans-serif;
border:#0066CC;
max-width :100px;
top:expression(this.offsetParent.scrollTop-0);// this line shows top doesn't have this property)
z-index: 1;
}
.aspx datagrid code
|
|
|
|
|
Hello sir ... thank u soo much
i followed ur way but its not working actual process this project is reg Hospital management system. in one .aspx i need to add patient name and details and that same page i search exit patient option is there if i click search button that another page will come in that exit patient details is there so if i selected that one patient . that patient details comes previous .aspx page here blow that page one gridview is there that patient details comes under that page
so in that grid header contains patient id, name , ph no .. below that header name and id comes. if i scroll that datagrid that patient details overflow to that grid header this is actual function , this is working in IE but in Mozilla that datagrid header also overflow .
.CSS file
.gridFixedHeader
{
background-color:white;
font-size: 9pt;
color: #FFFFFF;
position: relative;
font-family: Airal,sans-serif;
border:#0066CC;
max-width :100px;
top:expression(this.offsetParent.scrollTop-0);// this line shows top doesn't have this property)
z-index: 1;
}
.aspx datagrid code
DIV id="div-datagrid" style="overflow :auto ;Width :100%;HEIGHT: 100%"
|
|
|
|
|
Hi, I would like to have 2 questions on data reader object answered. Suppose I want to iterate through the data reader results using a while loop like the following:
While objDataReader.Read()<br />
'do something<br />
str = objDataReader("Supplier_Name")<br />
End While<br />
If my query which precedes the above while loop is (Select Supplier_Name from Suppliers where ShippingFee < $50.0).
1)Will the results include all the names within the Supplier_Name column or will they be just the names of suppliers whose ShippingFee is less than $50.0?
2)Will I need to tell it to read the next result until the EOF?
Thank you in advance for your help.
|
|
|
|
|
ASPnoob wrote: 1)Will the results include all the names within the Supplier_Name column or will they be just the names of suppliers whose ShippingFee is less than $50.0?
they will be just the names of suppliers whose ShippingFee is less than $50.0.
ASPnoob wrote: 2)Will I need to tell it to read the next result until the EOF?
No.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|