|
Session variables allow you to store information between post backs. The web is stateless, meaning that it doesnt know what it sent you what you are doing or anything between server hits, so to maintain this you can use session variables/cookies/etc...
The session variables can be set simply by coding Session("VariableName") = Value and then can be retrieved by coding Value = Session("VariableName") .
The session is maintained by a SessionID that is created at the first request and is stored as a session cookie in the user's browser in most cases.
Cleako
|
|
|
|
|
As cleako has described session mentain user information. it can be stored at client side or server side both. At client side, it is stored in cookies and if cookies are disabled then automatically it goes to server. You can keep your session data in database also which is most effective. I hope, this information will help you a bit.
|
|
|
|
|
Hi Guys
I am sorry for posting this query here. But no wonder, i don;t find any other site as we have codeproject.com. I love you guys for wonderful work.
I have one small query but it is very critical for me. I need to read text from images(gif, bmp, tif etc..). No coding is required, i am looking for some tool where i can open the image and then copy the text in clipboard.
That's it. I tried couple of free software e.g. snagit, mspaint.net, nitro etc... But ....SO please help me and suggest some good free tools to done this job. Otherwise, i need to type all this and very soon i will be called data entry operator..........please please help me
Amit
|
|
|
|
|
Images doesn't contain text, it contains the graphic representation of characters. Therefore there is no easy way to just copy the text. What you need is software that can recognise the characters and make text from them.
This is called optical character recognition, so what you should look for is OCR software.
---
single minded; short sighted; long gone;
|
|
|
|
|
yes, i understand this. i triedcouple of ocr and they convert image text to ascii...do u know any software?
amit
|
|
|
|
|
I don't know if any OCR libraries exist in .NET, google is your best bet here. And don't expect it to work 100% of the time, no OCR does.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
you have to use optical character recognition softwares.
Like simpleOCR,Lead tools.
But most of the tools are not free for commercial purpose.
Sathesh Pandian
|
|
|
|
|
Hi,
I have three drop down lists in page1. DDL2 is values are dependant on DDL1, DDL3 values are dependant on DDL2. Once I select DDL values I have submit button that takes the values from these DDL values and redirects to appropriate page based on case statements. Now the issue is the new loaded page is opening with DDL values default to their first value rather than retaining the vales from prevous page values. Can someone help on retaining the values of the DDL between response.redirects.
Appreciate all the help
Raj D
Raj D
|
|
|
|
|
1) use server transfer and properties.
2) if using framework 2.0, u can choose posturl property of submit page.
3) session, hidden var are other ways to maintain state.
I hope this will help you.
Thx
Amit
|
|
|
|
|
There are many ways to do it. I think you should pass the DDL values through querystring and trap in the next page otherwise session and hidden fields are also useful.
|
|
|
|
|
Hello, I am fairly new to asp.net development....I am wondering how to best
do the following and any ideas are very welcome.
I want all users to login to a screen and then based on their
credentials show another screen with a list or menu of web sites that
they are eligible to enter...each site is independent from the other
once it is started. So the user would click on a menu item and it
would open a web site. The menu system must still be active in case
the user wants to start another web site (still having the first site
open). Each site can open in their own browser window but will be
completely independent from the other open web sites.
I hope I am being clear on what I am describing...
I am using asp.net 1.1 and there would be initially about 6 web site
choices (which might increase in the future)...
I appreciate any input you may have on how to go about designing/
coding this solution...
Thanks,
Scott Daniel
|
|
|
|
|
Are you also developing/running the other websites? One problem is the user will also need to authenticate with those sites, otherwise they could skip the first login and see the website anyway. A central account/login service would be one way (a bit like google)
|
|
|
|
|
Hi Badgrs,
Yes I am doing the developing/running of the other web sites...can you give me a 20,000 foot overview of how to structure things? Some of these sites are already written and I would love to be able to 'plug' them into this 'front end'...
Thanks,
Scott
|
|
|
|
|
Hi EveryBody
Im doing some online report with VS 2005-->>ASP.net-->>report.rdlc . I got the database on my computer where I am getting the specific report. Now I have changed the ConnectionString and I have put (SQL Server Databsae path (where the main database is stored in the web server)). Right now Im not getting any report and any error.
One the otherhand I have modified .Net Framework and I have .Net Framework on My Server
Question?:
1. Do I need to install reportViewer.exe in server?
or what else do u suggest?
Thanks
Sarfarj Ahmed
|
|
|
|
|
Sounds like you should be using the computer name and the SQL-Server instance rather than a path to the SQL-Server data files. Can you show us the connection string that you are using.
Also, if you are using SQL-Server 2005 then you will need to use the Surface Area Config tool to allow connections from remote machines. By default SQL-Server 2005 no-longer allows connections from other PCs.
Hope that helps.
Andy
|
|
|
|
|
hi
when i create webpages with asp.net and upload them , speed load pages is less than php pages.
how can i increment the speed of my pages
|
|
|
|
|
Write better code, use faster database queries, use a fast database, there are any number of reasons. One big one could be you have your application set to debug in the web.config, try getting rid of that and see if it helps.
For a simple page I would expect PHP to be faster than ASP.NET.
|
|
|
|
|
Php is faster, no doubt but once the asp.net page is loaded then for next queries, it performs at a good speed. Check your database queries, it should be as less as can. second use stored procedure rather than sending queries directly to database. If you are not using database then have to check what contents you are puting on your site......
|
|
|
|
|
Hi All.
I have already post this problem but no one give me a useful answer please read this and answer me.
I have a search technique in my page. Thre is a problem in this. I have a dropdown list from which I select Search by First Name or Search By Last Name. I set query with the help of selectedIndex of this dropdown list. i-e
if drpSearch.SelectedIndex = 1 then
query = "Select * from customrs where fname = '" & txtSerch & "'"
end if
if drpSearch.SelectedIndex = 1 then
query = "Select * from customrs where lname = '" & txtSerch & "'"
end if
It works fine on Internet Explorer but does not work on Fire forx. The query does not get value. What can b the reason. Can any one help me.
Thanks in Advance.
|
|
|
|
|
Hi
i have tried that it works fine try to debug it and see what are the values coming in the varaibles
Have you done any javascirpt script validations or used javascript for any perpose
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Yes I have Used Java Script for Validation. And Java Script works fine. On Both FF and IE
|
|
|
|
|
Hello Sandeep Please Read my above post.
|
|
|
|
|
Is it possibly something to do with the fact that you have this:
if drpSearch.SelectedIndex = 1 then
twice?
|
|
|
|
|
Actually i mistakly write that wrong that is actually
if drpsearch.selectedindex = 1 then
query = "........."
end if
if drpsearch.selectedindex = then
query = "......."
end if
|
|
|
|
|
sory
if drpsearch.selectedindex = 1 then
do this..........
end if
if drpsearch.selectedindex = 2 then
do this.......
end if
|
|
|
|