In my app, I am displaying an Rss Feed, I have a button that takes the user to another form where they can select a them. Upon selecting the theme, they are taken back to the original form.
If the user has selected which theme they want to view then they click on the button to change theme, I need to pass the information about what rss feed they were viewing through session so that once they select the theme they want they are redirected back to the main page and the rss feed they were viewing should still be displayed.
Since I've already bound the data to the xmlDataSource and DataList I am trying the following:
here i am passing session id, to another page there capturing id to display some content. But i am getting error as "Object reference not set to an instance of an object." while capturing id in redirected page.
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls;
[Code] ....
This is the next page where i want all the controls of the selected row to be transferred. I tried by out ur different tutorial, it works when i use out of my project but did not work when i use it in my working project.
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls;
[Code] ....
I tried the tutorials as u mentioned above but showing the same error.
im passing gridview row value to next page using linkbutton with session.But i got this error "Unable to cast object of type 'System.Web. UI.WebControls. GridView' to type 'System.Web.UI.WebControls.LinkButton'." and my code is
PAGE 1 Protected Sub gridview1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles gridview1.RowCommand Dim RefNo As String Dim LnkRefNo As LinkButton LnkRefNo = e.CommandSource RefNo = Convert.ToString(LnkRefNo.ToolTip.ToString()) Session("ref") = RefNo.ToString() Response.Redirect("update.aspx")end sub PAGE 2
I searched on this all morning, but I'm still not sure. If I create a session variable to pass some data between a couple of pages, does that variable time out after it reaches the timeout period set on IIS, or will it persist for the entire time the user keeps a session alive? For example, session variable is used shortly after login and then never again. Susy uses other pages for two hours and keeps session active. Did that first session variable die after 20 minutes, or is it still there 2 hours later?
i have a gridview with link button and one field called "ID" i have five values....when i click the link button that row value ill show in next page in textboxes ,txtid, txtage, txtsalary,......... if i click that link button that "Id" values should pass to next page using "SESSION" variable in C#.net
I am using a datagridview. I am using a command field & want to pass a session id (which is stored in database) from one page to another as I click on the command field link.
How to pass session value through Hyperlink in asp.net in i have the textbox value in 1st page,if am given textbox then click the hyperlink i need the 1st page textbox value
i just want to know..is it possible to me to pass session from VB to C#..??
my friend write website using vb for user to login..and after login..the program will redirect to my website which is write in c#...is it possible to get session data from VB..??
i have write this code..but cannot pass the sesion data..
code from VB
If (Username.Text = userID And password.Text = userPassword) Then FormsAuthentication.RedirectFromLoginPage(Username.Text, True) Session("OperID") = Username.Text
I would like to know the method of passing session variables/values to a subdomain from the main website.For eg : Upon user login, I would like to set some session variables and redirect the page to a subdomain URL.
How can this be done? fyi... I have setup two websites in IIS. One is localhost and the other is subdomain.localhost
So, If I want to retrieve the session values in subdomain.localhost (which points to a specific folder in the app), how should I go about it?
SELECT DISTINCT TblSections.SectionID, TblSections.Description FROM TblSections INNER JOIN UMG.Users ON TblSections.SectionID = UMG.Users.SectionID WHERE (TblSections.Description IS NOT NULL) AND (dbo.Users.LoginName = [@Session(UserName)]) ORDER BY TblSections.Description
I have problem in using Session name in the above BOLD WHERE clause.
We are in the process of refactoring from cf to .net, so, I am working on the Login page and converting it from cf to .net. So, when I am autheticated and enter into our website, I need to redirect it to a cfm page (just temporary, since we will be refactoring that also eventually).
So, I am autheticated (using CustomMembership Provider model for sql server) and then when I redirect to the cfm, the app.cfm should validate the .net session variables. Here is where i am stuck:
I have the .net session variables in the aspx side:something like Session["UserId"].ToString() = Value from a login txt box (also authenticated against data in the database)
Session["UserName"].ToString() = Value from the db corresponding to the User Name entered in the text box.
So, now I have all the session variables in the .net side. Now, how do I retreive these .net session in the cf side? Any small peice of code to retrive the asp.net session variable in the application.cfm side would be great.
I have a report parameter page which contains many pop up windows for the parameter selection. For example, for driver , there is a pop up window called driver.aspx which contains a listbox that contains list of driver's name.
Now, for each of these pop up windows, i am passing the values of these windows as a session value.
Now, when a user logs in the system, there are many parameter pages for different reports which commonly share the same pop up windows if the parameters are same for different reports.
The problem now is,a user selects 10 drivers for report 1 and runs it. When he goes to report 2 and runs the report, the report 2 takes only those 10 drivers as the driver parameter value.
It means, the error can arise on the system because he may forgot that he have selected 10 drivers for previous report 1. User will not have time to recheck each previous selected values of different paramaters.
What i want is, when a person moves from one report page to another, i want to clear all the session values and adjust it as default for the new report .
i want to show a crystel report on page load of page. where i want to show report of those student who logged in the system and their session is created.
I have a page (parent) that open up a popup window using window.open javascript. User will then work on the popup window and the result will be stored in a session variable. When the user close the popup window, how can I put the value of the session variable back to the server control textbox of the parent window?