Ava231279 Posted February 4, 2004 Posted February 4, 2004 Maybe i'm doing something very wrong but... I'm just beginning with ASP.NET and i did 2 beginners tutorials but in both cases it doesn't excecute my vb code. Here's an example: <% Dim I As Integer For I = 0 to 7 %> <font size="<%=I%>"> Welcome to ASP.NET </font> <br> <% Next %> It should say Welcome to ASP.NET 7 times with an increasing font size each time but in my case it just says Welcome to ASP.NET 1 time in a standard font size. Quote
fadi Posted February 4, 2004 Posted February 4, 2004 this code u r writing is just asp.net code by name, but ur working the asp way put a label on the webform and in the code behind write a loop to increase the size of the font i.e seperate ur html code from ur vb code Quote
bungpeng Posted February 4, 2004 Posted February 4, 2004 If you are using VS.NET, normally we use code-behind. If you want to put together your server side source with your html source, then you can try to remove the first line of your aspx. (hope I am not wrong, I assume you face the same problem as me in last time) Quote
Ava231279 Posted February 4, 2004 Author Posted February 4, 2004 code behind doesn't work either, i can make a button in design window but if i save the file and go to my page with my browser i get a blank page. If i make a label then it wil show but if i give the label a nice color of make the font smaller you can see it in design mode but if i watch it in IE then i just see the tekst with nog colors, no buttons or anything else Quote
Ava231279 Posted February 4, 2004 Author Posted February 4, 2004 Ah, if i use html components they will show. But webform components don't. Quote
Administrators PlausiblyDamp Posted February 4, 2004 Administrators Posted February 4, 2004 Did you install IIS after the framework? If so it won't have registered properly. If that's the case try this: Open a new command prompt Change to the drive windows is installed in (e.g. c:\) cd Windows\microsoft.net\framework depending on the version of the frame work you have you will have to cd into either v1.0.3705 or v1.1.4322 - if both folders are present go for the v1.1.4322 one then type aspnet_regiis /i and let it do it's stuff. when it finishes - try to run the web app again and see what happens. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Ava231279 Posted February 4, 2004 Author Posted February 4, 2004 That was the problem, everything is working now. Thanks(!) 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.