Web Forms :: AbsoluteURI Stored In Session - Not Working In IE?
Nov 1, 2010
This is a really strange problem for something that should be simple.I'm storing a URL - which contains search strings - into a session so I can create a 'back to search' link on the item page. It works in Firefox but in IE it only brings back the URI without any parameters
[Code]....
and then to read it...
[Code]....
In Firefox I get the full URI but in IE it only returnshttp://localhost:6666/Search/Default.aspx
View 4 Replies
Similar Messages:
Jan 28, 2014
I have attached a ID in the email link I send using the below code
Request.Url.AbsoluteUri.Replace("CreateEvent.aspx", "AdminEdit.aspx?maxEventID=" + maxEventID)..
How do I get the maxEventID displayed in the url? I need the ID for displaying details in a page..
View 1 Replies
Mar 22, 2011
Can I assign a URL to Url.AbsoluteUri in c#?
View 3 Replies
May 3, 2010
which place(exact folder) the session & session id will be stored?
View 8 Replies
Mar 19, 2011
Is it possible to use mixed cookieless sessions with cookie sessions? I've an application that captured user details and then redirect for payment to an ssl page. I was wondering if this is possible? [URL] redirects to [URL] Note: the session Id in the latter url. So in essence, we use the standard cookie session for the majority of the application but when we transfer to an ssl page we pass the SessionId to the https url to pick up the session. I've tried this locally but it starts a new session.
View 1 Replies
Mar 12, 2010
I have stored the datasource of my datagrid in a session
Session["datagrid"]=dataSource.ID;
On retriveing I am setting the gridview datasource to the session.
resultgrid.DataSourceID=Session["datagrid"].ToString();
resultgrid.DataBind();
But I am not getting anything on the page.
View 1 Replies
Jan 27, 2010
I'm trying to get my site to play a flash video the first time, and only the first time, a user visits the site. Currently, I'm using ASP session tags to install a sessionid cookie into the users browsers.
<% Session("name")="blah"
Session.Timeout=7
%>
This method works fine in FF and Chrome, but IE8 doesn't seem to want to accept the cookie. I've tested it with IE's lowest security settings possible ("Accept all cookies"), but it still does not create any cookie. Is there any other way to make it so that all browsers will take the cookie?
View 1 Replies
Jul 27, 2010
The Setup:Account controller with the typical logon / logoff stuff that comes baked in from the template. Not much modification here on the logon page. Using a custom membership provider (SQL), but I don't think that is impacting what I am trying to do here.The Requirements:The client wants to handle licensing by limiting concurrent users and not by total users. So, after referencing this post here, I set out to make this work for what I need to do. And that is to track maximum and current users for each organization that has signed up for our application. No problem, just have an application("max") and application ("current") which are both hashtables with the key being the organization id and the value being current or max users for the organization. On Session_Start, I would increment the current users, check if it exceeds max and either a) redirect to an error page or b) let them go on with what they need to do. On Session_End, I would decrement the count.
The Problem:When using formsService.signIn, what is actually stored in session? I cannot seem to gather any information about my session in the session_start except for the session ID. So, I cannot increment the correct number for user tracking. And I cannot add a variable to session as session_start will have already fired before I get the opportunity.
View 1 Replies
Apr 4, 2011
keeping 1000 records in a datatable in session and do paging using that?
Or
doing paging in stored procedure level and requesting 35 records each time?
more info:
datatable of 40 columns
number of users is 200 users
7 application are running on IIS
Oracle DB server is not the same server for IIS
Edit: the user may update a row, and submit it to database. which will refresh the grid by requesting the whole data from database.
Edit2: Every user is loading different datatable which coming from same table in database
View 2 Replies
Feb 24, 2010
im having some problems with jagged arrays stored in session for ASP.net i have some code which creates a jagged array, them populates, and then stores this populated jagged array into session
protected string[][] answersJArray;
answersJArray[0] = new string[4]("test","test1","test2","test3"};
answersJArray[1] = new string[4]("test","test1","test2","test3"};
Session.Add("answersJArray", answersJArray);
how would i loop through each jagged array in the session ?? if they were not in session i no i could do the following
for (j = 0; j < answersJArray[1].Length; j++)
{
label.Text = (answersJArray[1][j].ToString());
}
how would i do the above by looping through the session ??
View 2 Replies
Jun 2, 2010
First of all, here comes the load part.
Structure MainStruct
Dim Ans1 As String
Dim Ans2 As String
End Structure [code]....
The question is how can i read back the contents of the list, stored in the Session?
I mean something like...Build = Session("MyData")
View 2 Replies
Jun 1, 2010
ALTER PROCEDURE insertdetails2
View 9 Replies
Jan 21, 2010
I am using Session state in my ASP.NET application. The development is done using InProc session state as the option, but now the application is deployed on a Web Farm(Cluster) environment. As a result, InProc session state is not working.
I have changed the session state mode to SQL server so the session state will work in Web Farm environment. But now i am getting a different error because of some of the objects which i have already used with Session.
Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.
I understand that every object that is stored in Session needs to be serialized. But there are some objects which are not serializble in DOTNET.
Unfortunately i am using one of them, SiteMapNode. I am storing this object in session to re-create the breadcrumb based on the navigation the user has performed. I have to do this because there are mulitiple paths leading to single page in my application.
I have tried to do serialization of this object using XML serializer object, but its throwing an exception:
"System.Web.SiteMapNode cannot be serialized because it does not have a parameterless constructor."
I can't change the code of storing the SiteMapNode in session as it is very complex and written by someone else. I have to store this object in session or some other state form so that i can continue using the same code.
View 3 Replies
May 7, 2015
When using modalpupextender ..after post back the ModalpopupExtender not working !!
View 1 Replies
Aug 19, 2010
I have a grid with one TemplateField which is a checkbox and say 2 bound fields.
In Page_Load on postback I rebind the grid with cached dataset stored in session. If user selects checkbox on the grid, upon postback i can iterate on the grid and get those checked values, everything works fine.
If I move the code of grid binding on postback to OnInit instead of Page_Load then i loose those user checked checkbox data. Why? Should the postback data not overlay on top of the grid after oninit?
It does work with page_load, I'm assuming that when i rebind the grid, I'm overlaying my data on grid which has postback data, since the checkbox column is not bound i do not overwrite postback data.
NOTE: viewstate is disabled on my grid, i bind data (stored in session) on everyback postback. Also something weird, when I'm using OnInit, on every postback i get the first page of the grid, no matter which page the postback was triggered.
View 3 Replies
Aug 31, 2010
I would have a dataset that I would break into 5 new generic LIST<>. Now the user needs to see one record at a time and navigate through the list
Fields like
From date : Text box with calendar
To Date : Text box with calendar
Manager Reporting To : Drop down list
Buttons on Move Back and move Forward
Now I would have 4 such similar lists which I have to pick up from the audit table. When the user clicks on move back and move forward buttons he should be able to navigate through records in my list that I have fetched in the beginning . I can store itin a session or viewstate till it gets updated again. How do I achieve this.
Should I be writing a webmethod to go back and pick up the next record agian and display
Can I also a gridview instead of textboxes.
View 2 Replies
Jan 11, 2011
I have a form where users can upload Pdf files(about 30 pages to one document or so). I want to delay storing these Pdfs in the database until the user submits the entire form. The problem is that the collection of files uploaded must be able to persist through postbacks. That being said, I am considering storing these as session variables, however, would this be too much data to store, or are session variables meant to store a couple strings here and there? If this method is not acceptable, is there an alternate method?
View 2 Replies
May 7, 2010
I'm using Session variables inside a web service to maintain state between successive method calls by an external application called QBWC. I set this up by decorating my web service methods with this attribute:
[WebMethod(EnableSession = true)]
I'm using the Session variable to store an instance of a custom object called QueueManager. The QueueManager has a property called ChangeQueue which looks like this:
[Serializable]
public class QueueManager
{
[code]...
View 1 Replies
Jan 8, 2010
I have an ASP.Net app that retrieves a collection of roles for a given user. Each role is a string. There's rarely more than 2-3 roles for any one person.I wanted to store the colelction of roles in Session state to save the time accessing the DB on each request.I basically want to write code that checks if a given string exists in the collection to test if the user has that role or not.My question is...what's the best way to do this? Is an array the best collection to store the role strings in Session with? Or is a dictionary better? I figure an array will take less memory (I don't really need a key + value) although a dictionary might lookup faster.
View 4 Replies
Dec 23, 2010
i m creating simple project i want to update data in same page at registration...i have code to show you which is not working plz help mepublic void update(string fname, string lname, string address, string emailid, Int64 phoneno ,string id)
cn = new SqlConnection(ConfigurationManager.ConnectionStrings["DatabaseConnectionString1"].ConnectionString);
cmd = new SqlCommand();
cmd.Connection = cn;
[code]...
View 6 Replies
Mar 7, 2011
CREATE PROCEDURE [dbo].[sp_Select_Project] @ClientID intASBEGINIF NOT EXISTS (SELECT ClientID FROM tbl_ProjectDetails WHERE ClientID= @ClientID) BEGIN
View 8 Replies
Feb 22, 2010
I can't get SqlCacheDependency to work with a simple stored proc (SQL Server 2008):
create proc dbo.spGetPeteTest
as
set ANSI_NULLS ON
set ANSI_PADDING ON [code]...
And here's my ASP.NET code (3.5 framework):
-- global.asax
protected void Application_Start(object sender, EventArgs e)
[code]....
View 4 Replies
Mar 18, 2010
I have made a simple stored proc which include Transaction through which I have to delete records from two tables EmpDetail and EmpDept . EmployeeId is PK in EmpDetail and FK in EmpDept. Procedure has been executed but on doing exec DelEmployee @EmployeeID='e07' showing 0 rows affected..
[Code]....
View 6 Replies
Oct 11, 2010
ALTER Proc [dbo].[Usp_CheckUserLogin]
(
@Username varchar(20),
@Password varchar(20)
)
as
begin
Declare @RowCount int
Declare @RowCount1 int
set @RowCount = (select distinct UsrId from UserMast where username=@username COLLATE SQL_Latin1_General_Cp1_CS_AS )
set @RowCount1=(select distinct UsrId from UserMast where [password]=@password COLLATE SQL_Latin1_General_Cp1_CS_AS)
if(@RowCount > '0' and @RowCount1 > '0')
if (@RowCount=@RowCount1)
begin
-- select U.UsrId,U.FirstName,U.LastName,U.Email,U.companyId,U.role,R.RoleName from UserMast U join rolemast R on U.Role=R.RoleId
-- where usrid=@RowCount
select 'success'
end
if(@RowCount > '0' and @RowCount1 = '0')
begin
select 'username exist'
end
if(@RowCount= '0' and @RowCount1 > '0')
begin
select 'password exist'
end
if(@RowCount= '0' and @RowCount1 = '0')
begin
select 'both not exist'
end
--return @RowCount1
end
my procedure not give me result i think my syntax is not correct
View 4 Replies
Dec 20, 2010
I am trying to insert some data into a table and update another table using the same stored procedure but it doesn't work.
ALTER PROCEDURE dbo.new_suppliers_orders_add_products
@SupplierOrderID int,
@ProductID int,
@OrderQuantity int,
@NewOrderQuantity int
AS
INSERT INTO SupplierOrderLine(SupplierOrderID, ProductID, OrderQuantity) VALUES (@SupplierOrderID,@ProductID, @OrderQuantity)
UPDATE Products SET QuantityOnOrder = @NewOrderQuantity WHERE ProductID=@ProductID
RETURN
Is it any way it can be done or I need to use two separate stored procedures?
View 7 Replies