Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted

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

Posted
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)
Posted

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

  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...