|
|
what ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
LMAO again. This guy thought he was going to get the code from his previous question...
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
Oh no I jus voted this question as Good accidently! what have I done!
This guy needs to be removed from the forum
We are not a Code Charity
|
|
|
|
|
Yes he does.
I wonder why some people lacking any knowledge in the programming field insist on trying to do it - and end up here posting before reading any rules.
Maybe we need pre-requisites to join
Kazz
"Users are there to click on things, not think. Let the archs do the damn thinking."
|
|
|
|
|
Pity there is no such thing as an idiot filter. Unless you plan on creating one
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
I would, but I cant think of the correct code to write, maybe I will post up and ask for the code
We are not a Code Charity
|
|
|
|
|
No worries, i know what to write. Should i email it tou you then? haha
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
pls tell me the source code of login and sign out as well as hotel reservation in asp.net in easy way.
|
|
|
|
|
no, read my signature
try writing some code yourself, try these links
http://www.google.co.uk/search?hl=en&q=asp.net+login&btnG=Google+Search&meta=
We are not a Code Charity
|
|
|
|
|
Sounds like a rentacoder job gone wrong. If you have any decency, just tell your client you don't know how to do the job.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
This is the easyiest code !!!
(Y oZ oN ‚ (R oS oN rÇ poT oN
(U oV
oN oW oN rß po[ oL
Thanks,
Arindam D Tewary
|
|
|
|
|
LMAO
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
Actually you forgot the semicolons by the end of the line. It should be something more like
(Y oZ oN ‚ (R oS oN rÇ poT oN ;
(U oV ;
oN oW oN rß po[ oL;
Now it should compile finely, log in, out, send mails, and even cook some spaghetti for the user.
Kazz
"Users are there to click on things, not think. Let the archs do the damn thinking."
|
|
|
|
|
Lovely!!!
Thanks,
Arindam D Tewary
|
|
|
|
|
i am converting the .avi,mpeg to .flv format then capture the frame from .flv file successfully but i try to convert the 3gp to .flv, it is not convert and cannot capture the frame. .. pls help me
Process ffmpeg; // creating process
string video;
string mpg;
video = HttpContext.Current.Server.MapPath("uploads\\" + FileUpload1.FileName); // setting video input name with path
mpg = Page.MapPath("") + "\\video.flv"; // thumb name with path !//ffmpeg.exe -y -i input.3gp -ar 44100 -acodec mp3 -f flv -an output.flv
ffmpeg = new Process(); //ffmpeg -i [sourcefile.avi] -acodec mp3 -ar 22050 -ab 32 -f flv -s 320×240 [destfile.flv]
ffmpeg.StartInfo.Arguments = " -i " + video + " -r 25 -acodec mp3 -ar 22050 -s 320x240 -y" + mpg; // arguments !
//ffmpeg.StartInfo.Arguments = " -i " + video + " -s 480*360 -deinterlace -ab 32 -r 25 -ar 22050 -ac 1 " + mpg; // arguments !
ffmpeg.StartInfo.FileName = Page.MapPath("ffmpeg\\ffmpeg.exe");
ffmpeg.Start(); // start !
ffmpeg.WaitForExit();
ffmpeg.Close();
string AppPath = Request.PhysicalApplicationPath; //This is the path of your application
//string inputPath = AppPath + "ffmpeg\\myVideo.wmv"; //Source Video Path
string inputPath = AppPath + "uploads\\video.flv";
inputPath = FileUpload1.PostedFile.FileName;
FileUpload1.SaveAs(MapPath("inputfolder/" + FileUpload1.FileName));
string output = FileUpload1.FileName;
string description2 = output;
char[] splitter2 ={ '.' };
string[] split2 = description2.Split(splitter2);
string s22 = split2[0];
string ss2 = s22.Replace(s22, checkCode);
//Response.Write(ss);
string outputPath = AppPath + "outputfolder\\" + ss2 + ".flv"; //Destination Video Path
//string outputPath = AppPath + "outputfolder\\" + FileUpload1.FileName.Split('.')[0] + ".flv"; //Destination Video Path
string fileargs = " -i ";
fileargs += "\"" + inputPath + "\"";
fileargs += " \"" + outputPath + "\""; //Command Line
Process proc = new Process();
proc.StartInfo.FileName = AppPath + "ffmpeg\\ffmpeg.exe"; //Path of FFMPEG
proc.StartInfo.Arguments = fileargs;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = false;
proc.StartInfo.RedirectStandardOutput = true; ;
proc.StartInfo.RedirectStandardError = true;
proc.Start();
System.Threading.Thread.Sleep(1000);
string strErr = proc.StandardError.ReadToEnd();
proc.WaitForExit();
|
|
|
|
|
If i understand correctly there must be some sort of event such as a button click involved here and that resets your Fileupload1 value. So i'd imagine that that is where your problem is coming from.
Try capturing that Fileupload1 value using viewstate and instead of saying:
string output = FileUpload1.FileName;
It will change to:
string output = ViewState["Filename"];
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
I'm trying to access a user controls properties dynamically from within another user control. The user control i'm using is called MultiImageControl and i'm trying to add ImageControl dynamically as well as it's properties. Is this possible?
This is the code i'm using:
public partial class MultiImageControl : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
UserControl mic = new UserControl();
mic = (UserControl)LoadControl("ImageControl.ascx");
Controls.Add(mic);
pnlImage.Controls.Add(mic);
Thanks
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
Hi
When you say Controls.Add it refres to this.Controls.Add and in your code it will be refrered as MultiImageControl.Controls.Add ..... And againg you are adding "mic" to pnlImage object. Whats this "pnlImage" object ??
Thanks,
Arindam D Tewary
|
|
|
|
|
pnlImage is a panel to display the control but i solved the problem thanks. I was being an idiot and wasn't registering the control in my page.
But if you're interested this is what the code looked like in the end:
ImageControl mic = (ImageControl)LoadControl("ImageControl.ascx");
mic.LeadingEdge = "width";
mic.EdgeLength = 120;
mic.ContentAreaId = 7;
mic.LocalGateway = "GatewayPic.aspx";
mic.IDtype1 = 2;
Controls.Add(mic);
pnlImage.Controls.Add(mic);
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
hey .. nice that you have done it by yourself !!!
Thanks,
Arindam D Tewary
|
|
|
|
|
Thanks, though i was being a bit of a moron about it. Big night last night. haha
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
Thanks,
Arindam D Tewary
|
|
|
|
|
Hello All,
I am working on ASP.NET 2008 (C#) and I have to display data in ExcelSheet on IE.
I have some data and thro which I create Excel file in code behind. This excel file has some formulas also.
Now I need to show this Excel file on IE and if any changes made then all the related Formulas must be fired and updated file should be display.
Can someone help me ....
Thanks in advance...
|
|
|
|
|
You're not talking about prompting the user to either open or download the file the typical web way are you?
Because if you are not then you'll want to make a web version of excel... pretty much like spreadsheets on Google Docs... And I bet that is complicated and took *some* time.
Anyhow, I guess you'd have manually render a table, link it to a stylesheet for coloring and such, then attach events or javascript [I'd personally go for AJAX] to cells which contain formulas on the excel file, etc.
Now, processes for reading from/writing to Excel files will vary depending on whether your excel file is 97-2003 version or an OOXML one...
Kazz
"Users are there to click on things, not think. Let the archs do the damn thinking."
|
|
|
|