|
I have never ever seen cold fusion code... My company is considering purchasing an application that is in cold fusion. I have done a little ASP programming. My background is mainly C++. Is it worth my while to take a cold fusion class or is the syntax easy to grasp?
Is Cold Fusion a dying technology? Would you purchase cold fusion source code?
|
|
|
|
|
Cold fusion works in tags like html. Here is an example:
<cfset name="Jim">
<cfoutput>
Hello, my name is #name#
I found it easier to learn than ASP or ASP.Net, but then again, I suck at C++ and my C background is nothing to write home about. For someone who understands the concept of server-side processing, learning cold fusion should only take a weekend (at least to a degree necessary of managing a pre-built solution). Go to the bookstore and pick up a Cold Fusion basics book. You should be set.
Is it dying? Who knows. It used to have a much stronger presence than it does now. If it dies off, it is because Macromedia is charging to much for it. It isn't that it is over-priced for what it does. I whole-heartedly admit that it is a great tool. In fact if price were not a factor, I would choose to use it over ASP/ASP.Net. I just think that the majority of the world will never be able to afford to use it.
|
|
|
|
|
I'm Facing a project of two Databases in Diffrent PCs & I want to Transfer data/Update/edit from & to each one ( Not mirror ) But I transfer then process it & compair ...etc then put it in the database according , then back it's Id to the 1st PC, like this Imagination :
note :
PC1 : SQL server database
Windows OS
PC2 : windows OS
DBase database or something else
----------------------------------------
The Records are sooo BIG & have to take on Mind Many Updates at the same time & also Disconnected senario then Sync
--------------------------------------------
PC1 ----> PC2(Process Incomming Data & Update the dbase)
PC1<------PC2(Back the ID )
--------------------------------------------
then How to do so with fast way & do the Operation
Know that i can install any reqirment Tools or tech.
|
|
|
|
|
Hey friends,
I have a problem related javascript.
I am trying to create "scriting.filesystemobject" using javascript
but I am getting the error "automation server can not create object"
Plz send me the solution i any of u have it.
Thank u all.
|
|
|
|
|
There could be host of reasons for this error. For example no scripting engine is installed on your machine or you do not have permissions to access the filesystemobject, or you do not have permissions to open the necessary files.
Are you doing this as a part of your web page? also what os are you using. a lot depends on this too.
Prady
|
|
|
|
|
Hi,
Thank u very much for the reply.
I am using windows2003 server and developing a web application using ASP.NET and Web server is IIS of my system.
I want to make .txt files on server using javascript. For that I am doing like this.
fso =new ActiveXObject("Scripting.FileSystemObject");
f = fso.CreateTextFile(filename, ForReading);
f.Write(myRTF.document.body.innerHTML);
f.close();
Do u have solution of this problem.
If u have it then plz sent it to me.
Thank u again.
|
|
|
|
|
Hi Chetan,
Hello! there is a better way to do this. If you are using ASP.Net and want to create the files on the server then why are you using JavaScript? you could use C# code behind for a much richer functionality. However that is your choice.
The problem you are facing is due to permissions. Your JavaScript is not getting permission to write the file, which is what it is designed to do by default. You will have to change the web conf file for your project to grant permission to access the disk resource. Only then can you write to a file.
Prady
|
|
|
|
|
Thank u very much for ur reply,
The way u suggested that to use code behind to create file on server is very right but in my application it is mandatory to create it by javascript.
and u said that there could be a problem reagrding permissions, thats right.
I also tried for that but could not get proper solution. actually It was performing in fine way just berofre two days.
but now it not working.
Thank u again for ur suggestion and the way u suggested.
|
|
|
|
|
Hi,
I'm trying to create TD and TR elements in Javascript.
Using document.createElement("tr") and document.createElement("td");
Also to catch mouse events i use,
setAttribute("onmouseout", "this.className='mouseOver';");
How to handle ARROW KEY events like mouseover .Pls help.
Thanks in Advance
Ram
|
|
|
|
|
setAttribute("onKeyDown","javascript:KeyDown();");
function KeyDown()
{
var whichKey = event.keyCode;
switch(whichKey)
{
case 37:
case 38:
case 39:
case 40:
}
}
I hope that's what you're looking for...
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Hi all,
My problem is finding how to control the right of printing, saving a PDF file specifically and file of any type generally through IE.
Can you help me?
Thank you all!
N@m
|
|
|
|
|
When I send a Query that returns no results there is simply an error page and NOT the "NO RESULTS FOUND" that I want displayed... CAN YOU PLEASE HELP.. This is my code for the body section... all seems fine as per my tutorial?? Would you need the rest of the code page or not? It is simply suppose to display SOMETHING except an error page when you have no results in the query search???
<%
i=0
While (i<=37)
%>
><%=response.Write(CatArray(i))%>
<%
i=i+1
Wend
%>
OR
| |
<% If Not Recordset1.EOF Or Not Recordset1.BOF Then %>
<% IF Recordset1.EOF OR Recordset1.BOF Then %>
<% Else %>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
Records <%=(Recordset1_first)%> to <%=(Recordset1_last)%> of <%=(Recordset1_total)%> | Category | Price | <%=(Recordset1.Fields.Item("DESCRIPTION").Value)%> | <%=(Recordset1.Fields.Item("CAT").Value)%> | R<%=(Recordset1.Fields.Item("INCL TAX").Value)%> |
<% End If ' end Not Recordset1.EOF Or NOT Recordset1.BOF %>
<% End if %>
<% If Recordset1.EOF And Recordset1.BOF Then %>
<% End If ' end Recordset1.EOF And Recordset1.BOF %>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
this is me
|
|
|
|
|
<meta http-equiv="refresh" content="10; url="http://www.lama.com/">
That code will refresh the browser to the indicated URL 10 seconds after loading the page.
How can I cancel the refresh timer? I have tried removing the meta tag element but that does not work.
regards,
Paul Watson
South Africa
PMW Photography
Gary Kirkham wrote:
The ability to destroy a planet is insignificant next to the power of the cliché...Star Trek had it in spades.
|
|
|
|
|
How did you remove the tag? Using javascript? Once the page is loaded it's probably to late to stop it.
Are you using any server code? Then remove the tag on the server side, e.g. don't write it to the page.
---
b { font-weight: normal; }
|
|
|
|
|
By other means (window.location= / window.location.href= ), redirect to another page less than 10 sec after the page loads.
|
|
|
|
|
Pardon? I don't want the page to redirect at all, the meta refresh needs to be cancelled all together. I cannot strip out the meta refresh before it gets to the browser either.
regards,
Paul Watson
South Africa
PMW Photography
Gary Kirkham wrote:
The ability to destroy a planet is insignificant next to the power of the cliché...Star Trek had it in spades.
|
|
|
|
|
I am experiencing problems with events.
I want to develop (eventually) a keyboard pop-up window as a user control that will pass data back to the page.
I have attached a cut-down version and now basically all I have is a web form with a textbox, and a user control with a button on, which when pressed will populate the textbox with some characters.
I’m trying to use events to do this but I get errors, can any one help?
Webform1.asp.cs
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace testeventsc
{
///
/// Summary description for WebForm1.
///
public class WebForm1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.TextBox TextBox1;
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
}
void uc1_OkClick(object source,EventArgs e)
{
this.TextBox1.Text = "xx";
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
Webform1.aspx
<%@ Register TagPrefix="uc1" TagName="uc" Src="uc.ascx" %>
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="testeventsc.WebForm1" %>
<title>WebForm1
<asp:textbox id="TextBox1" runat="server">
<uc1:uc id="Uc1" runat="server">
uc.ascx.cs
namespace testeventsc
{
using System;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
///
/// Summary description for uc1.
///
public delegate void OkClickEventHandler(object sender, EventArgs e);
public class uc1 : System.Web.UI.UserControl
{
public event OkClickEventHandler OkClick;
protected System.Web.UI.WebControls.Button buttonOK;
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
public string Value()
{
return "xx";
}
private void buttonOK_Click(object sender, System.EventArgs e)
{
OkClick(this,new EventArgs());
}
}
}
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="uc.ascx.cs" Inherits="testeventsc.uc1" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<asp:button class="Fatkey" id="buttonOK" style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 12px"
="" runat="server" text="Ok">
Clueless Novice
|
|
|
|
|
Hi
Anyone have any idea why in my ASP.NET app (which has active configuration set to debug; unchanged project settings from the default; and compilation debug=true in web.config), does not trace to the output window with System.Diagnostics.Debug.WriteLine ?
The debugger will break properly, and I can step over code fine, but the cursor jumps right over a debug statement, and does not execute it.
Any ideas greatly appreciated, because this is winding me up.
Another thing i've noticed is that if an exception isn't handled, the debugger doesn't catch it: I end up with an asp.net error page in the browser.
Cheers
Jon
using System.Beer;
|
|
|
|
|
What Asp SourceCode Management Tool do you use?
I want to find an Asp SourceCode Management Tool to manage my Asp SourceCode.
Please give me some advice,Thank you!
|
|
|
|
|
I am sorry,I mean Source Control Tool
|
|
|
|
|
hi there,
U can use MS Visual source safe or u can go here
http://www.freedownloadscenter.com/Best/visual-cvs-free.html to get more info about "Source Version Control"
<< >>
|
|
|
|
|
Thank you,
I know VSS and CVS can control visual studio .net's version.
Can VSS and CVS control ASP's version?
|
|
|
|
|
I am attempting to send a message using CDO in a ASP.NET/C# Application:
I receive the following Error when trying to update the fields:
////////////////////////////////////////////
ERROR
////////////////////////////////////////////
Fields update failed. For further information, examine the Status property of individual field objects.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Fields update failed. For further information, examine the Status property of individual field objects.
////////////////////////////////////////////
The code looks like the following:
////////////////////////////////////////////
//// CLASS VARIABLES
static private String _currStoreName = "My";
static StoreClass _oCurrStore;
const string CDO_MailServer = "mail.dovetailinternet.com";
const string CDO_ContentDisposition = "attachment;filename=smime.p7m";
const int CDO_SmtpPort = 25;
const int CDO_SendUsingType = 2;
private Certificates oCerts;
private Certificate oCert;
private EnvelopedData oEnvData;
////METHODS
private void CDOMail()
{
CDO.Configuration mailerConfig = new CDO.ConfigurationClass();
CDO.IMessage firstMsg = new CDO.MessageClass();
CDO.IMessage secondMsg = new CDO.MessageClass();
mailerConfig.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"].Value = CDO_SendUsingType;
mailerConfig.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserver"].Value = CDO_MailServer;
mailerConfig.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverport"].Value = CDO_SmtpPort;
mailerConfig.Fields.Update();
firstMsg.Sender = "from@internet.com";
firstMsg.To = "to@internet.com";
firstMsg.Subject = "First Message Subject";
firstMsg.TextBody = "Message One Body";
secondMsg.DataSource.OpenObject(firstMsg, "IMessage");
CDO.IBodyPart oBodyPart = secondMsg.BodyPart;
oBodyPart.ContentMediaType = "application/pkcs7-mime;smime-type=enveloped-data;name=smime.p7m;";
oBodyPart.ContentTransferEncoding = "base64";
//*** Update That Fails
oBodyPart.Fields["urn:schemas:mailheader:content-disposition"].Value = CDO_ContentDisposition;
oBodyPart.Fields.Update();
//***
secondMsg = EnvelopeMessage(secondMsg);
secondMsg.Configuration = mailerConfig;
secondMsg.Send();
}
//// ENVELOPMESSAGE
private CDO.IMessage EnvelopeMessage(CDO.IMessage msg)
{
CDO.Message oSecMsg = new CDO.MessageClass();
oSecMsg.DataSource.OpenObject(msg, "IMessage");
_oCurrStore = new StoreClass();
_oCurrStore.Open(CAPICOM_STORE_LOCATION.CAPICOM_CURRENT_USER_STORE, _currStoreName,CAPICOM_STORE_OPEN_MODE.CAPICOM_STORE_OPEN_EXISTING_ONLY | CAPICOM_STORE_OPEN_MODE.CAPICOM_STORE_OPEN_MAXIMUM_ALLOWED);
oCerts = (Certificates)_oCurrStore.Certificates;
foreach(Certificate cert in oCerts)
{
oCert = cert;
}
CAPICOM.EnvelopedData oEnvData = new CAPICOM.EnvelopedDataClass();
oEnvData.Recipients.Add(oCert);
ADODB.Stream tmpStream = oSecMsg.BodyPart.GetStream();
string strContent = tmpStream.ReadText(tmpStream.Size);
oEnvData.Content = strContent;
string strData = oEnvData.Encrypt(CAPICOM.CAPICOM_ENCODING_TYPE.CAPICOM_ENCODE_BASE64);
ADODB.Stream oStream = oSecMsg.BodyPart.GetDecodedContentStream();
oStream.Type = ADODB.StreamTypeEnum.adTypeBinary;
byte[] byteData = Convert.FromBase64String(strData);
oStream.Write(byteData);
oStream.Flush();
oStream.Close();
return oSecMsg;
}
Any help would be greatly appreciated, i've been trying to resolve the issue for hours on end, and know that eliminating this error will likely yield the desired effect.
I have been unable to find any good examples of sending CDO.Mail with .NET except the one here:
http://support.microsoft.com/Default.aspx?kbid=280391
I Followed the Instructions and am now faced with this problem. Please Help me!
|
|
|
|
|
How can I check that user is about to close the window?
I have tried the onbeforeunload function but it is also being fired if user refreshes the page... I can check if user refreshes the page by pressing F5 function key but I can't check if user click on refresh button...
I actually want to track when user has logged in and logged out so i wanna make sure that if user does not logg out and close the window then I can track logout time..
any thoughts please...
Salim Akbar
|
|
|
|
|
Don't double post. If you really really think that you have to draw attention to your question in two separate message boards, keep the question in one of them, and post a link in the other.
---
b { font-weight: normal; }
|
|
|
|