|
Hi All,
I have a download now button on aspx page, by clicking it need to prompt user to save the file which a movie file at server.
i am using following code....
string path = Server.MapPath("Movie/movie.zip");
System.IO.FileInfo file = new System.IO.FileInfo(path);
if (file.Exists)
{
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
Response.AddHeader("Content-Length", file.Length.ToString());
Response.ContentType = "application/zip";
Response.WriteFile(file.FullName);
Response.End();
}
this code is working fine in local system...but giving problem when i upload it in to my hosting server.
Please help me regrading this.
Pradeep Reddy
|
|
|
|
|
when u load movie on hosting server. which folder store this movie. full security of conrol that folder.
|
|
|
|
|
Hi,
How to make my asp.net 2.0 web application screen resolution independent?
I used 1024 * 768 resolution in my development PC and when i deploy, all vista users are facing problem with the screen resolution. Whole alignment of my project is disturbed.
Please help me...
|
|
|
|
|
mention sizes in percentages instead of mentioning sizes in px
Pradeep Reddy
|
|
|
|
|
Hi,
I checked out this asp.net forum:
http://forums.asp.net/p/969928/1219973.aspx#1219973[^]
However, there are lots of threads in it and as many suggestions on how to implement this. I got to know that overriding the InitializeCulture() won't work with Master Pages cause they do not inherit Page class.
Could anybody share their experience with this matter?
Regards,
blumen
|
|
|
|
|
when i run in webpage two parameters of in text boxes are displayed instead of result can any one please guide me where is problem in my code?? or is there any other way to do it????
ReportDocument reportDocument = new ReportDocument();
ParameterField paramField = new ParameterField();
ParameterFields paramFields = new ParameterFields();
ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();
reportDocument.Load(Server.MapPath("../Reports/rptAC05.rpt"));
reportDocument.SetDatabaseLogon("sa", "softconsult");
---------------------------------------
paramField.Name = "@dBegDate";
paramDiscreteValue.Value = Request.QueryString["datefrom"];
paramField.CurrentValues.Add(paramDiscreteValue);
paramFields.Add(paramField);
-------------------------------------------
paramField = new ParameterField();
paramDiscreteValue = new ParameterDiscreteValue();
paramField.Name = "@sBranchCode";
paramDiscreteValue.Value = pBranchCode;
paramField.CurrentValues.Add(paramDiscreteValue);
paramFields.Add(paramField);
this.CrystalReportViewer1.ParameterFieldInfo = paramFields;
this.CrystalReportViewer1.ReportSource = reportDocument;
umerumerumer
|
|
|
|
|
hi i want to run the commandprompt form asp.net webapp for the button click event..there i want to run a command ..i wil get this command from asp.net app............how can i do this ?
|
|
|
|
|
beklo.com/rameshgoudd wrote: hi i want to run the commandprompt form asp.net webapp for the button click event
You can start a process which open command prompt, but it will be open in server. Is that what you want ?
|
|
|
|
|
hi..how can i pass the command to commandprompt and how can i execute those programatically
|
|
|
|
|
Is it possible to host .NET applications in MAC O/S?.
|
|
|
|
|
Hi all,
I have migrated my Asp.net1.1 application to Asp.net 3.5(VS 2008)...After migration Crystal reports are not working....
It is giving an error like "Unable to find the report in the manifest resources"....
I searched in Google and i got a solution tht thy have told to open that report in VS 2008 and save it....(while doing this it asked for upgrade and i gave ok)....but still it is the same...
pls somebody help me to solve this issue.....
Thanks in advance....
|
|
|
|
|
Hi all
i have build a autocomplete textbox control that works on keyup event in javascript. everytime a keyup is called , a request is send back to server and the suggestion are displayed in div below the textbox.
when enter is pressed,selected value comes in textbox. Now the problem is when i pressed enter button event is called. and the list disapears.
To solve this i set it to on keydown event. but the keydown is called twice, i dont why. even when keydown is pressed i dint get the typed word.
Could anyone tell the solution of this one.
Thanks in advance.
Jagwinder Singh
Er. Jagwinder Singh
|
|
|
|
|
Hi
i am using update panel in which there is a file upload control
but this file upload control is not working in update panel
error which i am getting "object reference is not set"
how con i resolve this issue please help me
krishna veer singh
|
|
|
|
|
krishnaveer wrote: error which i am getting "object reference is not set"
Can you show the code you are using? More than likely, you are missing a new somewheres.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
If FileUpload_Con.PostedFile.FileName <> Nothing Then
files = Path.GetFileName(FileUpload_Con.PostedFile.FileName)
FileUpload_Con.SaveAs(Server.MapPath("Logo_Image/" & Path.GetFileName(FileUpload_Con.PostedFile.FileName) & ""))
this is my code
krishna veer singh
|
|
|
|
|
I suspect File upload control will not work in UpdatePanel. You need to run that outside of UpdatePanel or have that upload alone happening in a new popup window or IFrame.
K.P.Kannan
|
|
|
|
|
File Upload Control will not work with in Update Panel.
If you want File Upload Control with in Update Panel then you need to set
asp:PostBackTrigger to Update Panel..
<asp:updatepanel id="UpdatePanel1" runat="server" xmlns:asp="#unknown">
<contenttemplate>
...
<triggers> <asp:postbacktrigger controlid="btnImgUpload">
<triggers><asp:updatepane>
|
|
|
|
|
Hi, I tried publishing my website via the publish option when I right click my web app, it only created the PrecompiledWeb folder... And i dont know what it does, it just contained my files and a new dll file. What is this for??
Anyway,
I also tried doing the Web application setup but there was an error. I just installed IIS so that my Setup.exe can run.. It says the installation is incomplete..
Can anyone help me on how to deploy or create a setup for Web Application? Thanks!
|
|
|
|
|
when we publish a website,it creates dll for all the layers and C# paghes.In UI layer it keeps the aspx pages that are linked with dlls.After publishing you need to do just deploy it at IIS.Create a virtual directory for it.
if you want ot make a setup you can do all this by C#(ie creating virtual directory and setting the properties.
Cheers!!
Brij
modified on Wednesday, November 12, 2008 12:22 AM
|
|
|
|
|
graced88 wrote: it just contained my files and a new dll file. What is this for??
When you deploy you website with precompiled option, your .cs files will be compilled into dll's. ASPX files will have a reference to this DLL's. Are you not seeing any ASPX files inside that directory? Then probably you are doing something wrong. Check this[^]
|
|
|
|
|
Hmm ok.. stupid question, how will i put it in my IIS?...
My PrecompiledWeb folder has my aspx files and the bin folder which has the dll.
I need the Web Setup Application for this, right?
I would like to have a Setup.exe for this so that I can run my Web Application installed on other PCs..
But when I try to add a project output, the only selection is "Content Files".
|
|
|
|
|
hi i was wondering what is the best way to send data in my case, from an html table to the code behind.the data of the table is added dynamically and when user press on the submit button i need to get the data in c# code behind. i dont want to use gridview at this case. my thinking was building a string that will hold all of the table data and then using ajax or hidden field to get it in the code behind. is it the best way to do that? is there a way to pass objects from js to code behind?
thank u in advance..
j
|
|
|
|
|
For sending data to Code behind,AJAX is better.By the way all depends on the size of data,if size is small,hidden field is better option.
Cheers!!
Brij
|
|
|
|
|
|
1) I'm just working on a website, and the images simple don't display in the Visual Web Designer. They just appear like broken links.
However when I run the page it successfully finds all the images and displays everything correctly.
I'm using a basic tag.
eg
<img src="images/pixi_clear.gif" width="517" height="30"></img>
2) Lets say someone helps me out and tells me how to get the images to display, should the 'width and height' aspects of this be unneccessary as they're built into the image?
|
|
|
|