CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.club_web_site_starter_kit Tags:
Item Type: NewsGroup Date Entered: 2/3/2007 1:11:26 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 27 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
normangrey
Asp.Net User
Using variables more than once on same page2/3/2007 1:11:26 AM

0/0

Can anyone please tell me how to use a variable multiple times on the same page. I'm trying to use the 'fname' variable more than once on the member_details.aspx page (once for Membership Details for 'fname & lname' and again for the Modify Contact Details fields) but I'm having no luck. I'm new to .net and am used to asp where you would simply declare the variable and then use it as often as you like.

Any help appreciated.

francisambat
Asp.Net User
Re: Using variables more than once on same page2/3/2007 6:45:33 AM

0/0

You can store values either in session or cookies.  For example using session,

session('FName') = txtFName.Value 

session('LName') = txtLName.Value. Now you can use the session value FName with  session('FName')  like using variable

 

 

normangrey
Asp.Net User
Re: Using variables more than once on same page2/3/2007 7:16:01 AM

0/0

Thanks Francis - but given that the variable is already available on the page (used in the member details update fields) why should you have to set a separate variable? Seems messy! Why can't I use the existing fname variable twice? There must be a way - I'm just not that good yet!

 Thanks for any more thoughts.

francisambat
Asp.Net User
Re: Using variables more than once on same page2/3/2007 12:06:53 PM

0/0

Norman,

 Since HTTP is a stateless protocol and a web server doesn't recognize users between different requests that is post backs , we can't store them

in variables.

normangrey
Asp.Net User
Re: Using variables more than once on same page2/3/2007 10:25:17 PM

0/0

Maybe I'm not being clear enough. When I log in to the site and go to the member details page all of my details are correctly listed in the form fields on the right side of the page. On the left side it says Membership Details for normangrey which is my username. I would really like that to say Membership Details for Norman Grey, in other words fname & lname. Those details are already available on that page because they are in the form fields - is there no way to utilise some of those variables twice?

TIA

francisambat
Asp.Net User
Re: Using variables more than once on same page2/5/2007 4:47:24 AM

0/0

Is membership details are stored in database and retrieved back while login and shown in the page ?

normangrey
Asp.Net User
Re: Using variables more than once on same page2/5/2007 6:41:36 AM

0/0

Obviously! In a table DataSet if I'm not mistaken. But, you only get to use that dataset once.

So, can anybody show me the relevant query (in DataSet.xsd I think) and then how to set the results as sitewide session variables?

TIA

7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
PHP & MySQL Web Development All-in-One Desk Reference For Dummies: All-in-one Desk Reference for Dummies. Authors: Janet Valade, Tricia Ballad, Bill Ballad, Pages: 646, Published: 2007
Beginning JavaScript Authors: Paul Wilton, Jeremy McPeak, Pages: 767, Published: 2007
Macromedia ColdFusion MX 7 Web Application Construction Kit: web application construction kit Authors: Ben Forta, Raymond Camden, Leon Chalnick, Angela C. Buraglia, Pages: 1440, Published: 2005
Perl and CGI for the World Wide Web Authors: Elizabeth Castro, Pages: 334, Published: 2001
The Basics of S and S-Plus: with 94 illustrations Authors: Andreas Krause, Melvin Olson, Pages: 382, Published: 2000
JavaScript: The Definitive Guide Authors: David Flanagan, Pages: 994, Published: 2006
Knowledge Discovery in Databases: PKDD 2003 : 7th European Conference on Principles and Practice of Knowledge Discovery in Databases, Cavtat-Dubrovnik, Croatia, September 22-26, 2003 : Proceedings Authors: Nada Lavrač, Pages: 508, Published: 2003
JavaScript Bible Authors: Danny Goodman, Michael Morrison, Brendan Eich, Pages: 1173, Published: 2007
Learning PHP and MySQL: A Step-by-Step Guide to Creating Dynamic, Database-Driven Web Sites Authors: Michele E. Davis, Jon Phillips, Pages: 411, Published: 2007

Web:
Using Condition Variables A condition variable must be created once. Avoid calling the pthread_cond_init subroutine more than once with the same condition parameter (for example, ...
Dynamic structure with PHP: Effective usage of variables For example in the page, which handle dynamic menus I have used the same variable .... The new array has one variable more than the previous created array. ...
Using Variables and Constants To make a variable accessible beyond a single page, give the variable either ... If you refer to a session-scoped variable more than once in a script, ...
Inserting data from one page into two tables Nov 19, 2004 ... The standard alternatives to inserting records into more than one .... Once again, modify all the MM_ variables in the same manner as above. ...
The Loop « WordPress Codex In example 2, using a variable to store the results of a query is covered. ... use of multiple loops is to show two (or more) lists of posts on one page. ...
CodeProject: Manage ASP.NET Session variables using the Facade ... Dec 13, 2006 ... Rather than define constants on each page, group all session key constants ... what gets put into session variables (more than just type). ...
Using Variables in Web Applications (SAP Library - BI Suite ... If more than one data provider is used in the Web template, ... If Display Same Variable Only Once is selected, variables that are the same for different ...
Static caching: cannot call drupal_validate_form on the same form ... If you call drupal_validate_form() on the same form more than once per page request, validation is not performed on any but the first call. ...
Wikipedia:Footnotes - Wikipedia, the free encyclopedia [edit] Naming a ref tag so it can be used more than once ... You can then refer to the same footnote again by using a ref tag with the same name. ...
AAVSO: Manual for Visual Observing of Variable Stars Reports can be produced using software developed by the AAVSO or you may devise .... If there is more than one comp star of the same magnitude in a variable ...

Videos:
Watch a Video Demonstration of New Amazon's Kindle http://www.amazon-kindlemania.com Fabulous Features: * Wireless downloading of books - I can look up a book, read a summary and/or a few ...
makingchemistryeasy.com video As many of you are probably aware, most student do not get high marks (good grades) in Chemistry. I realize that High School, General, and ...
Pokemon Battle Damage Formula If this seems like more math than you want to learn in order to play a video game, don't worry! You don't have to be able to use the formula to be ...
Using open source tools for performance testing Google London Test Automation Conference (LTAC) Google Tech Talks September 8th, 2006 Presenter: Goranka Bjedov
Scalable Learning and Inference in Hierarchical Models of the ... Google TechTalks January 17, 2006 Tom Dean ABSTRACT Borrowing insights from computational neuroscience, we present a class of generative ...
Core Patterns for Web Permissions Google TechTalks July 19, 2006 Tyler Close Visiting Scientist Hewlett-Packard Laboratories Mr. Close is a researcher and developer ...
Computers versus Common Sense Google TechTalks May 30, 2006 Douglas Lenat Dr. Douglas Lenat is the President and CEO of Cycorp. Since 1984, he and his team have been ...
Lec 18 | MIT 3.091 Introduction to Solid State Chemistry X-ray Diffraction of Crystals: Diffractometry, Debye-Scherrer, Laue Crystal Symmetry View the complete course at: http://ocw.mit.edu/3-091F04 ...
Laparoscopic Nissen Fundoplication Surgery Our Lady of the Lake Regional Medical Center will broadcast laparoscopic nissen fundoplication surgery live over the internet on Wednesday ...
Moon http://www.myspace.com/DVLH The Moon (Latin: Luna) is Earth's only natural satellite and the fifth largest natural satellite in the Solar System ...




Search This Site:










new free dnn3 module: gammacon udt (user defined table)

dnn 3.x membership and profile providers

placeholder after postback has no controls

how to implement a mouse over image chaneg in dynamic menu

pass authentication to other sites

master page question

will this be possible in dnn? help!

webstone.shadow 2.0 (with accessprovider support) - when?

problem with tutorial

logoff error

automatic login via link

are the enterprise data access application blocks slow

runtime error: custom error mode = off

how can i use an .ascx file

input string was not in a correct format

nukenews not searchable?

encrypted csv file vs. sql

custom controls and localization

does this macth?

what's mean "the webctrl_client\1_0 directory"?help!

build error

can’t compile dll file.

pending checkins "updating" delay

problem in using both staticsitemapprovider and web.sitemap

y:system.io.fileloadexception: access is denied

massive number of rows inserting to database.

quick code question

how to install users online module??

content module over mulitple content panes

trouble uploading skin file

 
All Times Are GMT