|
wut exakly iz ur problm? u plas tha flah menu as n mbeded resrc.
|
|
|
|
|
first the fmb extension its for your flash project or the exported flash file?,
So, its the second option, You must to copy the flash file inside the site root and write these onto html code page.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="120" height="60">
<param name="quality" value="high" />
<embed src="xxxxxx/yyyyy" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" />
change the embed src to relative address file..
keep Learning and you never will be out of date...
|
|
|
|
|
i m doing exactly this but its i m using asp.net 2.0 and it dsnt accept the tag <embed /> it dsnt display it
|
|
|
|
|
Ok, Biaali try these lines
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="120" height="60">
<param name="movie" value="flash/mail.swf" />
<param name="quality" value="high" />
<embed src="flash/mail.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="120" height="60" />
Remember change the two flash/mail.swf urls by your relative url
And the Width and height properties.
You must to insert this Javascript in order to download the flash player, (if the user dont have installed)
This the code
keep Learning and you NEVER WILL BE out of date...
|
|
|
|
|
Check these lines from code Behind page
Imports ShockwaveFlashObjects
Imports AxShockwaveFlashObjects
Imports System.IO
Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim flash As New AxShockwaveFlash
Dim percorso As String
percorso = Path.Combine(Directory.GetCurrentDirectory, "logo_tre_hp.swf")
Dim startupSize = New System.Drawing.Size(1024, 768)
Dim startupsize2 = New System.Drawing.Size(640, 480)
'Start
flash.BeginInit()
flash.Location = New Point(50, 80)
flash.Name = "Testina"
flash.TabIndex = 0
Controls.Add(flash)
flash.Size = startupsize2
flash.EndInit()
flash.LoadMovie(0, percorso)
flash.Play()
FormBorderStyle = 1
ClientSize = startupSize
End Sub
End Class
I hope work for you
keep Learning and you never will be out of date...
|
|
|
|
|
Hi,
I am using Process to run a .vbs script to copy a folder and the files in the folder from one server to another server. The code is as below :
Process myProcess = new Process();
myProcess.StartInfo.FileName = string.Concat(dirRoot.FullName, "\\myscript.vbs");
myProcess.StartInfo.Arguments = string.Concat("arg1, arg2, arg3, arg4, arg5");
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();
The arg2 and arg3 are source system login, the arg4 and arg5 are the login for destination system login.
The .vbs file uses Script.FileSystemObject and wscript.Network to do the folder creation and copy file. Here is part of code:
'Open File System Object
Set oFSO = CreateObject("Scripting.FileSystemObject")
'Open Network System Object
Set oNSO = CreateObject("wscript.Network")
....
oNSO.MapNetworkDrive "I:", "\\web1\c$", false, sSourceLogin, sSourcePassword
oNSO.MapNetworkDrive "J:", "\\web2\d$", false, sDestLogin, sDestPassword
...
wscript.echo sSourceFolder1 & " --> " & sDestinationFolder1
oFSO.CreateFolder sDestinationFolder1
oFSO.CopyFolder sSourceFolder1, sDestinationFolder1
...
When I run the project on my local machine, it works ok. it means, the files are copied from my local machine to a testing server. But the problem came out when I run the project on real server, nothing is done. No error is reported and no file is copied.
I did config the IIS on the source server to enable execute permission to be script and executables for the folder containing the .vbs script file.
Does anybody have similiar experience? Any help would be very appreciated!
Thanks,
|
|
|
|
|
I would ensure the following calls create COM objects successfully.
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oNSO = CreateObject("wscript.Network")
I will also check on \\web1\c$ \\web2\d$ access from the production server using the same security context that runs the .vbs script
|
|
|
|
|
I have read some article about "To spawn a process that runs under the context of the impersonated user, you cannot use the System.Diagnostics.Process.Start method" at http://support.microsoft.com/kb/889251. Since I use both Windows Authentication and impersonate=true, I guess that's why the process couldn't start at all. But the solution posted at the above link only apply to asp.net 1.0 and 1.1. I am using asp.net 2.0 .... So I am still struggling to try to find a solution for the problem....
Do you have any ideas?
Thank you in advance!
|
|
|
|
|
hallo,
i would appreciate it if someone could tell me whether there is a way of doing the same thing as done in dreamweaver: you have many pictures loaded which are then displayed, one at a time, in a picture box. also i would like to know how to do it of course.
licec
|
|
|
|
|
PictureBox is a Windows control in ASP.NET you would use the Image control.
only two letters away from being an asset
|
|
|
|
|
Hi
We have been developing a ASP.NET 1.1 business management system over the last few months and have now delayed the inevitable long enough, reporting???
In the past we have used TallComponents TallPdf to produce reports in PDF format which works well although the object model is a bit tedious to work with at times and reporting writing can be a time consuming task. However once written it was ideal, we could produce a PDF document with the report contained store it within the archive and send it to the client, email it as an attachment etc etc etc.
So the issue is, we would now like a product that has some form of report designer interface to speed up report development, but has also a code based object model, and once the report is built output it in several formats i.e. html, pdf, word, excel, rtf etc. that can be saved in the report archive and dealt with as required
So anybody had any experience of this process and maybe have a recommendation??
Many thanks in advance
Andy
|
|
|
|
|
SQL Server Reporting Services - really pretty decent as these things go.
|
|
|
|
|
Go for MS Reporting services. If you already have licensed MS SQL Server, then it is ideal, because reporting services are part of ms sql server. What I like the most on Reporting services reports is that they are stored in RDL (report definition language) what is open xml format, so you can do with your report programmaticaly whatever you want. ReportViewer control (it is part of VS 2005, or is free to download from microsoft) supports several output formats, from ones you stated are not suported word formats. But you always can write your own rendering extension for reporting services, as format is open and extensions are easy to integrate.
Another option could be Crystal reports, but I'm not so happy with it. I deffinitely prefer reporting services.
Pilo
|
|
|
|
|
Hello Everyone,
I am working on this project, and I was wondering if there is a way to get the site address from a page. Lets say we are at www.codeproject.com, is there a way to get codeproject from URL so we know what site address we are at?
Sincerely,
The Major Rager
|
|
|
|
|
|
|
Try this code line.
Request.PhysicalApplicationPath, it return the physical address, but its something..
keep Learning and you never will be out of date...
|
|
|
|
|
How to get the Current Display Setting and apply for a form?
Thanks.
K.Alex
|
|
|
|
|
Mr. Alex,
you can use the following javascript code to get the display settings of screen
alert("Width:" + window.screen.width + ";Height:" + window.screen.height)
|
|
|
|
|
hi friends,
i am developing an application using aspnet 2005 i need to open the command window from the web page and execute some file from the command window and close the command window how can i do this in my web application i am trying something with process.start("cmd.exe")
but till now i didnt get any solution can anybody help me
jabbarsb
|
|
|
|
|
You mean to run cmd.exe on client side? You can not do this, unless client install ActiveX or similar component. If you could, it would be serious security hole and it should be reported to browser vendor to be patched
Pilo
|
|
|
|
|
Process.Start("cmd.exe","path_to_batch_file")
|
|
|
|
|
Please your help,
I using Vs.Net 2005 and the ASP.Net 2.0. My problem be with the GRIDview and the SQLDataSource.
My Dataview work as planned and can update / delete perfect when all columns are visible in the GRIDView. However big problem is made when i make one of columns to Invisible. This column data is not found and so database update not work and cause error.
Anyone can help me please.
Most greatfull marconi!
-- modified at 10:51 Wednesday 22nd November, 2006
|
|
|
|
|
I don't know if that's yoyr problem, as you didn't write any code here, but it could be because data of hidden columns are not stored in viewstate, so they are not available after postback. Small trick is to make column invisible after you databind data:
myGridViewColumn.Visible = true;
myGridView.DataBind();
myGridViewColumn.Visible = false;
Try it, maybe that solves your problem.
Pilo
|
|
|
|
|
Hello,
I am using the wizard to make the SqlDataSource and Gridview.
When i make update all is working fine when all columns are visible. But when i hide 1 or more of the column, i get error because it not find the data in this column. So cannot add this data to database.
Any help how to do?
-- modified at 10:52 Wednesday 22nd November, 2006
|
|
|
|