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: 10 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:













beta 2 - toolbox bug with custom control

<%@ previouspagetype %> problem

error parsing control: 'helpverb' could not be inititalized

break points dont work

recent projects list

create assembly (dll) for web project in visual studion 2005

visual studio 2005 inconvenient behaviour

localisation in vs2005 beta 1

team system (team test & foundation server) -- is it worth it?

uploading images in asp 2.0

i have problem compute the total

trace.write in a class method

strong password enforcement, how do i turn it off when developing?

execute msil code in intermediate window?

redo annoying me and possible bug with atlas/dataset

adding a sql server 2005 database connection

in vs 2005 source view stops accepting non-alphanumeric keyboard input...still!.

.netcharting with vb2005

"__designer:dtid=" - what can i do about this?

can anyone point me to a tutorial on xml/xsl editor on vb.net?

how do i stop code execution

visual studio 2005 pops up norton antivirus to scan a gif file

visual studio 2005 missing items in toolbox

first-chance exception at 0x7c812a5b in aspnet_wp.exe.any idea?

orcas release date?

project template to fire code.... ( important - please :-) )

internal webserver vs iis

save image is database or in web server

vs.net 2005 storeprocedures etc

re: query about solution

vb.net, c#, and the ide

unexplainable problems referencing other project in solution

remote debugging

vista and visual source safe 2005 with vs2005

help me pleasee..data source control not appear

can i create 1.1 projects in vs 2005

visual studio 2005 has empty toolbox

unable to open web...

more options for "new"

tasklist comments question

next update/service pack for vs 2005?

using the class browser

where did the "asp.net web applications" go?

autodesk dwf viewer no longer working in my vs2005 app!

web site with a nested subapplications underneath it(problems in the nested subapplication)

how sent from and to date from main report to sub report

visual studio 2005 catching iis exceptions

how to test a windows authenticated website for load testing?

how do i use virtual direcoties in vs2005?

problems trying to load a page in debug....redirects to 127.0.0.1 not http://localhost/.....

   
  Privacy | Contact Us
All Times Are GMT