|
fr33l0ad3r wrote: Do I have to put it in a class in the code behind page?
Ya I think so.
|
|
|
|
|
Hi,
This post is probably supposed to be in the SQL forum, but it needs to be in the ASP.NET forum as well.
I am using full text searching. When I type in text1 in my title textbox, then my CONTAINSTABLE looks like:
CONTAINSTABLE(tblFullTextSearch, [fldTitle], ' "text1" ')
When I type in text1 text2 then my CONTAINSTABLE looks like:
CONTAINSTABLE(tblFullTextSearch, [fldTitle], ' "text1" AND "text2" ')
But when I type in "text1 text2" then I NEED it to look like:
CONTAINSTABLE(tblFullTextSearch, [fldTitle], ' "text1 text2" ')
I'm not sure how to do this, please can some one help me?
Regards
ma se
|
|
|
|
|
I tested the default functionality of 'Remember Me Next Time' option in login control.
Once if u logged into the app by checking 'Remember Me Next Time' Checkbox, Next time It is working in such a way that it bypasses the authentication. It means when u try to browse same app it will not prompt for user credentials and directly redirecting the user to specific page.
But i want this functionality in such a way that it should show the login page with with login control filled with username and password
can anybody plz let me the solution.
i wrote the code like this
In LoggedIn Event:
CheckBox rm = (CheckBox)Login1.FindControl("RememberMe");
if (rm.Checked)
{
HttpCookie RemMe = new HttpCookie("RemMe");
Response.Cookies.Remove("RemMe");
Response.Cookies.Add(RemMe);
RemMe.Values.Add("UName", this.Login1.UserName.ToString());
RemMe.Values.Add("Pass", this.Login1.Password.ToString());
DateTime dtExpiry = DateTime.Now.AddDays(15);
Response.Cookies["RemMe"].Expires = dtExpiry;
}
and
In PageLoad Event
if (Request.Cookies["RemMe"] != null)
{
HttpCookie RemMe = Request.Cookies.Get("RemMe");
string UName = RemMe.Values["UName"].ToString();
string password = RemMe.Values["Pass"].ToString();
TextBox txtUname = (TextBox)Login1.FindControl("UserName");
TextBox txtPwd = (TextBox)Login1.FindControl("Password");
txtUname.Text = UName;// it is filling the username in username textbox
txtPwd.Text = password;//it is not filling the password in password textbox
}
thank u
cnu
|
|
|
|
|
hi all,
i have a html page on my production server which from where my website runs.I call my asp.net application which is on a remote server using iframe on that html page.
I created p3p policy for the website and p3p policy for the application on the remote server now when i try to validate using
http://www.w3.org/P3P/validator.html[^
then it shows the below
/w3c/p3p.xml does not specify P3P policy for http://remote_server_ip_goes_here/
can anyone tell me whats the issue here is?
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
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
|
|
|
|