|
one more....
Response.Redirect does not transfers the query string values and form values of the current page.
Server.Transfer allows you to transfer the query string values and form variables to other page. Best way to transfer values from one page to another using the preserveForm parameter of the Server.Transfer method.
Regards John
|
|
|
|
|
Hi,
What is the difference between Server.Transfer and Response.Redirect?
If possible please explain me with example.
Thanks to All in Advance.
|
|
|
|
|
|
There is very good description just one thread above this one given by Deepak see that
|
|
|
|
|
How to create an assembly in Asp.Net 2.0?
|
|
|
|
|
Automatically created, shoul not create it by yourself.
|
|
|
|
|
You need to publish the web applicaiton, this will precompile the code for you and keep it in the destination folder show in the publish dialog box.
Regards
|
|
|
|
|
Hi All
I need to create a Logout page in my application i am using VB as lang. I works fine but only problem is its ask for a message ...its tyring to close the current window in case of i-explores if we press yes it closes the window and logout page is only open with no back button activated. In case of Mozilla it directly open a new window(the logout page)and project window remains open.
What to do Pl help
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
Hi Prakase,
You can use this code, it works fine
Protected Sub lnkLogOut_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkLogOut.Click
Response.Redirect("~/SignOut.aspx")
FormsAuthentication.SignOut()
End Sub
prabhakar
|
|
|
|
|
Hi All.
Help me please to find or write a trigger for UpdatePanel. It must refreshing my UpdatePanel when data in database (SQL Server 2005) is changing.
If You know, how implement this function (refreshing UpdatePanel's content on data changing in database) in another way - I will be glad to get it to know.
Thanks.
|
|
|
|
|
Hi,
Through caching we can do it. We can also do it by setting some properties of ObjectDataSouce control. So Try
prabhakar
|
|
|
|
|
Thank You for answer. You have greatly helped me
|
|
|
|
|
I want to add a delegate to each listbox (10 of total on one page), in order to handle selectedIndexChanged event as following:
lstbox.SelectedIndexChanged += new EventHandler(OnSelectedIndexChanged);
private void OnSelectedIndexChanged(object sender, EventHandler e)
{
}
I got error like this:
Error 1 No overload for 'OnSelectedIndexChanged' matches delegate 'System.EventHandler'
Can some one help me.
Or any suggestion on what's the best way to handle 10 data list on one page. (display and editable).
Thank you in advance.
|
|
|
|
|
Hi Im working on a student project.
It is a shopping cart application using asp.net and C#. I need to track orders submitted by customers.
When a customer submits an order it is shipped to her address using ny courier service.An id will be returned by courier service that will be used to track the order.Som1 told me dat webservice will be used to do this.I dont know how 2 use web services.
Kindly give me code for above mentioned procedure as soon as possible.
|
|
|
|
|
lastFarhi wrote: Som1 told me dat webservice will be used to do this.I dont know how 2 use web services.
You would help yourself if you spoke English here.
Google has tons of info on web services, they are kind of trivial to use.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am wondering how to add a attribute to an ASP control so that the attribute will show up in the HTML when it is rendered
|
|
|
|
|
Control1.Attributes.Add(string key, string value);
Pretty simple.
|
|
|
|
|
for some reason, i dont see it showing up when it is renedered. I am using this in a control. i did this :
Me.Attributes.Add("name", "somename")
|
|
|
|
|
Seems like you are using VB.NET since you're using the Me keyword. I'm a C# guy, but I assume Me is a reference to the Page and as far as I know, I don't think that has an attributes collection. Maybe you could provide more information on exactly what you're tryign to do?
|
|
|
|
|
Hi all.
I'm essentially being forced to create an asp.net upload script for an app at work. This is no problem and I found it pretty easy to do. However, I need two variables passed to that page from an already existing app page. I don't have the time necessary to rewrite 10,000+ lines of code into asp.net, I just need the asp classic post to go to the .net page.
I can't seem to find a way of grabbing that variable when its posted. Specifically, in this case I launch a popup window on click and it loads the .aspx script there. Things I've read point towards setting session variables of the values you want to use in the .net script. So in my asp classic script, I use ajax onclick to set the asp session variable, then call the function to popup the window with the .net script.
However a simple response.write(session("variablename")) prints absolutely nothing to the screen. (sessions are enabled in .net)
I have a feeling this is an extremely easy answer, but no formal training on .net makes it weird for me and I haven't found a solution online.
Also, is there a way to avoid the "warning page expired" error when clicking on the link in the url bar and hitting enter? I'm not using back. I just want to load the page as if i was loading it for the first time, but it gives me that error and tells me to reload. but reloading will resubmit the form, and i don't want that. I have to close IE to load the page again.
Thanks in advance!
|
|
|
|
|
The Classic ASP and ASP.NET sessions are different instances, so unless you go through the hassle of trying to synchronize them then I wouldn't use session. Why not just use the querystring to pass the data to the aspx page?
On the aspx you can then just do the following: (C#)
string variable = Request.QueryString["StringName"];
|
|
|
|
|
That was exactly the simple info I was looking for. I was always trying to use request.form - which doesn't work. and the only info I could find on posting to .net pages was from .net pages.
I appreciate your help in this matter. Its like you just reconstructed my brain after it exploded.
Anyone with the thing on getting the expired page error?
Again- thanks for the help
|
|
|
|
|
Anybody have an idea how I can override the browser's history buttons (back, forward)
in an AJAX-based application? I search all over the internet, and what I found was
only a few libraries. I don't want any third-party libraries. Anybody know how I can
do it myself?
|
|
|
|
|
I'd be surprised if you could. AJAX works by not posting a new page request. The back and forward buttons track your individual page requests.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I know that. But if there is a way to detect when the user presses the button, we can block it and do our desired action.
The World Is Mine...
|
|
|
|