Asp.net - Get The DateTime That A Page Was Last Published In Sitefinity?

Apr 16, 2010

Here is what I have:

Dim cmsManager As New Telerik.Cms.CmsManager()
Dim currentNode As Telerik.Cms.Web.CmsSiteMapNode = CType(SiteMap.CurrentNode, Telerik.Cms.Web.CmsSiteMapNode)
Dim currentPage As Telerik.Cms.ICmsPage = currentNode.GetCmsPage()

[code]....

Unfortunately .DateModified returns the last time that a page was edited instead of when it was last published. I've been looking through the documentation but I haven't been able to find any corresponding properties.

View 1 Replies


ADVERTISEMENT

HTML Page Shows Up Locally But Not When Published On The Server?

May 16, 2012

I am creating html code as a string (named htmlString) in a Visual Basic .Net program and want to show the created html as a new page

Dim path As String = Server.MapPath("~/tmp/")
Dim strWriter As StreamWriter = New IO.StreamWriter(path & "SomeHtml.html")
strWriter.Write(htmlString)
strWriter.Close()
System.Diagnostics.Process.Start(path & "SomeHtml.html")

This works locally but when published on the server it does not open the html page. (Nothing happens when I click on the button that is supposed to trigger the piece of code to create .html and display it.

View 1 Replies

Asp.net - Print Page Without URL And DateTime Using Javascript?

Mar 18, 2011

I want to print the div tag content by javascript by using the following code.

var divToPrint1 = $('#PrintDoc').html();
var newWin = window.open('Share Certificate #001', '', 'width=10px,height=10px');
newWin.document.open();
newWin.document.write('<html><body onload="window.print();">' + divToPrint1 + '</body></html>');
newWin.document.close();
setTimeout(function () { newWin.close(); }, 10);

And print code works fine. But now I want to remove the url, date and title from the print by using the javascript code.Is it possible? solve the following problem?

View 2 Replies

Convert String To Datetime & Calculate The Datetime?

Mar 23, 2011

how to convert string to datetime and calculate date

View 3 Replies

Match A Certain DateTime Value With Current System DateTime

May 7, 2010

I'm trying to match a certain DateTime value with the current system DateTime. I have a timer and a label on a form. Timer interval is set to 1000. When the form loads, the timer starts ticking. As soon as the current DateTime matches the value of the variable, it shows a message in the label. When I'm writing the following code, the values don't match even if the current system DateTime is equal to the variable. Label1 isn't showing 'Times Matched':[code]The default format of 'Now' is the same as I have stored in dtmVar variable. So there's no question of format mismatch. Does that mean 'Now' is not actually a DateTime property? Provided, my O.S. is Windows Vista Ultimate and all date/time settings are set to default.

View 1 Replies

Match A Certain DateTime Value With The Current System DateTime?

May 1, 2010

I'm trying to match a certain DateTime value with the current system DateTime. I have a timer and a label on a form. Timer interval is set to 1000. When the form loads, the timer starts ticking. As soon as the current DateTime matches the value of the variable, it shows a message in the label.

When I'm writing the following code, the values don't match even if the current system DateTime is equal to the variable. Label1 isn't showing 'Times Matched':

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim dtmNow As DateTime

[Code]....

Why is it so? The default format of 'Now' is the same as I have stored in dtmVar variable. So there's no question of format mismatch. Does that mean 'Now' is not actually a DateTime property? Provided, my O.S. is Windows Vista Ultimate and all date/time settings are set to default.

View 1 Replies

Update Datetime Field With Empty Datetime?

Aug 8, 2011

datetime1 and datetime2now two fields are have data ( date )in table recordi want to update only datetime2 is an emptyi am using visual basic 2010 ( visual studio 2010

View 1 Replies

C# - Compare Datetime.Now With A Datetime Variable

Dec 27, 2010

I try to compare Datetime.Now with a Datetime variable I set, using the Datetime.CompareTo() method. I use a timer to compare these every second and display the result, but as the current time approaches the time I set, the result changes from 1 to -1, but never 0, which means these two are never equal. I'm suspecting the Datetime structure contains milliseconds?

View 7 Replies

Challenge - DateTime Minus DateTime?

Mar 14, 2011

Assume the following program is started at 1:59:01 AM on 3/13/2011 in the United States. The first time Timer1 ticks what will be the value of the TimeSpan (ts)?

Public Class Form1
Private Sub Timer1_Tick(sender As System.Object, _
e As System.EventArgs) Handles Timer1.Tick

[code].....

View 7 Replies

VS 2010 Add Datetime Into Sql - Datetime - Field

Jan 29, 2011

I'm trying to add the date and time of Today into a Sql-database-field that has the datetype datetime.

[Code]...

the msgbox gives me the following result: 29/01/2011 18:49:21 my sqlException gives me the following error: 102 - Incorrect syntax near '18'. Is it better that i set the datatype to char in my sql database? It's maybe a bit easier? When I do that, can I calculate with these date?

View 4 Replies

Tab Page 1 To Tab Page 2 (textbox1 Input From Tab Page 1 To Textbox2 In Tab Page 2)?

Jun 12, 2011

I have a text input in textbox1 in tab page 1 and i want that text from textbox1 will be displayed in textbox2 in tab page 2.

View 3 Replies

Javascript - Pass Page Or Master Page Object To AJAX Page Method

Oct 5, 2010

I wrote a page Page method in my aspx page. in web service method I need to call FindControl method return textbox and get text box value. But my findControl will take MasterPage object to iterate.

see my code

<script type = "text/javascript">
function ShowCurrentDateTime() {
$.ajax({

[Code]....

How to pass Master Page object or Page to Page method?. So I can use in Sared method.

Is there any way I can access Textbox value directly in Page method? I need access couple of controls in Page Method.

View 3 Replies

Run JavaScript Function On The Page Onload Event In Content Page Of Master Page?

Nov 4, 2010

HOW TO RUN THE JAVASCRIPT FUNCTION ON PAGE ONLOAD EVENT IN CONTENT PAGE OF MASTER PAGE.? means i have masterpage and the content page of master page namely default.aspx in vb.net.i wanna run javascript function in Default.aspx and i have called the function body onload in master page.when i run my website it shows the error "" Microsoft JScript Runtime Error : Object Expected ""

View 4 Replies

Save Single Windows Form As Many Page And Reload The Page Whenever Call That Page

May 17, 2012

I need sample vb.net code to save single windows form as many page and reload the page whenever i call that page...

View 1 Replies

Webbrowser Navigate To Page / Wait For Page To Load Then Move To Next Page

Jun 13, 2011

How can I get Webbrowser1 to navigate to each page and wait for the one page to completely load, then move to the next page...? [code]

View 3 Replies

Database Not Published With Vb?

Sep 29, 2011

I put database in bin->debug and i also call from that folder using DataDirectory Business_Card_Database.accdb when i publish the project database not found error is occur note I also tried

1. System.IO.Path.GetFullPath

2. Application.StartupPath

3. System.IO.Directory.GetDirectories

Above all are not working to find database after published I'm using

1. vb.net 2010 express edition

2. Access database 2010

View 1 Replies

Published But Can NOT Install

Feb 5, 2011

I have debugged and published. when i try to install the on ANOTHER system (with xp SP2) it pop up .NET framwork is not installed on that system. i want to know what is the solution for this. If my client does not have .net framwork, does it mean he have to struggle to install my application.

View 1 Replies

Can't Run Published / Deployed Program

Jun 8, 2010

I've been using a piece of code I found that reads in joystick movement into my VB application using DirectInput. Building an executable works great, the program operates as should be, however when I publish my program for final deployment[code]...

View 10 Replies

Deployment :: Flash In Published App

Mar 11, 2010

I made an application in vb 2008 express i used few flash files when m running debug flash files are running when i published the application and installed all r running fine except flash help me where did i made mistake

View 1 Replies

Get The Database On The Published Application?

Jun 7, 2011

I have connected my vb .net forms to the MYSQL database but when i comes to publishing, i do not get the database on the published application.

View 4 Replies

Include A File In Published App?

Jun 24, 2010

I have an application that uses some external files. When a button is clicked, it opens 2 excel files and writes to one text file. When I publish this, it does not include those files. How can I make it include those files in the final solution. I have added them into my solution explorer under different folder names but they are not there.

View 6 Replies

Including DLL In Published Program?

Dec 9, 2009

I'm using a dll in my program, it works fine. But when I publish and try to run on another machine, it says the dll is missing.Am I right in saying that I need to add it to my references, with the Add button on the references page? When I do that, it says it's not a valid assembly or com component.

How do I fix this? My level of knowledge is very low, especially with dll's.

View 10 Replies

Installing Application Published In .net?

Jun 9, 2009

i built a very simple application in vb.net, installed it, it worked. then i did some very slight updates, build it, tried to install it but got the following errors. i restarted computer, uninstalled app for the uninstall menu, and tried to run setup.exe and still have been getting this error.

PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 2.0.50727.3053

[code]....

View 3 Replies

Published EXE Causes Don't Send Error

Dec 24, 2011

I am new to VB 2010. Just now i made a program in Vb and published it. In my computer it worked without problems. But in my friends PC, it shows Dont Send Error. I created the program using .NET 3.0 and my friends PC has .NET 4.0 Extended installed.

View 2 Replies

Uploading A Published Application?

Nov 14, 2010

i have created a simple program which a freind requested to be made for a game.This is what my code is made up of basicly , with different writing to Log.txt file However when i upload my program for him to download. He needs to put it in the exact directory "c:MithrilDragonDropLog" which is a hastle to unzip, cut and paste the folder into there etc. Is there a way that i can program this as to make it write a log.txt into the file which is downloaded without having to move it about in the computer.

Private
Sub
Button7_Click(ByVal
sender As

[code]....

View 8 Replies

VS 2008 Debug Published App?

Jan 9, 2012

I have written a fairly basic application. It reads txt files, loads a SQL, and outputs to text files. The application compiles and publishes without an error. The app works perfectly on my PC. I can not get it to work on any other PC. Application will install without an error but when I try to launch the app, nothing happens. Running out of ideas to try and hoping someone may have some tips or tricks to try and see what is going on that I have not tried.I am running Windows 7 Pro - 64 with Visual Studio 2008. The only references are for .net 2.0 and ADODB.DLL. I have setup the app to include all references as local copy to true.

I have tried installs on Windows 7 Pro, Windows Server 2000, Windows Server 2003, Windows XP Pro, and Windows Vista. All install without error. Have tried installed as user with admin rights and the PC's primary admin account. When you launch the app, there are no messages in all OS except Windows 7. It will basically Flash a message about checking for compatability and run you through a wizard to see if running as XP or Vista works and it doesn't.

View 14 Replies

VS 2010 XML File After Published

Sep 15, 2011

I have an XML file in Bin/Debug that I am referencing using the code below. It works fine in testing, but when i publish i get an error seen below the code.

How can I reference this XML file inside of the application?

Dim m_xmld As XmlDocument
Dim m_nodelist As XmlNodeList
m_xmld = New XmlDocument()

[CODE]...

View 2 Replies

Asp.net - Using Javascript On An Aspx Page That Uses A Master Page - Which Contains The Page In A Form?

Aug 7, 2009

I have a master page which contains everything that inherits it within a form. A page inheriting from it needs to run some javascript to act on a text field on a page. However, I can't seem to reference that text field through the javascript, since the form begins on the master page. The following line will come up bogus: document.form1.txtFindUser.value = blah.responseText; This is because form1 is defined on the master page, while txtFindUser is on the current page.

View 3 Replies

Session Variable To Change From Page To Page As Move From One Page To Another?

Feb 2, 2010

i am new to this. i have 4 pages. login.aspx, account.aspx, settings.aspx and fliers.aspx.
its all programmed in vb.net with sql server backend.on my firstr page, login.aspx i have this code in the .vb page -

Dim SQL As String = "SELECT * FROM table1 WHERE email='" + Me.txtUserName.Text + "' AND password='" + Me.txtPassword.Text + "' "
ExecuteNonQuery(SQL)

[code]...

View 3 Replies

Why A Page Load Would Be Called Twice On Page When requesting Aspx page

Jul 3, 2006

Does anyone know why a Page_Load would be called twice on a page when requesting an aspx page?I am using .Net 2.0 with the new .net 1.1 compilation model installed. Whenever I request a page, the Page_Load on the aspx page appears to be called twice, so does the Page_Load on and user controls added to that page.

View 16 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved