
scalf
Members-
Posts
25 -
Joined
-
Last visited
About scalf
- Birthday 02/04/1964
Personal Information
-
Occupation
Programmer
-
Visual Studio .NET Version
2003
-
.NET Preferred Language
VB .NET
scalf's Achievements
Newbie (1/14)
0
Reputation
-
I got what I was looking for...it can help others ;-) Here is what I did : MyHTMLinputFile.PostedFile.SaveAs("C:\Mypath\Myfile.ext") Of course, C:\Mypath\Myfile.ext" is the path and file ON THE DESTINATION SERVER (I personnaly published the file in a subdirectory of my Inetpub/wwwroot/Mysite) Regards.
-
Security pbs I succeed in getting the value which is in the html input file control but It seems that for security reasons Sharepoint refuses to read the file. Are there solutions to make a local file readable by a server ? NB : I tried to put my file in a shared folder on my computer and to put read rights for All users, but I've always the same FileIOPermission error.
-
It goes but... Thanks, that's more less what I started to do. The problem I have is that the file path which is indicated using an HTML input file textbox is not accepted by Sharepoint Server and it seems that it cannot read the value in it (perhaps for security reasons or maybe because I'm not using the right function). I use MyHtmlInputFile.value (where MyHtmlInputFile is the name of the input file control) to get the path of the file...I've tried to use the Server.MapPath but the webpart components seem to not recognize this type of method...http://www.xtremedotnettalk.com/images/smilies/redface.gif Any ideas ?
-
Hello everybody, Does someone have a piece of code to read an XML file as the one I put in attachment of this post ? I want to import it in a Sharepoint list and I have developped a webpart which creates the list and I'm blocking on the way I can read the file to create the names of columns and get the data of each column. If you want to know what I want to get, read the XML file in Excel. NB : I sent the file in txt so that you can read it first and notice that there is no malicious code in it. Thank you all. file_xml.txt
-
Have you tried Response.redirect("YourPage.aspx") ? You can also set the property of any of your server controls to AutoPostback, it will force the page to refresh when the control is updated... I hope it will help.
-
Yes, for that you need to check IIS to see if anonymous connections are allowed, if so you should disable it and allow only Windows Authentication.
-
No problem identified I had not problem identified (Maybe I didn't understand what you wanted to do, but here is the code and the label displays correctly). Are you sure that the property "CausesValidation" of your button is set to true ? VB code : Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If Not Me.CheckBox1.Checked And Not Me.CheckBox2.Checked Then Me.Label1.Text = "You must Click at least one checkbox !" Else Me.Label1.Text = "Pls wait, request is being processed" End If End Sub
-
OK, it has been solved, I forgot adding "If Not Page.IsPostback" at the beginning of my code :o which made the textbox fields always be reinitialized by the values of database instead of keeping the changed values. Many Thanks to you.
-
Hi, I have a problem on a webform on which I have several textbox fields and a submit server control button. When I display the first time my webform, it reads a database and displays values in the textbox fields. Then the user will have to change the values and click on the submit form and when I do that, the values in the textbox fields have not changed, it saves the values displayed on the first display... :( Does anyone have an idea. NB : I tried with a new webform with only 2 textbox fields and it works, so, it is not a web.config parameter or something like that...I checked the Viewstate enable/disable values and there's nothing special (I kept the default values : enabled). I checked also that the submit button Causes validation (property "CausesValidation" =true).
-
Thank you very much, I thought of that at the beginning but what I find boring with Javascript is the many syntaxes for the different objects of the form...For exemple, I'm trying for the moment to read the value of two radio buttons to see if they are checked or not. I succeeded for the first radio button, but with the same syntax, on the second radio button, it doesn't work... this is the syntax I use : if(document.forms[0].myRadioBtn1[0].checked ==false) { some code.. } If it works for one, it should work for the other button, but unfortunatly...it doesn't work :(
-
Hello, I'm looking for a message Box which I could use in both Internet Explorer and Mozilla to help me display error messages of Validator controls in both types of browser. In fact the ShowMessageBox property of the ValidationSummary control works fine with I.E but not with Mozilla Browsers... If someone has an idea. NB : If necessary, VB samples are welcome.
-
Thanks a lot, and sorry for not having given details on what I meant by "Secure", in fact I was refering to data encryption which prevents data to be intercepted accross the network and I forgot that SSL encryption was the easiest and much secure way to do the job. I'll be using HTTPS. Thanks a lot for your replies.
-
Hi, I'd like to know how I could easily secure the information a user is filling in a webform. If someone can give me an easy way to do it, it would be nice. Many thanks. NB : VB .NET code should be appreciated.
-
OK many thanks, here is the aspx page and .vb code. Sorry, the variables and functions have French names...I hope it will not be a problem. Many thanks for all of you!!!
-
No, removing the line btnModify = CType(ucLayout.FindControl("btnModify"), Button) does not change anything... Any other idea ? Many thanks. NB : Can it be the Framework 1.1 version which is bugging ?