Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:784045
More Search Options
RSS Available
Matching Posts
Display nothing when the date is null
Hi I have the following piece of code. The problem I am having is that when I am opening the page and the date field in the database is null, the date field on the webpage is displayed as 01/01/0001. I want to display nothing if the date field in the database is null rather than this. Can anyone see where I’m going wrong or how I can overcome this? Thank you _View.Date = Convert.ToDateTime(table.Date).ToShortDateString();
Posted to
Web Forms
(Forum)
by
young345
on 12/4/2009
Re: Display nothing when the date is null
thanks so much for all of your replies, the first post worked like a treat. thank you all :o)
Posted to
Web Forms
(Forum)
by
young345
on 12/4/2009
Re: BACK button and browser history
Hi, I have just been reading this post, I have been having the same problems recently. I have the following piece of code and when I click the back button I get the error webpage has expired, when I hit F5 it then loads the page. Is there anyway this can be overcome? The following is my code I have been trying for many days now to sort this problem out but I cant seem to btnClose.Attributes.Add("onclick", "javascript:history.back(); return false; "); Thank you
Posted to
ASP.NET AJAX Discussion and Suggestions
(Forum)
by
young345
on 12/2/2009
why is refresh method not working?
Hello, I have the following line of code btnBack.Attributes.Add("onclick", "javascript:history.back(); location.reload(true); return false;"); when the user clicks on the back button they are presented with a dialog box which says ‘to display the webpage again, internet explorer needs to resend the information you’ve previously submitted.’ And then it says to click re-try or cancel. When I click retry it dispalys the page I was navigating to. what I am trying to do is refresh
Posted to
Client Side Web Development
(Forum)
by
young345
on 12/2/2009
Re: ‘webpage has expired’error when using javascript back function
thanks for your reply. i cant think of anything i have done except for the fact that i have set the website to no cache. do you think this has affected it? do you know of any other way i can go back a page to its previous state? i really dont know how to overcome this and its soemthing i relaly need to do thank you
Posted to
Client Side Web Development
(Forum)
by
young345
on 12/2/2009
Re: why is refresh method not working?
i was asking about two different lines of code because they are not the same and i encountered a different problem
Posted to
Client Side Web Development
(Forum)
by
young345
on 12/2/2009
Re: how do i use caching for my page
Hi, Thanks for your reply. I have used the following but when I click the back button, I am redirected to page I want but it displays the error ‘webpage has expired’. Does anyone know why this has happened? Any help would be much appreciated, all I want to do it go back to the previous search results when clicking the back button Thank you very much I have used the following code to cache my page <%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup
Posted to
State Management
(Forum)
by
young345
on 12/1/2009
How do I resolve the webpage has expired problem when clicking the back button?
I have a back button on my webpage which redirects me to a previous page. However, when I click this back button I get an error saying ‘Webpage has expired’. I have to hit F5 to refresh the page. This is very inconvenient for the user, does anyone know how I can over come this page error? Thank you
Posted to
State Management
(Forum)
by
young345
on 12/1/2009
Re: How do I resolve the webpage has expired problem when clicking the back button?
thanks for you reply, i am not clearing the cache anywhere, i have put the follwoing in the page i want to chace but i still get the webpage has expired error i would really appreciate help on this. thank you <% @ OutputCache Duration ="86400" VaryByParam ="None" %>
Posted to
State Management
(Forum)
by
young345
on 12/1/2009
Re: How do I resolve the webpage has expired problem when clicking the back button?
Thanks for your reply, it has been very helpful. I was just wondering is there a way to call the page to refresh itself in the code? Because all it needs is a page refresh Thank you
Posted to
State Management
(Forum)
by
young345
on 12/1/2009
Page 1 of 36 (357 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
Channel 9 Live at PDC09: Dr Jeff Norris, NASA
Channel 10:
Flickr Drive Integrates Flickr into Windows Explorer
Channel 10:
Playfire: A Growing Network for Gamers
Channel 10:
Find the Top iPhone Apps with Bing (Yes, Really!)
Channel 10:
Xbox to Become Emergency Alert System
Channel 10:
Progression of the Iconic Background
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online