Welcome to YLOAN.COM
yloan.com » Data Recovery » ASP.NET - Using Query Strings in order to Transfer data
Games Personal-Tech Data Entry registry cruise torrent mac code virus storage uninstaller systems cisco bugs wireless codes maintenance dell update communication trojan atlanta Data Backup Data Storage Data Protection Data Recovery Anti-Virus Windows Linux Software Hardware Mobil-Computing Certification-Tests Computers & Internet Internet

ASP.NET - Using Query Strings in order to Transfer data

There are different ways to transfer data from one page to another in ASP.NET.


Transferring information usingQuery strings is typically not recommended for reasons of security, but sometimes we have no choice but to use it.This is Particularly true in the following cases:

When we want to transfer information from a page in one site to a page located in another site;

When we want to pass information from an ASP.NET page to another page in the same site that is not written in ASP.NET.


In addition, we can use Query strings when we develop in an environment where security considerations are secondary.Such as intra-net environment or an environment where there is no meaning to permissions and security of data transferred from page to page.

The code we write on the sender would look like this:

'Send data to another page with Query string

http://targetdomain.com/sample.aspx?field1=value1&field2=value2

Please note that immediately after the name of the page to which we send the information to we need to add a question mark '?'And then the name of the variable (in our case 'field1') and then an equal sign '=' and the value of the field that we send.If we want to send more data then we need to put '&' before every pair of fields and values.

The code we write in order to receive the data that was sent to a page will look like this:

'Get data from Query string

Dim sVal1 as String = Request.Querystring(Field1)

Dim sVal2 as String = Request.Querystring(Field2)

Please note: In orderto transfer data from site to site we can also useResponse.Redirect.

This article was first published in my Hebrew site for programming: www.devschool.co.il

ASP.NET - Using Query Strings in order to Transfer data

By: Yossi Sigura
Rape Recovery Suggestions Remove The Data Security Solution - How to Remove The Data Security Solution right away August 3.5 per cent of the CPI data Remove Data Security Solution - Description and removal instructions of Data Security Solution Aarkstore Enterprise---canadian Oil Sands Industry To 2015 - Oil Price Recovery Providing Momentum Corporate Data - Critical To Organization's Success Olap Providing A Quick Entry To A Large Amount Of Data Things To Know About Data Relocation The No.1 Data Recovery Brand of the World Most Common Types Of Databases How to Uninstall and Remove Protector Plus Virus Database Fully and Efficiently from Your PC? Phobia Recovery And Also The Bar Cycle The Advantages Of Physical Therapy And How It Aids Your Recovery
print
www.yloan.com guest:  register | login | search IP(3.139.83.202) / Processed in 0.008163 second(s), 7 queries , Gzip enabled , discuz 5.5 through PHP 8.3.9 , debug code: 32 , 2190, 165,
ASP.NET - Using Query Strings in order to Transfer data