please give me the code.
input file:
#box8 {
position:absolute;
}
#box8 .buttons {
text-align:left;
}
output file should be like this:
headers:#box8
#box8
Items:position:absolute;
text-align:left;
Hello,
I have a string in C#
String file="\\mserver-80\docs\somedoc.doc"
Now How do I get fileInfo from the above sting.
What I mean is,
I want to declare something like
FileInfo fInfo = new FileInfo(file);
fileExtn = fInfo.Extension;
public string ContructOrganizationNameLogo(HttpPostedFileBase upload, string OrganizationName, int OrganizationID,string LangName)
{
var UploadedfileName = Path.GetFileName(upload.FileName);
string type = upload.ContentType;
}
I want to get the extension of the file to dynamically generate the name of the file.One way i will use to split the type. but can i use HttpPostedFileBase object to get the extension in the clean way?
I have an old redhat 8 box that I need to pragmatically send files to my webserver from. Disregarding the security issues with this, I've come up with the following way.
curl -F file=@<filename> http://webhost/reciever.aspx
The problem is, no matter what I try, the ASP.NET page is not accepting the file. What am I doing wrong?
Hello Guys
I am creating a website where users will be able to chat and send files to one another through a browser. I am using GWT for the UI and hibernate with gilead to connect to a mysql database backend.
What would be the best strategy to use so Users can interact together?
I don't know if this is possible but, I have a class and I'v made an instance of it. I also put things in it. It has vectors and other things. I was wondering if I could save its contents (the instance) to a binary file, then reload it and cast it in from the file. Thanks
Hi All,
I am planning to use Apache lucense in one of my projects, I want to index files based on the file properties (I won’t be indexing the data) and I want lucense to query the index so that I can quickly find list of files to based on the properties .
E.g: give me all the files with access time greater than 10/10/2005 and access time less than 10/04/2010 and file created by james.
Can i use Lucene for these kind of projects ? or i better of using windows search (the foor print is very heavy almost 5 MB :( ) and i have to bundling this as part of my application is seems to tough.
Can you please suggest is there any better alternatives here?
I want to wrap a existing msi installer file into NSIS installer executable. Because there is not any option to change the icon of the msi file. I just want to customize the icon of the output setup.exe. Along with this I would also want to make sure that NSIS does not add any extra user interface into my installer. Have anybody an idea to do this ? Thanks in advance.
Is there a not so ugly way of treat the close() exception to close both streams then:
InputStream in = new FileInputStream(inputFileName);
OutputStream out = new FileOutputStream(outputFileName);
try {
copy(in, out);
} finally {
try {
in.close();
} catch (Exception e) {
try {
// event if in.close fails, need to close the out
out.close();
} catch (Exception e2) {}
throw e; // and throw the 'in' exception
}
out.close();
}
hi,
i have an export sql file containing tables and data from mysql and i want to import it into a sqlite 3 db.
please can you tell me the best way?
i get error reading file in via sqlite3 binary.
When a test project is craeted two other files are also created.
Suppose My Project Name is TestProject1:
Folder: TestProject1,
LocalTestRun.testrunconfig,
TestProject1.sln,
TestProject1.suo,
TestProject1.vsmdi
And one more folder named: TestResults
My requirement is i have many project and folders in solution and wanted to move the .vsmdi file and .tesrunconfig file and testrun folder to my specified location.
Can i do this, if yes how can i do it.
How do i write a loop in ruby so that I can execute a block of code on each file?
I'm new to ruby, and I've concluded that the way to do this is a do each loop.
The ruby file will be executed from a different directory than the directory I want to loop through.
I've tried the Dir.foreach and I couldn't get it to work.
I have a small database with tables containing a small amount of data which I need to copy into memory.
Currently I am using:
insertcommand.CommandText = "SELECT sql FROM sqlite_master WHERE sql NOT NULL;";
To pull all the table schema from the file database, however I'm not really sure how to proceed with creating these tables in the new memory database, and copying all the relevant data across.
In short, how do I copy an SQLite database from file to memory using C# and System.Data.SQLite?
Hi,
I have file upload UI element in which the user will upload images. Here I have to validate the height and width of the image in client side. Is it possible to find the size of the image having only the file path in JS?
Note: If No, is there any other way to find the dimensions in Client side?
Have done quite a bit of searching for a guide (of any substance) for the above to no avail. Can anyone refer me to one?
In the present tense however, I am trying to understand the below code example, which returns a two digit representation of the month, that corresponds to the 3 character month name set in v:
SET v=May
SET map=Jan-01;Feb-02;Mar-03;Apr-04;May-05;Jun-06;Jul-07;Aug-08;Sep-09;Oct-10;Nov-11;Dec-12
CALL SET v=%%map:*%v%-=%%
SET v=%v:;=&rem.%
ECHO.%v%
Hi All,
I want an Open File Dialog with *.class ,*.jar filters.
I want that *.jar files will be treated as folders (pressing OK or double-click should display the jar file content [ *.class] ). This capability is very similar to the TotalCommander archive plugin that let you browse inside archive files in-place (without the need to extract them, etc...)
Any ideas how it could be done? Can I use something that is already implemented?
Thanks,
Guy
ok im trying to upload this csv file onto my table in pgsql
but im getting this error
ERROR: invalid input syntax for integer: "mlname,mfname,slname,sfname,address,postalcode,membershiptype,hphone,email"
CONTEXT: COPY members2, line 1, column id: "mlname,mfname,slname,sfname,address,postalcode,membershiptype,hphone,email"
i really understand why im getting this error, both my table and my csv file have the same column names
Can someone teach me or give me a link for my problem?
I wanted to cutomize my form "file" -- for uploading.
How can I customize it?
.classfile {
css codes....
}
<input type="file" name="name" class="classfile" /
If I do that way the text box and button of form will be affected. What is the other way to customize that?
I'm looking for an image hosting website that'll allow me to upload images onto their servers from my own website using an API. I like Imgur.com's API but I'm looking for alternatives.
Hello,
the title says it all. I have seen some similar questions on SO like this or this, but either i have overlooked something or my requirement is different, neither works.
My situation is following:
i have a Masterpage
one of its contentpage is called MasterData.aspx
MasterData has an asp.net ajax tabcontainer control with one usercontrol in every tabpanel
these usercontrols(f.e. MD_Customer.ascx)hold the main content(like a normal page)
they all have GridViews in it and i want to provide an Excel-Export-Button
What i've tried is is to use an iframe like here. But the function that adds the iframe to the document gets never called and therefore i never see the save-as-dialog. Maybe this is caused by using a MasterPage.
Does somebody has an idea on how to provide a button in an UpdatePanel that causes an async postback, so that i can generate a CSV dynamically in codebehind and write it to the response?
Thank you in advance.
aspx-markup:
<asp:UpdatePanel ID="UpdGridInfo" runat="server" >
<ContentTemplate>
<asp:Label ID="LblInfo" Font-Underline="false" runat="server" CssClass="content" ></asp:Label>
<asp:ImageButton ToolTip="export to Excel" style="vertical-align:bottom" ID="BtnExcelExport" ImageUrl="~/images/excel2007logo.png" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
and the BtnExportExcel codebehind handler(of course it cannot work to write the csv to the response of this page):
Private Sub BtnExcelExport_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles BtnExcelExport.Click
Dim csv As String = tableToCsv(DirectCast(Me.GridSource, DataTable))
Response.AddHeader("Content-disposition", "attachment; filename=RuleConfigurationFile.csv")
Response.ContentType = "application/octet-stream"
Response.Write(csv)
Response.End()
End Sub
hello,
I am using fortran 90
I have defined a fortran module in fileA.f as:
module getArr
double precision a(100)
end module getArr
The same fileA.f contains a subroutine that uses this module
subroutine my_sub
use getArr
implicit none
getArr%a(1) = 10.5
end subroutine
In fileB.f, I have a fortrtan function. I am trying to access the value of getArr%a(1) as:
double precision function my_func(R)
use getArr
double precision x
x = getArr%a(1)
return
end
But I am getting errors at the compile time. It says it is unable to access the module getArr.
How should I declare it??
Thanks
How to store the file which is uploaded by the user to the database ? I want to store the file in the database how can we do that ? In the back-end I am using sql with c#.net application.
I was thinking about making a little crop/resize batch processor online, and wanted to know if there was a way for me to do the following:
upload image and specify dimensions
click "process" and app resizes image
image downloads automatically to wherever it was I uploaded it (say from my desktop), but with a new name (based on the time for example).
This would make it so I could host a free image processor that never stored any data other than tempfiles.
Is that possible? Something like Rails' send_file method, but I'm using Sinatra and am looking for something in pure ruby.
Hi,
I'm using linq to sql. I have a table in dbml file that some of its fields can be generate dynamically (at run time). Is there any way to add fields to a table dynamiccaly , or add a class to dbml file dynamically?
Thank you,
Naseem
Hi All
There is this 3rd party webservice. One of the public webmethods available is a GetDocument() method. This method returns a Document object. The Document object has properties for File(byte[]), ContentType(string) ect.
My Question : Can I subscribe to this service using javascript(mootools) + ajax + JSON, return the document object, in this case an excel document, and force the file download?