CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.getting_started Tags:
Item Type: Date Entered: 9/9/2003 3:07:31 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 12 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
"gandalf3373" <
NewsGroup User
variable assigment9/9/2003 3:07:31 PM

0

i am a c++ guy and new to this asp stuff. i have done vb before and anyways i am trying to get an asp.net page working and my variable assigments are generating errors.


Dim myString As String = "This is a string."

above works fine.

Dim myString As String
myString = "This is a string."

OR

Dim myString As String = "This is a string."
myString = "This is a new string."

the other two blocks of code generate errors saying the 'myString = ' lines expect a declaration. this is bizarre. what am i missing, i know i should be able to change the value of my variables after they are assigned.

please help

james
"gandalf3373" <
NewsGroup User
Re: variable assigment9/9/2003 3:47:18 PM

0

i figured it out. i was using it inside a script runat="server" tag. if it is declared outside a procedure and assigned inside one it has a global scope for the page adn works. and i am assuming if i did the statements inside a <% %> they'd work too.

james
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:













debugging problem

how to retrieve yesterday date

server config

sql query using a drop downlist

get host name from ip address

excel sheet format

method / procedure / function / subroutine

update not working properly...

table row count after end of function

referencing user controls from code-behind

article management

how to set encoding via post to server

user control not working inside datagrid edit template

vs does not recognize dataset

web.config error handling

open small window when clicking on command button

cd key type security

unable to see the /bin folder in the wwwroot on winxp machine

check ip address?

caching browser data

how to assign providers to different applications?

batched updates

file downloads from ftp/http.

how to debug unit tests for asp.net web application

understanding post

help with webmatrix issue

iis default website problem

calculation problem

send email using vb.net windows application

positioning a control dynamically?

regular expression for date

retrieve image from file system

back button problem

shared module update question

reporting tools

how to play flash, mp3 and movies only with asp.net 2.0?

insert username as parameter in mysql statement

system.unauthorizedaccessexception: access to the path "d:...\thumbs\5b62060c102f6363635a.jpg" is denied.

naming a button dynamically (newbee)

what is the best programming language to learn for asp.net

excel operations in asp.net 2.0

naming of .net

display a "thank you" message after a form is submitted?

very weird problem with sqlstring

discussion module: is there anyway to put it into an iframe?

how to pass c# asp.net variable into javascript function

how to automatically refresh a page on every browser it's viewed on.

how to call windows service from asp.net?

getting remote userid using asp.net

design schemas

   
  Privacy | Contact Us
All Times Are GMT