Dear Advance,
How to save image from a given textbox text.
Regards,
Kamrul Hassan
huh?
You can't... if you want the client to upload an image use the upload control.... you can't pull a file off the client PC...thank heaven...
Dear Advance,
How to save image from a given textbox text.
Regards,
Kamrul Hassan
huh?
You can't... if you want the client to upload an image use the upload control.... you can't pull a file off the client PC...thank heaven...
sure... I do it all the time. as long as you dont expect the app to USE it, your fine.
I save many of my .net files as txt, its handy.
I want to be able to update some text directly on my site with a layout, and save it in SQL server. I don't see how to do that.
That means I also need a basic editor.
Actually the perfect example of what I am looking for is here when you post a message: basic editor, save and then display.
Thanks !
Hi,
and welcome to the ASP.NET forums.
The text editor that's used on these forums can be downloaded freely here:http://www.freetextbox.com/.
Grz, Kris.
Another popular RTE (rich text editor) isFCKeditor.
HTH,
Ryan
I'm writing an application to load, edit and save xml with a flash7 front-end using .net scripts to write the xml.
Here's the script I'm using to save the xml:
private void Page_Load(object sender, System.EventArgs e){
String fileUrl;
String xmlData;
String returnToFlash;
fileUrl = Request.Form["fileUrl"];
xmlData = Request.Form["xmlData"];
StreamWriter sr = File.CreateText(Server.MapPath(fileUrl));
sr.WriteLine(xmlData);
sr.Close();
returnToFlash = "data=Success";
Response.Write(returnToFlash);
}
It's pretty simple, which is why I'm worried about the possibility of people 'spoofing' it with false data that hasn't come from my flash app.
There is a login script too which will (eventually) check the user credentials against a database to allow access. I was thinking that perhaps I should send these login credentials when saving a file to authenticate the user. Although I'm pretty sure there must be a better way to do it - ideally I don't want users to poll the database more than once per session.
This must be a problem that flash developers face all the time, I just haven't been able to find any articles on the topic (as I don't fully understand what I'm looking for!)
So my question is: What is the best way to secure access to this script without sending a username and password to check a database?
ThanksIt's a scary proposition when you are going to allow files to be uploaded to a web server. You should develop a strategy that allows you to upload files to a directory that only has Write permissions for the ASPNET/Network Service account as you want to prevent anyone from uploading an executable and being able to execute it.
That said, there is alot to security and this situation. I recommend you check out "Improving Web Application Security" and "Building Secure ASP.NET Applications".
I didn't consider the ASPNET/Network Service account permissions. They have already been set for me by hosting company for the directory I'm writing to. Perhaps this is enough?
Thanks for the links, I'll give them a read.
I have a page with a textbox with a OnTextChange property, and two buttons (save and cancel).
In the OnTextChange method I would like to know which button was clicked (save or cancel), and suggestions how to check for that?
- LasseTake a look at a similarpost made couple of days ago
the method-OnTextChange for adding text into the textbox,how can i get the handle of the button,i cant understand your words(ps:sorry for saying this).
may be it can solve by the js