|
|
Good Day !
Did anyone know how to pass a whole data from one .aspx page to another .aspx page? Can anyone give me a sample code or solution. Thanks..
Best Regards,
Pei Sun
|
|
|
|
|
You can paas the data from one page to another page in multiple way. One simple way is to pass it through querystring. Here your data will be there with the URL and in the next page you can retrive the data from the querystring.
Best Regards,
Apurva Kaushal
|
|
|
|
|
can you give me sample code as a reference?
Best Regards,
Pei Sun
|
|
|
|
|
What you need to do is when you are redirecting to another page the you have to pass the value with the URL like this:
Response.Redirect("page2.aspx?ID=1234");
And in page2 you can access the value of ID like this:
string str = Request.QueryStering["ID"].ToString();
Best Regards,
Apurva Kaushal
|
|
|
|
|
Response.Redirect("page2.aspx?ID=1234");
What is the meaning of the ID=1234? The ID is declare by us? The coding is just simple like this? Do you have any reference site talk about this problem? Thanks..
Best Regards,
Pei Sun
|
|
|
|
|
here id is a variable in which you are storing the value. whatever value you will store in that you can access it in the next page. And also if you are sending the value through querystring then it will be visible to the user so important data should not be sent through querystring. alternatively you can use session for this purpose.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi apurva
sorry yaar i may be disturbing u
but plz try to solve my problem.
i'm facing a weird situation..i hav uploaded all my project on the client server.
but RequirdField Validator,Compare Validator and RegularExperssion is not working on server..but they are working fine on local host.
how is it possible and what to do slove it.
on server no validator control is working
thanx
|
|
|
|
|
What you check is javascript files on the server. particularly this file "WebUIValidation" this is required for the validation controls.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hello apurva
thanx..for replying
i got u but problem with me is that i'm working for a US client then how could i do changes in his server or what i hav to do for it.
and what should i ask to client for this matter.
tell me.
thanx
|
|
|
|
|
i dont think that you can do any change on there server but you need to know about the folder and i not too sure about how you can check it on there server. Alternatively you can discuss this your senioy on how to handle this.
Best Regards,
Apurva Kaushal
|
|
|
|
|
There is alot of method to go about it. And it is even better if you are using the current .NET 2.0 with the postbackurl property.
thanks in advance. Much appreciated.
|
|
|
|
|
But i'm using .Net 1.1 is there any other solution or sample code you can show to me? Thanks..
Best Regards,
Pei Sun
|
|
|
|
|
To pass data in-between forms, u have several options. To get a proper overview, search for state management in MSDN.
For immediate help:
string name = "Pei Sun";
Arraylist nickNames = new Arraylist(3);
nickNames.Add("PeSun");
DataSet ds = new DataSet();
//1. You can use HttpCookie which represents a cookie stored on the client's machine.
HttpCookie myData = new HttpCookie("CookieName");
myData.Expires.AddMinutes(5);
myData.Values.Add("name", name);
myData.Values.Add("nickNames", nickNames);
//add ds in the same way.
//Then add the cookie to the HttpSession.Cookies collection
HttpSession.Cookies.Add(myData);
//And thats it. You can redirect to your new page.
Live in fragments no longer. Only connect.
|
|
|
|
|
Hi ,
How to get time in 24 hours format in ASP.NET 1.1
Regards,
Uma
|
|
|
|
|
Hi Uma
try this
DateTime dtNow = DateTime.Now;<br />
string str24Hrs = dtNow.ToString("T",System.Globalization.CultureInfo.InvariantCulture);
regards
GV Ramana
|
|
|
|
|
DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss");
Make sure the HH is in upper case, that makes it military time (24 hrs format)
Nila Fridley
|
|
|
|
|
Hello Friends,
Can anyone tell me how to print a datagrid in a window application using C#. Iam having a very big grid. first it should be shown to a printpreview page and from there it has to be printed. Help me to get the entire grid to a printpreview page.
Vipin
|
|
|
|
|
Try the c# forum, this is for web based apps.
|
|
|
|
|
|
Hello All,
I want to resize the iframe depending on the the size of the document loaded
into to the iframe so that i can use IE to scroll
kavitha
|
|
|
|
|
hi
you can set scroll to the iframe
Thomas
|
|
|
|
|
Thanks for u reply.
I dont want to use the Iframe's scrollbar instead i want to use the IE's scrollbar
|
|
|
|
|
Hello ,
I am alex, i need ur help ,the code for reading csv file and dump into sql server database using asp.net c#.help me
i am waiting alex.
thanks in advance.
|
|
|
|
|