|
I'm a bit confused.
Searching the web for a solution to disable caching, I found several answers to this question. Unfortunately, I found several different answers all containing a mix of
- Response.Expires
- Response.Cache.SetNoStore
- Response.AddHeader("pragma", "no-cache");
- Response.Cache.SetCacheability(HttpCacheability.NoCache);
And secondly the documentation in MSDN is not quite clear, what every method exactly does.
Maybe someone can help me understand?
Thanks in advance
Urs
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
|
i was binding the data with the datagrid.i am binding the data through three tables.all the tables hava a common column field .i am using the hyperlink control to pass the id to another page.id belongs to the column name (which is common to all the tables that i mentioned a while ago).now the problem is i am getting the following error.
<b>DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'vcode'.</b>
i am using the following code
<asp:HyperLink ID="id" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Pass")%>' NavigateUrl='<%#"DetailInformation.aspx?vcode=" + DataBinder.Eval(Container.DataItem,"vcode")%>'></asp:hyperlink>
problem is occuring in vcode
Soniagupta1@yahoo.co.in
-- modified at 2:51 Thursday 20th September, 2007
|
|
|
|
|
Here vcode is considered as datafield name.
try this
NavigateUrl='<%#"DetailInformation.aspx?vcode="+DataBinder.Eval(Container.DataItem,"vcode")%>'
Best Regard Pathan
---------------------------------------------------
|
|
|
|
|
a filed with the name 'vcode' does not exists in the grid datasource
u must select vcode too.
We Can Do Anything, If We Want It
|
|
|
|
|
please elaborate it again.i am not being able to understand u.
Soniagupta1@yahoo.co.in
|
|
|
|
|
hi
try this:
NavigateUrl='DetailInformation.aspx?vcode=<%# DataBinder.Eval(Container.DataItem,"vcode")%>'>
regards
saravanan
-- modified at 8:10 Thursday 20th September, 2007
|
|
|
|
|
I have made webpages in asp dot net 2005 using C# and sql server 2005.My project name is "ubility" and the ip of server is 192.168.1.49.Now the problem is when i want to access it using "http://localhost/ubility", though it shows the directory listing, it doesn't show the page when i click to any link.And the second problem is when i use different computer and want to access the client page,i couldn't get it.I have used the address like "http://192.168.1.49/ubility" to get accessed of the project but it doesn't give the output.I mean it doesn't even show the directory listing. In this case, the error message is "Page can't be displayed." When i try to publish the project to the client side, it couldn't publish also.So how can i get the solution of this problem ??? My iis version is 5.
-- modified at 1:53 Thursday 20th September, 2007
suchitamanandhar@hotmail.com
|
|
|
|
|
How to run the .avi files in the windows media player?The .avi files were downloaded from another application.How to initiate the Windows media player while we are downloading the file from another source?
Divya
|
|
|
|
|
hi friends
i need to disable the browser backbutton .I used below code .it is work fine in IE browser.
my query is:
Is this code work in other browser(firefox,mozilla etc)
onload="javascript:history.forward(1)"
regards
saravavan
|
|
|
|
|
Disabling the back button is not the solution to any problem ?
you can't play with client browser
Why you want to disable the back button ?
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... "
|
|
|
|
|
hi
i have 3 pages.
1.signup.aspx->this page just enter u r email,password and click proceed button. it will redirct to verify details.aspx page
2.verify details.aspx->this page whatever u enter the signup.aspx page sre display here using session.verify u r email and password and click the register button.it will redirct to register.aspx page
3.register.aspx->this page i click browser back button.it will not go verify details.aspx page
and also
i tried session.abandon method.but it is not work
how can achive this?
regards
saravanan
|
|
|
|
|
DO one thing before page loading check the session values if you are in register page put that value in session ...
suppose
Login Page -> session['CurrentPage']=Login
verif Page -> session['CurrentPage']=Verify
Register Page -> session['CurrentPage']=Register
but while assining value in verify page check session value if it contains Register then redirect it to again Register Page
also add this code in aspx of every page
<head><br />
<meta http-equiv="Expires" CONTENT="0"><br />
<meta http-equiv="Cache-Control" CONTENT="no-cache"><br />
<meta http-equiv="Pragma" CONTENT="no-cache"><br />
</head>
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... "
|
|
|
|
|
hi sandeep
sorry for disturbance
Login Page -> session['CurrentPage']=Login
verif Page -> session['CurrentPage']=Verify
Register Page -> session['CurrentPage']=Register
i have one doubt what is the 'CurrentPage' and Login (['CurrentPage']=Login )
plz tell me clearly
regrds
saravanan
|
|
|
|
|
I mean that to store the page name in session so that you will come to know user on which page
Suppose When you are in Register Page and you click on back button then
in page load you will see what is the session value if it Register means user was on Register page (back button clicked) so redirect it to Register Page instead of verify .....
In short check the work flow ..
Hoping now u understood
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... "
|
|
|
|
|
hi
Session["CurrentPage"] = "VerifyDetails.aspx"; in VerifyDetails.aspx.
same as others
Is this corrct?
i tried this but the back button in register.aspx is workes.
i need i click back button in register.aspx ..the will not redirect to verify details .aspx..simply message displayed page ix expired.
how can i achive this?
regards
saravan
|
|
|
|
|
hi,
In a single data grid I want to display a 50 images, 5 columns and 10 rows, how to display the images.
Please help me.
jai prakash
|
|
|
|
|
You have using Repeater Control or DataList Control.
abglorie
|
|
|
|
|
i am using datagrid.
i use this code.
this code is displaying the image in single columns one after the other,i want to display the images in 5 columns.
jai prakash
|
|
|
|
|
for this kind of problems better to use datalist by giving the RepeatColumns="5"
<asp:datalist repeatcolumns="5" runat="server" repeatlayout="Table">
ramana
|
|
|
|
|
Hello Everyone,
Can anybody tell me that "Is it any limit to send the mail or newsletter to the recipients......." Actually i've to send the mail to the all the registeredd users to my site... but they are around 500 so as i send mail it generate an error "Could not access CDO........" something like this
|
|
|
|
|
Check it WebMail
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Put this error into gooelg u will get near about five of code from microsoft
in that code just jave to put u r username,password and servername then
this error should not come again?
This error could not occur because u r sending message to 500 users.
Thanks.
Rahul
|
|
|
|
|
Actually Sir I'm not understanding u r saying plz explain it.........
|
|
|
|
|
This is a network related error. Your application cannot connect to the mail server specified.
SmtpMail.SmtpServer
1)Is a valid SMTP Server
2)Check to be sure the server System.Web.Mail is executing on can connect to the mail server. Some times firewalls or proxy servers can get in the way.
3)Try specifying the value by IP address. Poor DNS resolution can sometimes hinder name lookups.
4)Make sure the that the mail server is running at port 25.
5)If you did not specify a SmtpMail.SmtpServer property, or if SmtpMail.SmtpServer points to "localhost" (or the equivalent), be sure the SMTP Service is running on port 25.
For testing purposes change the MailMessage.From and MailMessage.To properties to an address that exists on SmtpMail.SmtpServer. Some times this exception is thrown, when it really is a relay issue.
also try this
SmtpMail.SmtpServer.Insert( 0, "127.0.0.1 or your mail server name here")
Also make sure Anonymous access is allowd.
Rahul
|
|
|
|