|
thank so much for you help. it is very close to that, do you know how is it in C# then, i can convert it. I try it the way you did, and still something missing there.
|
|
|
|
|
Hai friend..
i am doing a project based on search engine.I have ceratin number of urls and its description stored in my Database.When ienter a keyword i want to search the homepage of all these urls and check the keyword if found then the url should displayed in the front end.
My Problem is how to search the whole Page....of a particular URl..Please take into consider and reply immediately
Thank You.........
|
|
|
|
|
sumeshtvm wrote: My Problem is how to search the whole Page
"whole Page" is text yes? You don't know how to search text?
led mike
|
|
|
|
|
i know to search the text But the Problem is when i type a keyword how it will direct from the URL to its HomePage and then How the search occurs in the whole page.Is there any algorithm used here.
One Idea is to fetch the page into a temporary file into a database and then searching each file in the database.But Then also i dont know How it could be done?????
Does ASP.NET support any feauture to solve this problem..
Please Help my Friend.............
|
|
|
|
|
sumeshtvm wrote: reply immediately
Ummmm, no. With this site, people help when they can, if they elect to help.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I am developing a web page. I have FileUpload control and an Upload button. Clicking Upload button uploads the selected image
path = Server.MapPath("Pictures") + "\\" + FileUpload1.FileName;
FileUpload1.SaveAs(path);
Picture1.ImageUrl = path;
Picture1 is the Image control.
Then I try to convert it into grayscale
Bitmap image = new Bitmap(Picture1.ImageUrl);
image = GrayScale(image);
the function converts the file I have checked by saving it
//image .Save ("C:\\image11.bmp");
What I want to do is I want to display this new bitmap Image in the Image web control.
One way that I think is to save it to the server then assigning the url to the Picture1(image control) but I cannot assign this bitmap Image to the fileUpload control.
Looking forward to hear a good solution from codeproject team.
Thank You
|
|
|
|
|
I have found a solution
http://www.eggheadcafe.com/community/aspnet/6/10017423/load-image.aspx
just need to convert it into C#
Set the Picture1.ImageUrl="Imager.aspx";
// and in page load write
Bitmap image = new Bitmap(Session ["FileName"].ToString ());
image = ConvertGrayScale(image);
image.Save(Response .OutputStream ,ImageFormat.Jpeg );
I have used Session as I am displaying an image at server after editing. ConvertGrayScale is not necessary as it is my function to convert Image to grayScale.
|
|
|
|
|
Thanks in Advance.
I need the code for HTTP COMPRESSION for asp.net1.1 Version
With Regards
Senthilkumar.T
|
|
|
|
|
2 seconds on google - [^]
Bob
Ashfield Consultants Ltd
|
|
|
|
|
attalurisubbu wrote: I need the code
I need a car.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Vasudevan Deepak Kumar wrote: I need a car.
I need a girlfriend to keep me warm during the cold winter months.
|
|
|
|
|
(I have voted a 5 for that)
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
I'd recommend trying for two. Otherwise half of you gets cold...
|
|
|
|
|
Hi all,
I have developed an applciation where i have placed a log out link in the master page which redirects to a lout.aspx page where i have placed in the code behind the following code:
Session.RemoveAll()
Response.Redirect("~/Default.aspx")
I am being redirected to the login page but when i press back from the back button in IE7 iam being able to see the last page the user was logged in. How can i prevent that taking into consideration that i dont want to delete the back button in all the web pages, however i need to disable it in the login.aspx page only.
P.S. I have tried the JS
<script language="javascript">history.forward(1);</script> in the Login.aspx page.
thanks
|
|
|
|
|
just try this ....
response.setDateHeader("Expires", 0);
response.setHeader("Pragma", "no-cache");
or
<script>document.execCommand("ClearAuthenticationCache", false)</script>
modified on Monday, October 13, 2008 9:43 AM
|
|
|
|
|
There is no reliable way to stop this. You are seeing a browser cached page when you press back button. If you are sure that all session is removed and user can't proceed without valid session, why you are bothering? You should check the session existence each time page refreshes. So users won't be able to continue using secured data after logging out.
|
|
|
|
|
I am checking if the session is still alive however the page is still displayed when i press back button. But if i refresh the page it will redirect me out again.
|
|
|
|
|
samerh wrote: But if i refresh the page it will redirect me out again.
Yeah, this is enough. So no need of nasty JS to block back button.
|
|
|
|
|
ok but i am being bale to view the last page details the user was in before log out. Only when i hit refresh i am being redirected.
|
|
|
|
|
samerh wrote: Session.RemoveAll()
Always Use Session.Abandon() For Logout.
cheers,
Abhijit
|
|
|
|
|
why shouldnt you use xml scripting of page expired,session expires
or proper using of session ["value"]=null;
session.abandon();
this will help you to prevent your page after logout and also
**use this codesnippet in masterpage is usefull in security**.
bye
|
|
|
|
|
can anybody tell me how do i use this option or how does it work;
i am totaly confused in it.
i use the two pages login.aspx and home.aspx
i need to recover password by sending mail through the password recovery tool by using 'Forgot password' option..............
what's the best option for it.
using System.Net.Mail; or
Using system.web.mail;
and how does they work can you help.Or any other method you know.
please tell me.
i mean here is how could i send correct password on entering right user name to requested email address
from my site.
modified on Monday, November 3, 2008 1:57 AM
|
|
|
|
|
Alok sharma ji wrote: i am totaly confused in it.
I too confused in your question. What are you trying to do?
|
|
|
|
|
I think he just wants to know more about it thats why I gave him an article on it
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
This is a good tutorial on it:
Password Recovery
Any more probs post back
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|