Jump to content

aspnetguy

Members
  • Posts

    6,787
  • Joined

  • Last visited

Everything posted by aspnetguy

  1. aspnetguy

    uploading file

    ok so it is not a file system permission issue, it must be an IIS permissions issue.Are you familiar with the IIS manager interface? If so make sure your application has read and write permissions.If your not follow these instructionsopen iis manger (control panel/administrative tools/internet information services)expand the websites node.right click your website and choose propertiesgo to the Home directory tab and make sure Read and Write are checked.
  2. no replace "query" with your query "Select subject_id from tutor where tutor_id = '"& lbluser.text &"' "
  3. aspnetguy

    uploading file

    did you try it for "Everyone" ?
  4. instead do the following Dim mycommand As SqlCommand = new SqlCommand("query",myConnection)myConnection.Open()Dim dr As SqlDataReader = mycommand.ExecuteReader()While dr.Read lblsubject_id.Text = dr.Item("ColumnName")End Whiledr.Close()myConnection.Close()
  5. aspnetguy

    uploading file

    okay so you applied that tot he "files" folder? Try checking the "Full Control" option for ASPNET. If that doesn't work apply "Full Control" tot he Everyone account for that folder. This is not recommended as it leaves your system open but we will do it just to see if the error is indeed permissions releated.
  6. try this <html><head> <title></title> <script> //clickable item ids var items = ["item0","item1"]; //function to open and close items function toggle() { //get item var item = this.parentNode; //note: this = anchor from attachEvents //get subitem var subitem = document.getElementById(item.id + "sub"); //toggle subitem if(subitem.style.display == "none") //closed //open it subitem.style.display = "block"; else //open //close it subitem.style.display = "none"; //prevent anchor from following href return false; } //function to attach events function attachEvents() { for(i=0;i<items.length;i++) { //get next item var item = document.getElementById(items[i]); //get item anchor var anchor = item.childNodes[0]; //attach onclick event anchor.onclick = toggle; } } //initial setup function init() { //hide all sub items for(i=0;i<items.length;i++) { //get next item var item = document.getElementById(items[i]); //get subitem var subitem = document.getElementById(item.id + "sub"); //hide subitem subitem.style.display = "none"; //indent subitem subitem.style.paddingLeft = "10px"; } } </script></head><body> <div id="menu"> <div id="item0"><a href="#">Item 0</a></div> <div id="item0sub"> <div id="item00"><a href="#">Item 0.0</a></div> <div id="item01"><a href="#">Item 0.1</a></div> <div id="item02"><a href="#">Item 0.2</a></div> </div> <div id="item1"><a href="#">Item 1</a></div> <div id="item1sub"> <div id="item10"><a href="#">Item 1.0</a></div> <div id="item11"><a href="#">Item 1.1</a></div> <div id="item12"><a href="#">Item 1.2</a></div> </div> </div> <script> init(); attachEvents(); </script></body></html>
  7. what exactly is his position? It seems to change with every reply he makes.
  8. aspnetguy

    uploading file

    The default setting for the file system is "simple" file sharing. This does not show the security tab. Follow the article below to disable simple file sharing and the security tab will be visible.http://support.microsoft.com/kb/307874
  9. http://www.treeview.net/
  10. aspnetguy

    uploading file

    then use the instructions as is.
  11. aspnetguy

    uploading file

    I'll assume you are using Windows XP. If you are using Windows Server 2003 replace ASPNET with NETWORK SERVICE in the instructions below.Right click the target folder and choose Properties.Switch tot eh Security tab.If the ASPNET user is not shown in the list, add it.Click on the ASPNET user account and make sure that the Modify option is checked.
  12. marquee was never valid, it started as an IE only tag that Netscape picked up. No W3C spec has ever supported it.You would have to use javascript.The are plenty of examples on http://www.dynamicdrive.com
  13. aspnetguy

    uploading file

    do this so we can get the real error message Sub Upload_Click(source As Object, e As EventArgs)Dim savePath As String = "C:\Inetpub\wwwroot\tution\files"TryDim postedFile = uploadedFile.PostedFileDim filename As String = System.IO.Path.GetFileName(postedFile.FileName)Dim contentType As String = postedFile.ContentTypeDim contentLength As Integer = postedFile.ContentLengthpostedFile.SaveAs(savePath)message.Text = "uploaded"Catch exc As Exceptionmessage.Text = "uploade failed<br/><br/>" & exc.MessageEnd TryEnd Sub It is probably because the ASP.NET worker account does not have permission to write to the target folder.
  14. look into <asp:Literal> instead of <asp:label>.Literals let you push code to the client at runtime.http://www.startvbdotnet.com/aspsite/controls/label.aspx
  15. His strategy seems to be to throw out foolish and unrelated statements when someone disagrees or opposes his claims which only re-enforces how little he knows about what he is talking about.
  16. I don't know anyother way around it.Sometimes that is event he case in C#...some errors are not revealed until I fix other errors.
  17. looking good. Auto reporting errors is a huge improvement.
  18. Wow that is a good deal. If he already has a subscription you might as well use it if you can. Those books aren't downloadable are they j/k Thanks.
  19. I can't stop laughing long enough to reply...If you have been in this industry so long then where have you been? Locked i n a basement? Web standards is at the core of designing for the web. A design noob knows this from the simple fact that their page looks different in different browsers.So how old are you, how long have you been programming? More than 25 years? Because to make your statement about having more experience than we are old would require you to be at least 40-45 and have 25+ years experience.I am 25 and have 7 years experience. I don't know everything but it is obvious I know far more about standards and designing and marketing than you do and I know enough to realize you are a complete joke.Why don't you go join a cooking forum or some other group that know nothing about programming or web standards, you might actually convince some of them about your ridiculous claims.
  20. I posted the code on my blog aswell so if you find any bugs or have an suggestions please post them there also. http://www.aspnetguy.com/blog/index.php/20...lelement-in-ie/Thanks
  21. programming books where I live are $50 - $80 so there is no way I would pay that much. In college we would by 4-6 books per semester and it would always be $300 - $400.
  22. well, if I was the best the JS world had then we would be in trouble :D

    I look up to guys like jackslocum.com and dean.edwards.name

  23. O'Rielly always has good books. However, I have not bought or read any programming books (except for some in college) and have learned everything online and for free.
  24. start here http://www.javascriptkit.com/javatutors/oopjs.shtmlkeep in mind: var obj = new Object();obj.name = "myObject";obj.eat = function(){alert(this.name + " is eating!")} is the same as var obj = { name: "myObject", eat: function(){alert(this.name + " is eating!")}} and var arr = newArray();arr[0] = "one";arr[1] = "two"; is the same as var arr = ["one","two"];
×
×
  • Create New...