yaniv Posted December 12, 2002 Posted December 12, 2002 i"m totaly new in the asp. i tryed to build simple app. that show text, one button and changes the text by pressing it. when i move from desigh mode to the browser i can't see the button and the text is in the upper left corner insted of in the middle. i cheked and i cant see any other controler in the browse mode, just the one's i takefrom the "html tag". what do i do wrong? Quote
Moderators Robby Posted December 12, 2002 Moderators Posted December 12, 2002 you asked the same question on EVBF, is this ASP.NET or regular ASP (old)? Quote Visit...Bassic Software
Moderators Robby Posted December 12, 2002 Moderators Posted December 12, 2002 originally posted by yaniv even with no code, i can't even see the button. i just tryed this: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click text1.text = "wow" End Sub butas i said, the browser window is just empty (with the "hello" text in the upper left. Quote Visit...Bassic Software
Moderators Robby Posted December 12, 2002 Moderators Posted December 12, 2002 are you adding the Text box at design time or run time? when you do text1.text = "wow", does it appear on the page? Quote Visit...Bassic Software
yaniv Posted December 13, 2002 Author Posted December 13, 2002 I asked the question in EVBF and then discoverd the new forum for the .NET. I"m building the controlers in desigh mode, and when i press the "build and browse" command, i can't see the button in the browser, and the text is in upper left corner. Quote
Moderators Robby Posted December 13, 2002 Moderators Posted December 13, 2002 Instead of Build and Browse, hit the F5 key. Is the button a WebControl or an HTML button? Quote Visit...Bassic Software
yaniv Posted December 13, 2002 Author Posted December 13, 2002 I tryed to hit f5 and got the same result. it is WebControl. HTML control i can see and press. Quote
Moderators Robby Posted December 13, 2002 Moderators Posted December 13, 2002 If your project is not too large, can you zip it and post it here, because I can't see why a control placed at design time is not rendering. Quote Visit...Bassic Software
yaniv Posted December 14, 2002 Author Posted December 14, 2002 the project even unzip it isn't too big: there is two forms, one include the web control (which i can't see in my browser) and one include the HTML control (which i can)picturealbum.zip Quote
*Experts* Bucky Posted December 14, 2002 *Experts* Posted December 14, 2002 You need to include the ASP.NET pages (.aspx) and the code- behind pages (.aspx.vb, if you are using them) in the zip file, not just the Solution file. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Moderators Robby Posted December 14, 2002 Moderators Posted December 14, 2002 It's probably because the Solution gets saved (by default) to My Projects, I always prfer to save the solution with the rest of the files in the wwwroot. It make it more portable. Just a piece of advice to all. Quote Visit...Bassic Software
yaniv Posted December 14, 2002 Author Posted December 14, 2002 may be the reason i can't open the file is that the solution saved in "my projects" and the pages in wwwroot? how ever, i don't know how to save the .sln file in another place!! could't find the way to do it! (does't the forms should be part of the project?) Quote
Moderators Robby Posted December 14, 2002 Moderators Posted December 14, 2002 You should have a folder in the wwwroot called picturealbum (probably). Everything you need is in that folder, that's the folder to zip. Quote Visit...Bassic Software
yaniv Posted December 15, 2002 Author Posted December 15, 2002 o.k. here it is,picturealbum.zip Quote
Moderators Robby Posted December 15, 2002 Moderators Posted December 15, 2002 You main problem may be in the picturealbum.vbproj.webinfo file. the URL is "http://yaniv2/shoresh/picturealbum/picturealbum.vbproj" and it should be "http://localhost/picturealbum/picturealbum.vbproj". Let me know if this works for you...testwebpage.zip Quote Visit...Bassic Software
yaniv Posted December 15, 2002 Author Posted December 15, 2002 I think i have great problem in understanding where i dhould locata the files. i opened your attachment to "wwwroot", andwhen i trying to open the files i get error massege: "the default web access modefor this project is set to file share, but the folder at 'http://localhost/TestWebPage" cannot be opened with the path "c:\inetpub\wwwroot\TestWebPage". the truth is i can't understand what he want... Quote
Moderators Robby Posted December 15, 2002 Moderators Posted December 15, 2002 open picturealbum.vbproj.webinfo from your project and this file TestWebPage.vbproj.webinfo from my project... Open both in Notepad.... what is the URL in each? paste them here. Quote Visit...Bassic Software
yaniv Posted December 15, 2002 Author Posted December 15, 2002 in my: <Web URLPath = "http://yaniv2/shoresh/picturealbum.vbproj" /> in yours: <Web URLPath = "http://localhost/TestWebPage/TestWebPage.vbproj" /> i tryed to change the path in my proj. (deleted the "yaniv2" and change it to "localhost") i got error massege "you are not alowed to open this file" i" realy frustrated! Quote
Moderators Robby Posted December 15, 2002 Moderators Posted December 15, 2002 You got the error message because you had the project already open in .NET, close .NET and try again. Do you get an error message when opening your project? If not, then change mine to "http://yaniv2/shoresh/TestWebPage.vbproj" Quote Visit...Bassic Software
yaniv Posted December 16, 2002 Author Posted December 16, 2002 i can't make it work. i tryed to double click the webform and what i got is that the .NET opened in desigh mode with a HTML code. do you think the problem might be in my ISS properties? i tryed to conect another computer and open the file via his browser and didn't got anything. "yaniv2" is my comuter name. Quote
yaniv Posted December 16, 2002 Author Posted December 16, 2002 I have a new post. i downloaded the samles from msdn (that divil recomended), and tryed to run the "how to build web app." in that pros. sample too, i can see only the text and can't see any of the buttons!! the page is just empty! can it be a problem with my browser ( i use winXP)? Quote
Moderators Robby Posted December 16, 2002 Moderators Posted December 16, 2002 Do you open your projects from the SLN file (Solution)? Quote Visit...Bassic Software
Moderators Robby Posted December 16, 2002 Moderators Posted December 16, 2002 Do you get any errors while the Solution is loading into the .NET envirnoment? Does the IIS start with your solution? Quote Visit...Bassic Software
yaniv Posted December 16, 2002 Author Posted December 16, 2002 i don't get any errors. how can i check if the iis starting (if it should open window, it doesn't) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.