15,888,527 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Zac Newman (Top 10 by date)
Zac Newman
1-Oct-12 20:53pm
View
Nice work on being hospitable...
Zac Newman
16-Aug-12 20:07pm
View
In an organization you code with what you are asked to code with. And it is VB.Net as it says in the topic line... If you didn't know that is a completely different language... And as it runs on the server... Browser support is varied as it is for all code.
Zac Newman
14-Aug-12 2:49am
View
Umm... I am not sure where you are getting video from.
Passing the AUDIO file as a url was a proof of concept to rule out NTFS security issues in loading it into the website.
I have tried UNC, Local and URL
\\Server\Website$\Folder\File.mp3
D:\website\folder\file.mp3
http://website/folder/file.mp3
So not 100% sure on what your talking about...
Zac Newman
13-Aug-12 20:32pm
View
Okie then... Remember! I don't advise this as the best way to go about this... I think you should do it in GP or something else... But this piece of code will be very close to what you want...
Protected Sub Copy()
Dim hostname As String = Net.Dns.GetHostName.ToString
Dim FromFolder As String
Dim ToFolder As String
Dim Files As New ArrayList
Files.Add("File1.txt")
Files.Add("File2.mp3")
Files.Add("File3.exe")
For Each File In Files
FromFolder = "\\SOURCECOMPUTERNAME\c$\MyFiles\" + File
ToFolder = "\\" + hostname + "\c$\MyFiles\" + File
If System.IO.File.Exists(FromFolder) = True Then
System.IO.File.Copy(FromFolder, ToFolder)
End If
Next
Dim RegKey As RegistryKey
RegKey.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\RunOnce", False)
RegKey.SetValue("Install App", "command.com /c C:\MyFiles\Install.exe")
RegKey.Close()
End Sub
Zac Newman
13-Aug-12 19:49pm
View
It is not the MIME type that would be stopping it. I have now changed how I am passing the audio file to take the issue of file permissions out of it
Dim ServerFile As String = "http://website/Audio/butp.mp3"
Which browses fine... but still no go on the playing!
Caz
Zac Newman
31-Jul-12 1:17am
View
Thanks for confirming what I was doing, after a heap of time wasted I figured out that it was .Net not wanting to play with shared printers which was leading to my issues.
Zac Newman
7-Mar-12 0:17am
View
Heya Walter,
I stumbled across that myself, it is mainly addressing the issue of changing the CH and AD getting cranky over that. My rename function works well in dealing with the CN and DN. It is more the sAMAccount I have issues with.
Zac Newman
15-Feb-12 20:05pm
View
I am creating the modals using the AjaxControlToolkit (Sorry should have mentioned that before) and the modal function in that. Put putting a modal on the MasterPage in theory should open on every page in the application since every page inherits the MasterPage, but that isn't the case creating a modal on the MasterPage and then a button to show it only results in a runtime error.
Zac Newman
19-Jan-12 16:56pm
View
Heya Rahul,
I am guessing you mean to make a new Generic Handler and slap that code into it, rejigging it a little to reference both of the PK's in the database.
If I do that and it would be simple enough to do what then?
<asp:Image ID="Image" runat="server" ImageUrl='<%# Eval GenHandler.ashx("Data") %>'
AlternateText='<%# Eval("Type") %>' Width= "300" ImageAlign="Left"/>
Something like that?
Regards,
Caz
Zac Newman
13-Dec-11 17:13pm
View
That uses the Invoke("Add",new object function call, I was trying to avoid using that if I could. All of the MS sites suggest using the method displayed in my original code. I have tested with the invoke call and was having very littler luck.
Show More