I want to make a website that has many files and the user can use it to download the files. Also, the admin can upload any file. How I can save the files so the file will be exist when the user download it and where I can put the file when the admin upload it?
I am working on ASP.NET 2.0, I have a list of books Name in my master table, while entering new book name in Textbox I want to display the book names starting with those initial characters. How to achieve this.AJAX, silver light.Etc.google like feature..
I'm populating a generic list from an excel file that contains names of pdf files. Now I want to take each item in the list and create a file from it. Here's what I have so far:
[Code]....
So now, the list called lines contains names of 900 pdf files. How would I take those names out of the list and create files from them?
i would like to be able to do is to, lets say i have 10 users running a web application , how can i get the names of all these users. There names , logon times and any other info availabel.
i would like to get this data into a dataset and just bind to a gridview .
I'm building an app that allows multiple file upload (trying to use the script from here: [URL] This upload will be a pop up from an html page. My question is how to pass the file name(s) to the parent page? I want to submit those names as hidden inputs from the html page.
Given a set of uploaded files in Request.Files, how do figure out which form field yielded which file?
I have a generic form emailer that various forms post to. This file generates an email of the name/value pairs contained in the form post. I'm trying to add support for uploaded files such that the table of name/value pairs will show the name of the file upload element and the name that the file was saved as.
However, I can't figure out how to link that information together. HttpPostedFile doesn't contain any information about the HTTP request (like which field name was used), and Request.Form doesn't contain any entries for uploaded files.
So while I can easily upload the files, I don't have an easy way to generate an email saying "this uploaded file was for this field, and this uploaded file was for that field".
how to get the names of excel files opened on the Client machine and populate it in a ListBox? If somebody did it please reply to this or give some pointers / web site links to me, so that i will read and try to use for building my code.
i need to prepare a report as a table. but my table needs to contain data from two schemas. so my doubt is, is it possible to set two dataset names for a table in its property?
I want to implement an image gallery in asp.net/C#. I am using sql server 2008, visual studio 2010 and .NET 4.0.
I have made a webpage and now want to display 6 images as thumbnails (and their names just below the thumbnails) at the center of the page. The format of the display is something like this:
[Code]....
Basic operation is like this:
I pull images from a database and then display them as above as thumbnails. The 1 2 3 Next> are links depending on whether there are more than 6 images pulled from the DB. So basically the numbering 1 2 3 4 Next> is dynamic depending on how many images exist. Can anyone give me a basic overview of how this an be achieved? Should I be using a asp:Repeater or a asp:DataList for this kind of a display?
I have a gridview that I am loading from a stored procedure. I need to be able to hide certain columns and change the column names. Since it is loading with stored procedure the columns aren't listed in the gridview->edit columns properties.
I have a site that allow the user to request a secret report in a pdf format. My idea is to put the generated pdf files in a public folder with disabled directory browsing. Each file name consists of 128 characters that are uniquely and cryptographically generated. The legitimate user will be given the link of his/her own report.
I have heard that saving connection strings and stored procedure names in web.config file of our application is not safe. It is a good practice to store the connection string in a config file rather than as a hard coded string in our code and if we need to change it,then it makes our job easier. how to protect our code in web.config?
I am not sure this is the forums but I dont know where to write this and this is an EMERGENCY ::I had windows 2003 server. on C: and I have installed windows 2008 server.I had SQL server installed and all of the database files stored inside c:program filessql server....PROBLEM is that after I installed 2008 server I can see 2 folders of program files one for x86 and the other for 64 bits.
I have an application through which sers make Requests, and the people who fulfill those requests can accept them, fulfill them, etc.When a Request has been submitted, the technician looks it over and if it's complete decides on whether or not to Accept it, which means he will now be assigned to it and working it.
I used the script where the image array has static images.I want to convert it dynamically by finding my images names from index.aspx.cs files which are stored in hidden fields.
I want to split this hidden filed and assign it to imagearray.how can i do this
var mygallery2=new fadeSlideShow({ wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow dimensions: [568, 313], //width/height of gallery in pixels. Should reflect dimensions of largest image imagearray: [ ["images/1.jpg", "", "", ""], ["images/2.jpg", "", "", ""], ["images/3.jpg"], ["images/4.jpg", "", "", ""] //<--no trailing comma after very last image element! ], displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false}, persist: false, //remember last viewed slide and recall within same session? fadeduration: 500, //transition duration (milliseconds) descreveal: "always", togglerid: "fadeshow2toggler" })
My goal is to create some Excel reports that users can download from my asp.net site. The data for the reports will come from an SQL database. I am using Visual Studio 2010 and the reports will be for Excel 2007.
I'm sure this will need to use javascript but not sure exactly how to do it. I need to count the characters typed in a textbox and when it reaches 10 I want a sub to be called in the code. Or have it click a button on the screen which is probably easier. How to do this? I would think I would call the script with the OnTextChanged? And in the script use the .length property to see if it is 10? Maybe I just answered my question here!!
I wrote a small .NET applications that removes all line breaks in aspx/html/css code to make it harder to read for people trying to steal my design. And surprisingly I get weird characters that appear out of nowhere such as Â, » and others. They all stay at the same places, but I have no clue why they appear.
I am generating an image using handler and showing that image on image control. Now I want to download same image which is generated using handler. In my handler, I am passing imagepath and one querystring and retrieving some data from database and watermark that content to my image. How to download that same image.
how to limit the number of characters per line in a multiline textbox? Any posibility to do this with javascript? I have the users enter a list of names and need to limit each. I hate to use another textbox to add each name. If so, I would then add them to a listbox instead so they could select and remove a name.