|
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" EnableViewState="false"%> here i have disabled the view state. i have textbox too.<asp:textbox id="TextBox1" runat="server" enableviewstate="false"> here is viewstate disabled.now the situation is when i type some text in textbox and then click the button it redirects me to another page then i click the back button i still get the text in the textbox.y this is happening so?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
When pressing the back button in the browser the page is not reloaded but comes from a version which is essenitally cached in the browser which is why the data is still there.
|
|
|
|
|
so how can i disable the viewstate , i mean how to implement the viewstate in my program.i have 60 textboxes in the fom, i manually can't clear the textboxes at runtime.is there any property that hides the data or i need to set the textbox.text=""
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
You cant do anything when the back button is pressed since no server-side code will be executed. You can expire the page though which will ensure that the page is re-loaded from code when the back button is pressed
Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")
|
|
|
|
|
thanks SHatchard, can't i do these things with the help of Enableviewstate.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Sonia Gupta wrote: can't i do these things with the help of Enableviewstate.
ViewStates are not used for just clearing the values. It is a mechanism used by ASP.NET to persist data on postback. If you disable viewstate for a control/page level, you won't be able to get the data entered in the textbox when page posts back.
|
|
|
|
|
U can clear all textboxes using find control.
Put all textbox in table and find out control and if control is textbox then clear it. So simple
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
can we save and retrieve the value from appsetting in encrypted form.
-- modified at 3:45 Friday 10th August, 2007
-- modified at 3:53 Friday 10th August, 2007
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
Piyush Vardhan Singh wrote: retrieve the value from appsetting in encrypted form.
YES. Make use of .NET cryptographic libraries
|
|
|
|
|
hi friends
I have serch option and datagrid in my page.
I have search options in top of the page and datagrid in bottom of the page.
if i give the value in search options ,the values will get from database and
display in datagrid
now i need the databind in datagrid without page refreshing
how can i achive this using AJAX with asp.net 2.0 version
if u have any code plz send me
regards
saravanan
|
|
|
|
|
|
yes
i dont know the ajax concept.
somebody told write code
somebody told using ajax control
i really confused plz help me
I use asp.net 2.0 version
i have one more doubt:
Is there any differnce between website and ajax enabled website for functionality wise.
regards
saravanan
regards
saravanan
|
|
|
|
|
18-week "Free" AJAX Programming (with Passion!) Online Course[^] this is online training for Ajax course. (but it's especially for Java developer. ) But i attended this course in first batch even I'm C# developer. I found it useful.
I'd like to suggest you to read the following section from this course.
"# Ajax Basics & Development Tools"
# JavaScript Basics and DOM APIs"
# Ajax Application Examples"
Or. buy a book...
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.
|
|
|
|
|
|
Hi guys
I want to encrypt the query string appearing in the URL of a web page, how to do this
for eg
I have a Hyperlink column in GridView ,, when I click that column, I pass two parameters , these parameters should not be displayed in the URL ,,
It should be in encrypted form with some other numbers …
Any idea how to perform this
regards
winnie
|
|
|
|
|
codelinks wrote: I want to encrypt the query string appearing in the URL of a web page, how to do this
You can use cryptographic libraries provided with .NET.
codelinks wrote: I have a Hyperlink column in GridView ,, when I click that column, I pass two parameters , these parameters should not be displayed in the URL ,,
Gridview don't have predefined methods that encrypts URL. you need to find the data on data bound event and encrypt using cryptographic libraries.
|
|
|
|
|
Hi
can any one tell me how to add controls at runtime.
I have a button on clicking it I have to add N no of textbox to enter the values.
thanks in advance.
|
|
|
|
|
Put place holder on page and dynamicaly add text box in place holder and get all controls from place holder through for each loop.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Hi,
I have created the build for my web application using Apache ANT. I used IsCmdBld.exe for making the build.
But when i browse the webpage from IIS, then i get following error on page:
"The file /ABC/Default.aspx has not been pre-compiled, and cannot be requested."
I have compiled the application using NANT and used aspnet_compiler for doing the same.
Why this error comes? How to solve it? Can anyone please guide me?
Thanks,
Deepa
|
|
|
|
|
hi
all
iam creating a application in asp.net. from this application i want to create dynamically one more application. can any please tell me how can i create a application dynamically using asp.net
its very urgent
pls tell me is it possible in asp.net or not.
thnx
asra.
|
|
|
|
|
asrabanu wrote: i want to create dynamically one more application.
What do you mean ? Creating pages dynamically ?
|
|
|
|
|
hi
thnx for ur reply.
i have a web application where in i want the another web application to created dynamically.
how can i do this
its very urgent pls
|
|
|
|
|
hi
i mean iam creating a webapplciation dynamically. like we create textbox dymically like
dim t as textbox
t.text="hello"
if we want to create a webapplication dynamically , is it possible to create.
if not is there any other alternative. here we are using xmlhttpost and xmlhttpget. once i get login with one user name and in other instance login with other username the username is getting replaced by the second one which with which i have logged in .
to over this we have create a diferent application and calling this applciation from the applciation1 . then it is working fine. this we created the applicaiton so we got the ouput. so now plz tell me that can we able to create a dyanmic application instead of creating it.
hope u got my point. if not pls tell me
thanking you
asra
|
|
|
|
|
asrabanu wrote: if we want to create a webapplication dynamically , is it possible to create.
I don't think that you can create one webapplication from other.
asrabanu wrote: once i get login with one user name and in other instance login with other username the username is getting replaced by the second one which with which i have logged in .
This shows bad design. It looks like a session conflict. How you are maintaining sessions ? You need to maintain sessions for each user. When each user logs in create a session for that user. Store logged user name in session variable.
|
|
|
|
|
I am using CollapsibelPanelExtender in all the pages.When a user either collapse/expand in any of the page need to be retained in all other pages moving forward.
I used a session variable to set the value, but its not working.
Any help?
Thanks
ravi chandra
|
|
|
|