That would violate just a few security protocols. Just imagine the risks if browsers just allowed websites to upload documents to the server without user input.
droth17
Posts
-
Uploading a file -
How to use reset button in content template (without <form> </form>)I have no problem creating a masterpage that has the form tags and then inside the .aspx having a standard reset button that resets the form fields without a post back. You are going to need to better define what you are looking for because I must not be understanding what you are looking for, and from the lack of responses I must not be alone in my confusion.
<%@ Page Title="" Language="VB" MasterPageFile="~/masterpage.master"
AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Default" %><asp:Content ID="Content1" ContentPlaceHolderID="body" runat="Server">
<asp:TextBox runat="server" ID="tb" />
<input type="reset" value="Reset" title="reset" />
</asp:Content> -
Read binary of .RAW file as imageI don't think you can directly render a raw file as an image in HTML. You are going to need to transform that .RAW file into a .jpg or something else that is readable by a web browser. I would look into possible using the SDK provided by Canon or maybe Nikon. Beyond that, and not knowing anything about the RAW file (each RAW format is different, it isn't standarized from my understanding)
-
How to use reset button in content template (without <form> </form>)javascript
-
Need HelpYou are assuming that the file is in the folder structure. Many, store files out of the folder structure of the website so they can be properly secured on a user to user basis.
-
Displaying User Specific Data (based on user input)Create a log table that has it's keys setup to be the userid and the documentid. When they click on the submit button, loop through the checkboxes and add a value (check for duplicates) into this log table. Then, just run a simple query joining your document table with the log table to get those records that have not been viewed. This is pretty basic coding, so if this is above your head go to the library and get a decent book, there will be many examples on this type of question.
-
Masterpage control updateAfter you capture the event from the Modal window have a public Sub in your user control that you can call that updates the UC. You can either pass the values into the usercontrol or requery the DB, I would just pass the values in if you already know them. It would be something like this in the content page, then the corresponding sub in the User Control
Dim oUC As MyUserControlType = CType(Master.FindControl("UserControlName"), MyUserControlType)
oUC.UpdateMe(NewValue)
-
Changing password using membership providerYou have to have the membership provider configured to allow for reseting of password. This will be in the web.config file under 'membership' you need to make sure your provider is configured with
enablePasswordReset="true"
-
how to preserve the variableDo one of three things and then repopulate the variable when it reloads. 1. Add it to the viewstate 2. Add it to the Session 3. Add it to a hidden form field I usually just do something like this
Public Property VariableID() As Integer
Get
Return ViewState("VariableID")
End Get
Set(ByVal value As Integer)
ViewState("VariableID") = value
End Set
End Property -
loginame controlDim tbUser As TextBox = Login1.FindControl("UserName")
Dim tbPassword As TextBox = Login1.FindControl("Password")You should be able to extrapolate what you want from the above code snippet
-
Moving page from root to folder causing 404 errorGoing to need a little bit more then this to go off of, like some code.
-
problem is dynamic dropdown list control ...Please help!!!I'm not a C# guy, but it sure seems like you call getMLNO on every page_load which then adds in the "Any" item into the dropdownlist which overrides what the user selected. Put that in a If Not Ispostback then (C# equivalent for you) you should be all set.
-
Prevent resending information on refreshI created a new class that my page inherits from that basically adds a session variable and a form field and then tracks the two to see if the user hit the F5 button. There is a article on it here in code project somewhere (I didn't create the original, but modified to fit my needs), I just can't seem to find the link. You could also look at other solutions like. http://aspalliance.com/687_Preventing_Duplicate_Record_Insertion_on_Page_Refresh.4[^] and http://forums.asp.net/t/763984.aspx?PageIndex=2[^]
-
update database through mail on clicking the linkcall a webservice
-
We are planning to make our own websiteLOL
-
Interesting problem - Interaction between controls on a page and controls embeded within a user controlYou need to add the onClick event on the server side. Get the clientID of the control inside the usercontrol using UserControlName.FindControl("TextBoxName").ClientID and then use that for the javascript statement for the onClick handler.
-
Autocomplete textbox in asp.net1.1Take a look at the ajax control toolkit, it should do exactly what you are looking for. http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AutoComplete/AutoComplete.aspx[^]
-
server.tranfer path errorTry Server.Transfer("~/Demo/FrmChecklist.aspx", true);
-
iPod or ZuneThe Instinct is 10x better then the overhyped iPhone.
-
Why is ASP so SLOW?! [modified]I totally disagree with you on this. The programmer ultimately has more control over how a site performs then any other factor. I've seem some very poorly designed PHP sites that were slow, and I've seen poorly designed ASP(X) sites that were slow. I've also seen some wickedly fast php and asp(x) sites that do basically the same thing as the poorly designed sites, they just do it a ton faster and more efficiently. The biggest difference is still the skill level of the programmer, not the language because they are all pretty solid right now. ASP tends to have a ton more entry level programmers, guys who come from a different background then say, Computer Programming. I happen to be one of those guys, I came from an engineering (chemical) background that used to tons of VBA work in Excel and from there transitioned into the web. Some of my first work as an ASP programmer was HORRIBLE, but remember I had no training, etc. I didn't understand the importance of things like garbage collection, caching, etc. My knowledge of DBs consisted of using access, so the concepts of configuring the indexes, etc was completely foreign to me. I don't know of a single php programmer that came from a non computer background. Sure, there are some out there, but on the norm, there are many more non-computer based asp(x) programmers as compared to php. I don't care how fast a language or server is, if the programmer doesn't have a clue and writes horrible code the application will be slow.