|
hello frnds,
how can i use code behind variable in VBScript
it is possible ?
please give an example
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
You can put the value in a hidden field so it's readable and writable from both server (code behind) and client (VBScript) code.
If you want to just read the variable from VBScript using server tags:
msgbox "<%=variableName%>"
don't forget to make the variable protected or public.
|
|
|
|
|
hello frnds,
i have a arraylist which contain some value i want to use that arraylist on another ASPX page but i don't want to use "session" as it is cached and use system memeory.
Is there any another option that i can use.. but it should be non-chached ..
thankx..a LOT in advance
please help...
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
koolprasad2003 wrote: i don't want to use "session" as it is cached and use system memeory.
Session variables are not cached. The are just put in the Items collection of the Session object.
If you want to retain the ArrayList it will use memory, regardless if you put it in a session variable or not.
---
single minded; short sighted; long gone;
|
|
|
|
|
Means i used lot of time my session variable...it not arrise any problem?
does the session variable limit exceed ...
is it safe to use session variable and put all the values in it and transefer it to another page
thankx for u r fast reply
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
koolprasad2003 wrote: Means i used lot of time my session variable...it not arrise any problem?
Not any bigger problems than any alternative.
koolprasad2003 wrote: does the session variable limit exceed ...
They are only limited by available memory. Although there is plenty of memory, it's still a limited resource, so you should be careful not to place large objects in session variables.
koolprasad2003 wrote: is it safe to use session variable and put all the values in it and transefer it to another page
Safe from what?
---
single minded; short sighted; long gone;
|
|
|
|
|
Yes, you can use a cross page postback, if the site goes from the first page to the second. Or you can make both pages controls and put them both on the same page, so that viewstate will just work between them. Or you can put your values on the URL and pass them that way
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 )
|
|
|
|
|
How can i get the local machine's ip-address progaramatically
any method available..plz
|
|
|
|
|
Did you forget to search Codeproject[^] before posting?
Paul Marfleet
|
|
|
|
|
thatz nice..any way sry fr not searching that thankq
|
|
|
|
|
hi
i want to lock 'Save As' option at the time of running my web application. how it will be possible? so that nobody can copy my confidential documents which is i am showing at the run time.
Thanks
bye
|
|
|
|
|
I dont know exactly how, but use it as popup windows. (Window without address bar, without menu and without navigation)
It is easy to disable context with javascript.
But i dont know if it is possible to disable copy and paste with keyboard shortcuts.
|
|
|
|
|
you can restrict the copy paste option on whole form.
here's the solution
add removed="return false" to the body tag
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
You might be able to disable the Save As option in some specific browsers, but there is no standard way of doing it.
Why do you want to do that anyway? The Save As option is only one of the many ways of copying the data, so just disabling the Save As option doesn't protect your information.
The files are easily available in the browser cache. You can just copy from the browser window and paste anywhere. A print-screen copies anything that is displayed.
---
single minded; short sighted; long gone;
|
|
|
|
|
How can i register some function to run periodicly on server without having a browser open. Like Cleanup to activate every 24 hours?
|
|
|
|
|
there are several options:
1-Scheduled task..Make a simple EXE and add it to windows task schedule
2-Windows service
3-SQL Server job
This depends on the server environment, these options will not be available in most cases when using shared hosting.
|
|
|
|
|
I have created one table(in Ms-Access) called trail_user.Table contains this details(id,reg_date and email_id).In front end am taking only email_id. When some one register their new email_id that email_id has to store in database along with id(This is Id number)and reg_date(this field is date)
Lalitha
|
|
|
|
|
I recommend buying a book and reading it. Your question seems to imply that you don't have the first idea how to do this, and trying to help someone in that position with forum replies is unlikely to succeed.
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 )
|
|
|
|
|
How do i know the IP Address of my PC on the internet? How to access a particular website from one PC with diff. IP addresses?
Mogha Ritesh
Mogha Ritesh
|
|
|
|
|
Mogha Ritesh wrote: How do i know the IP Address of my PC on the internet?
You browse to a page that displays your IP address. A search for something like "ip address" would reveal plenty of pages that do this.
Mogha Ritesh wrote: How to access a particular website from one PC with diff. IP addresses?
I am not sure what you are meaning. Do you want to change your IP address or do you want to browse to a site by specifying an IP address?
---
single minded; short sighted; long gone;
|
|
|
|
|
Instead typing domain, type ip address ex:
http://89.89.89.89/MyVirtualDirectory
If you are behind Router (Witch i assume, because your are asking your Internet IP) You would have to set Forwarding rules or Virtual Server, that depends on router.
If you have dynamic ip, search for DDNS (Dynamic Domain Name Server)
|
|
|
|
|
I got the following error message while trying to run aspnet_regsql.exe from command prompt. The user I have used to run the command will be the user for aspnetstate database. I have selected a custom database option in the command prompt. My user has got rights in a particular d/b and he has the rights to create a database. I have been searching msdn and google also. I would like to know what are the exact permissions required for a sqlserver login to install session state in sql server and also to use the same.
"An error occurred during the execution of the SQL file 'InstallSqlState.sql'.
The SQL error number is 229 and the SqlException message is: The EXECUTE permission was denied on the object 'sp_delete_job', database 'msdb', schema 'dbo'.If the job does not exist, an error from msdb.dbo.sp_delete_job is expected.
SQL Server: [server]
Database: [dbname]
SQL file loaded:
InstallSqlState.sql
Commands failed:
/* Drop all tables, startup procedures, stored procedures and types. */
/* Drop the DeleteExpiredSessions_Job */
DECLARE @jobname nvarchar(200)
SET @jobname = N'[dbname]' + '_Job_DeleteExpiredSessions'
-- Delete the [local] job
-- We expected to get an error if the job doesn't exist.
PRINT 'If the job does not exist, an error from msdb.dbo.sp_delete_job is expected.'
EXECUTE msdb.dbo.sp_delete_job @job_name = @jobname
SQL Exception:
System.Data.SqlClient.SqlException: The EXECUTE permission was denied on the object 'sp_delete_job', database 'msdb', schema 'dbo'.
If the job does not exist, an error from msdb.dbo.sp_delete_job is expected.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at system.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception
, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObj
ect stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, Tds
ParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName,
Boolean async)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult res
ult, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at System.Web.Management.SqlServices.ExecuteFile(String file, String server,
String database, String dbFileName, SqlConnection connection, Boolean sessionSta
te, Boolean isInstall, SessionStateType sessionStatetype)
"
|
|
|
|
|
You should use an account that has execute permission on sp_delete_job stored procedure.
If you connect using a sysadmin account to run the script this can make things easy.
|
|
|
|
|
Hi all
Is it possible that customize membership controls(like login,create user,etc.) that we can insert in the cookie what we want or encrypt cookie data in other forms or change insert in data base model that this controls use?
tanx
rgege
|
|
|
|
|