|
For example in page1.aspx
string id = "121";
Session["QueryString"] = id;
Response.Redirect("admin_home.aspx");
to get data in page2.aspx
perWorkId = Convert.ToString(Session["QueryString"]);
hope it helps
|
|
|
|
|
thanks for replying paulalvin .... what is 121.. it can be anyting?
|
|
|
|
|
Seriously? That's your question?
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Maybe you are asking "can it be any type?" The answer would be "yes." A session variable can hold any type, but be careful, as holding large classes, etc, in session variables can be devastating to scalability.
|
|
|
|
|
|
Hi
you have to use the "Query String" to send data one page to another.
|
|
|
|
|
Cobblers
C# has already designed away most of the tedium of C++.
|
|
|
|
|
|
You can use session/query string to pass values from one page to another.
query string
Response.Redirect("Home.aspx?value="'+ddl.SelectedItem.Value+'");
on another page you can receive
string temps=Request.QueryString["value"];
Session
Session["TempToStore"]=ddl.SelectedItem.Value;
Or In case of large data you can use XML Manipulation to write or Read.
There is another way to create dataset and store it into session
http://stackoverflow.com/questions/2288299/storing-and-retrieving-datatable-from-session
|
|
|
|
|
you can pass it by using query string
|
|
|
|
|
Suppose there is a web design project (the C # language asp.net2.0), open the project and press F8, vs.net 2005 does not plan to watch every step run debug and run the show always. I want to see the first command is run when you press F8, you have to do ?
|
|
|
|
|
When I open a project and press F8 in Visual Studio, nothing happens for me.
I am not sure what are you trying to do or trying to ask here. Please update your question. Try again to explain on what you are trying to do.
|
|
|
|
|
In the web project, I want to know when press F8 to run a command line first?
|
|
|
|
|
Member 2458467 wrote: I want to know when press F8 to run a command line first?
AFAIK, there is nothing(at least not command line) that gets executed on press of F8.
|
|
|
|
|
|
Send baigui by line »15 minutes ago
I try to Debug page Default.aspx, Default.aspx.cs it syntax error page, I find the error code in the Default.aspx.cs file does not have this command, see the attached image file error. So a command line, 2.3 where the error lies in the Default.aspx.cs page? can download attachments in error, you run the test.
Source Error:
Line 1: <% @ Page Theme = "Default" Language = "C #" MasterPageFile = "~ / MasterPage / MasterPage.master" AutoEventWireup = "true" CodeFile = "Default.aspx.cs" Inherits = "webapp4U.UI._Default "%>
Line 2: <% @ Import Namespace = "webapp4U"%>
Line 3: <% @ Import Namespace = "webapp4U.BOL"%>
http://www.crocko.com/8AFB66261DDA4B7E99CAF504C73427C5/default_err.jpg[^]
http://www.crocko.com/5D18C18197C147149F2A456F5A971E64/Vidu.rar[^]
|
|
|
|
|
In a C#.net web form 2010 application, I can not find some *.aspx files that the site map is looking. I want to look into other options before I tell my company I am missing some *.aspx pages.
Thus are there ways to rename an *.aspx file to something else? This way the user would not be aware of the real *.aspx page?
For example in the web.config file I know you can do something like the following:
<add url="~/Start.aspx" mappedurl="~/Startuser.aspx">
Are there other options like this? If so, can you tell me and/or point me to a reference that could explain the ways an *.aspx page could be renamed?
|
|
|
|
|
Seriously? Just hope there is nothing important on the missing pages. Are they not backed up anywhere? Have you tried to determine if it is, in fact, the sitemap that is incorrect?
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Use url mapping into your config file!
<urlMappings enabled="true">
<add url="~/home" mappedUrl="~/default.aspx" />
<add url="~/about" mappedUrl="~/about.html" />
<add url="~/contact" mappedUrl="~/contact.aspx" />
</urlMappings>
you can map your lost page to existing page!
|
|
|
|
|
The asp.net site map is not automatic, but created by someone, so the possibility of an error exist.
If your talking about the solution explorer, that's another story.
the missing files may of been dragged and dropped into another folder by accident, and you just don't see them.
|
|
|
|
|
upload image by user using datalist and also zooming image when user upload image by datalist.
How can i zooming image ?
|
|
|
|
|
|
can someone help me, i want to develop an online registration web page with asp.net using access database, yangejunior@yahoo.com
|
|
|
|
|
First, remove your email address form here: no one will reply to it.
Secondly, what have you already tried for yourself? What research have you done? We don't give solutions only fixes or guidance for specific problems.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
I think what you need to investigate is the ASP.NET Membership Provider
This is a pretty good article which I have used as a reference:
http://www.4guysfromrolla.com/articles/120705-1.aspx[^]
Do a bit more searching and you will find the scripts necessary to create the membership tables in an MS-Access database.
Good luck.
|
|
|
|