|
I've written a page that allows a user to look up a page of info from a DB. Nothing too ground breaking there.
Now i want to allow the user to email a URL including a querystring specifying which page he was looking at.
The querystring contains a massive __ViewState parameter which I can't get rid of.
I've set enableviewstate and enableSession state to false in the Page tag and I've set the enableviewstate attribute to false in all the controls i could find that had it set to true but I still haven't got rid of it.
My application is going to be entirely stateless so i'm happy to just pass an occassional piece of data from one page to another.
Does anyone know how to turn off viewstateentirely? Is there a config setting?
Thanks
Russell
|
|
|
|
|
I am pretty sure the only time viewstate ends up in the query string is when you go cookieless in your webconfig. So if you change your site to allow cookies then the viewstate should get out of your query string.
Note even when you turn off viewstate, there is still some viewstate info in the page.
Anyway, that is my best guess.
Ben
|
|
|
|
|
try to use the page directive EnableViewState="false" . It should disable the viewstate for the entire page!
Just Relax And Keep It Simple.
|
|
|
|
|
I,also, assumed that would turn it off for everything on the page but it didn't seem to.
Russell
|
|
|
|
|
In my Project Employee Id is in the form ABC123... I have to increment one by one while registering....Send Code
Thanks in Advance
|
|
|
|
|
Kasi Viswanathan wrote: Send Code
You must be joking.
If the ID is not purely numeric, you need to parse out the numeric portion, increment it, and put it back.
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 )
|
|
|
|
|
Or use Base36 calculation and just add 1 unless the first three chars require to be 'ABC'.
Anyway....
Please vote my message! Click on one of the numbers beside ' Rate this message'.
.: I love it when a plan comes together :.
http://www.zonderpunt.nl
|
|
|
|
|
Tanx for ur suggession...
|
|
|
|
|
But this is not a joke...Tanx for ur Suggession.
|
|
|
|
|
I looked at some of your previous posts and you keep demanding we send you the code. This site is for people who want to learn.
__________________________
Don't drink and derive.
Alcohol and calculus don't mix.
|
|
|
|
|
leckey wrote: looked at some of your previous posts and you keep demanding we send you the code.
Even if he was polite and said "Please" , I still wouldn't give out any serious code
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
Empty Vessels Makes More Noise...
|
|
|
|
|
This site is for people to learn and not to comment others....
|
|
|
|
|
Kasi,
If you dont understand. People in forum here help each other.
This is no way of asking it.
Try to be more nice.
Cheers
Menon
|
|
|
|
|
Sure i will try my level best in future...Tanx
|
|
|
|
|
Howdy.
First ever message... wow.
I've written an ASP .NET 2.0 application (C#, code-behind model) which uses a master page for the elements common to most of the application. When I'm in one of my subordinate pages and switch to design view, though I just get the master page content greyed out, with none of my subordinate page's controls or content being rendered.
This means that I've had to code the applcation without the benefit of design view, although it does seem to work for my user controls when viewed in isolation.
What could be causing this? I'm sure it's something really, really simple.
"What the <%#%>?"
|
|
|
|
|
Hello ,
I have a master page which has site menu. The menu is made up of DIV tag.
I want to hide the menu from an ASPX page.
I am not able to make a reference of the DIV tag present in master page on ASPX page. could some one help?
Pavas
|
|
|
|
|
mpavas wrote: am not able to make a reference of the DIV tag present in master page on ASPX page.
You have to create a public method in master page which hides the div. Assume your master page is named "Master1", then the following code will access the public method of master page from a content page.
Master1 master = (Master1)this.Master;
master.PublicMethod();
|
|
|
|
|
Some of our customers make changes to their website using Contribute. Contribute can make changes to html pages but cannot make changes to an asp .net page. Is there a product, or a way, that and end user can use to make changes to an asp .net page?
|
|
|
|
|
Do you really want that ? An ASPX is far more complex and easy to break than a HTML page.
It's just a text file, you can expose it any way you like.
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 )
|
|
|
|
|
No I don't want that either, but they require to have the ability to make changes to just the content, not vb code, of the aspx page.
|
|
|
|
|
what is the exact difference between csx and java script
|
|
|
|
|
I've never heard of csx, and javascript is the language that all browsers run to allow client side scripting ?
Did you mean css ? CSS is just styles for layout, they are chalk and cheese.
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 )
|
|
|
|
|
Hi
i'm trying to send mail to an gmail or yahoo id from an ASP.Net application by SMTP service using the following code..
Dim msg As New Net.Mail.MailMessage(TextBox1.Text, TextBox2.Text, TextBox3.Text, TextBox4.Text)<br />
<br />
Dim mySmtp As New Net.Mail.SmtpClient("IP ADDRESS")<br />
Try<br />
mySmtp.Send(msg)<br />
Label5.Text = "Mail Sent"<br />
Catch ex As Exception<br />
Label5.Text = ex.Message<br />
End Try
but it returns me the following error
Mailbox unavailable. The server response was: 5.7.1 Unable to relay for toMAILID
Thanks in advance
Regards
Sivan.G
-- modified at 23:58 Wednesday 26th September, 2007
|
|
|
|
|
Hi Sivan,
I just tried the same code and it worked absolutely fine at my end.
Does the SMTP Server allow relaying to an outside email address?
Also check whether the To Address is a correct email address or not.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|