|
Hi all..
How can i encrypt address bar when one page is redirect to another page?
ex:
http://www.codeproject.com/script/Forums/Edit.aspx?fid=12076&floc=/script/Forums/View.aspx
but i don't want to see this text in my address bar.
thanks
Sanjay Kunjam
------------------------------------------------------------------
"Computers are useless. They can only give answers" - Pablo Picasso
------------------------------------------------------------------
|
|
|
|
|
just set ADDRESSBAR=0
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
thanks.
but i am using asp.net.
How & Where i shuold set this value?
thanks
Sanjay Kunjam
------------------------------------------------------------------
"Computers are useless. They can only give answers" - Pablo Picasso
------------------------------------------------------------------
|
|
|
|
|
Replace your Response.Redirect("abc.aspx?var=something"); with following:
Page.RegisterStartupScript("searcherror","<script language="\"JavaScript\"" type="\"text/javascript\">window.open(\"abc.aspx?var=something\");</script>");
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Replace your Response.Redirect("abc.aspx?var=something"); with following:
Page.RegisterStartupScript("anyname","window.open(\"abc.aspx?var=something\",ADDRESSBAR=0);");
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Thanks. Anand.
Sanjay Kunjam
------------------------------------------------------------------
"Computers are useless. They can only give answers" - Pablo Picasso
------------------------------------------------------------------
|
|
|
|
|
Anytime buddy!!!
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
You can't encrypt the whole address displayed on the address bar. You can only encrypt the query string values. Look at the classes in System.Security.Cryptography[^] namespace. BTW, if the information passing is sensitive and secure, why you are passing across URL ?
|
|
|
|
|
Thanks navneeth.
i have got the sample code for Query string encryption in ASP.NET
http://www.codeproject.com/KB/web-security/QueryStringEncryptionNET.aspx[^]
Sanjay Kunjam
------------------------------------------------------------------
"Computers are useless. They can only give answers" - Pablo Picasso
------------------------------------------------------------------
|
|
|
|
|
Well, what is the reason for encrypting? First you can only encrypt query string.
What I have done is, instead of encrypting, I would hold all I need in session variable and persist that into a database, and then pass in my query string something like
www.codeproject.com?sid=GUID
The beauty of this is, one there is no encryption needed, second the user can not guess or generate random GUID and third the implementation can easily be changed with no change with the interface.
think about it.
Yusuf
|
|
|
|
|
Hi,
Actually i was thinking about that. but this is my second level of searching details.
firstly i have more than 50,000 records and all are unique.
In first query i get some details from user and display then into datagrid, they may be 1,2 or more than 5.
after adding hypeylink button in last column i have display complete details of that row item in another page.
that was bit complecated for me. so i have chosen this.
but thanks buddy.
I am now using with encrypting querystring.
Sanjay Kunjam
------------------------------------------------------------------
"Computers are useless. They can only give answers" - Pablo Picasso
------------------------------------------------------------------
|
|
|
|
|
If I have a VB.NET class (utilitised by an ASP.NET based website) which has shared variables, properties etc, what is the scope of the variables?
What I mean, is the value of the variable retained and visible only within the user session or over the application has a whole?
Is my question clear?
Thanks
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
I think a session is shared throughout the app in the same browser
|
|
|
|
|
I'm not deep in Visual Basic but as much I can imagine, maximum scope will be only within that class..
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
FYI: If I was writing a VB.NET Windows Forms project and had a class containing Shared variables for example
Public Class Common
Public Shared myNumber As Int32
End Class
I could set the value in one class as follows
Public Class PartOne
Public Sub New()
Common.myNumber = 100
End Sub
End Class
and later retrieve the value in another class as follows
Public Class PartTwo
Public Sub New()
Messagebox.Show(Common.myNumber)
End Sub
End Class
A messagebox will be displayed showing the value of 100
The scope of the shared value is the session on the PC
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
Anand Desai wrote: only within that class..
NO. It will be shared to all threads in the current application domain. When application domain unloads, it's value will be lost.
|
|
|
|
|
shared in VB is static in C#, right ? It will have a lifetime till the application domain recycles. Which means multiple users will have the same value.
|
|
|
|
|
N a v a n e e t h wrote: shared in VB is static in C#, right ?
Yes that is correct; I could think of the C# equivlent.
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
Hi
I am using Microsoft Index Searching to search my website.
The problem is that when someone searches for a phrase which is say 3 words long it looks for the 3 individual words rather then the phrase.
How do I search for a phrase?
thanks
|
|
|
|
|
Try enclosing the search phrase into quotation marks e.g.
If the user enters This is my search then you will need to reformat the string to "This is my search"
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
I currently put the search criteria in:
'" + searchText + "'
|
|
|
|
|
hi to all,
this is rashmi, from mumbai asp.net developer ..
we are developing website name: www.discareuropa.com this has to develop in 2 language English & Español
we have converted english to Español..through google translator and html pages are working fine..
Problem:-
if we use server side control..then we are getting problem
1st Translator language from English to Español, you will notice every thing change to Español....then put user name: admin password: admin (left side)
and page will redirected to lighterBrand.aspx ..and page is auto refreshing and converting into Espanol, (as we want) ..but auto refreshing it is not stoping, ..so kindly help me how can i stop this...
thanks/rashmi
|
|
|
|
|
Check your POSTBACK events
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
We are exporting some data to excel and we have installed Excel 2007 in our Development/Staging/Production(Web Farm) environments. All the environments are running in Win 2003 Server,IIS 6. We are receiving the following error while initializing excel object in production.
Application:
System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType) at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(Type objectType) at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(Type serverType) at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj)
Event Log:
The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID
{00024500-0000-0000-C000-000000000046}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.
We have given the permissions for Network Service in DCOMCNFG for Excel Application. The error is coming only in production and not in any other environments.
I searched for solutions and all are pointing to giving Activation Permissions to Network Service(The application pool is running under this identity only) which has been done.
I could not figure out any other reasons that may be causing this problem.
Please help
K.P.Kannan
|
|
|
|
|
Hi ,
I am having email compose interface in web application
In that i am having Spell Check button in web application
if i click that button it has to check all the words, or spelling in web application
In that i want to use the spell checking .like in Gmail Compose
Spell Checking
What things i need . how to get the dictionary .
is there any free resources to use from google or from any site in web application
Thanks .
|
|
|
|