C# - Is The HttpSessionState.SessionID Property Unique Per Browser Process / Tab?

Feb 23, 2010

Is the HttpSessionState.SessionID Property unique per browser process / tab?

That is, does each tab in each process have a unique Is the HttpSessionState.SessionID Property unique per browser process / tab?

View 1 Replies


Similar Messages:

State Management :: How To See The Sessionid Cookie On IE Browser

Apr 8, 2010

I want to see the asp.net_sessionid cookie on my IE browser. Where can I find it ?

View 8 Replies

Validation For A Unique Property?

Jul 20, 2010

Does anyone know how to do validation for a unique property or can point me to an example? Say I have a grid of movies and I do an edit or an insert. If I set the textbox 'Title' to be 'A really cool movie'. How would I do the validation to ensure the database doesn't already contain a movie by this title? Would I use a CustomValidator? I tried doing this but when I was checking the text in the textbox it was coming through as an empty string.

View 1 Replies

To Create Unique Values For A Property In Custom Server Control?

Nov 12, 2010

I need a way to create unique values for a property in my custom server control..

In this case I will have the poroperty called "Name" and I neeed the value of Name to be unique for each "instance" of the control...

So for instance if I have a page with more then one instance of the control, I dont want the value of the Name property for these instances to be allowed to be the same..

...to put it kind of simple, if I dont remember this incorrect, I want it to be sort of like the ID property..but with another name then ID.

View 5 Replies

State Management :: How To Get Unique Session Id That Generated Same For All Browser Tabs

May 19, 2010

How to get unique session id that generated same for all browser tabs and different and always unique when we close and open new browser in asp.net code.

View 2 Replies

Creating New Process Which Doesn't Get Killed Even Browser Is Closed

Jul 6, 2010

I need to perform an operation such as extracting the data for past one year from DB and doing some manipulations and finally displaying the excel graphs for the extracted data. The extraction of data takes almost 6-7 hrs. What i require is that user enters the required data (date and some other details )through an asp.net page and submits it and then closes the browser. Now a process should get started which will extract all data and create the graphs and finally send an email to the particular user.

View 6 Replies

Continue The Process Even The User Close The Browser Window?

Apr 11, 2010

i need to develop a tool which will take a long of time while processing, lets say copying data with size 1 GB from one database to another,

i can develope a webform for that issue but i have a problem which is when the user close the browser the process will terminate!

what i need is when the user click on "copy" button (regarding to my previous scenario) the process continue even the user close the browser, and will not end untill the all data copied successfully to the destination place.

should i use windows service with my webform? or webservice ?

View 11 Replies

Ajax - Long Process And Sending Updates To Browser

Jan 30, 2010

I've asked this before but I was hoping for another answer and perhaps some code samples because I've been having a difficult time with this. I have an asp.net page. The user hits the "Run" button and I have code IN AN ASSEMBLY, not in the APP_CODE folder that is called and runs a long process that moves product info from a file into the database. While the user waits, I would like them to see status updates like what product the import process in on and status info. I'm assuming I'd break off into another thread and use Ajax but I have no idea how to do this.

View 2 Replies

C# - HttpSessionState As Parameter

Mar 24, 2010

What is the highest class in the hierarchy I can use to pass HttpSessionState as a parameter and add values to it?

For instance to a method like

public void MyMethod(IDictionary<string, object> input)
{
input.Add("something", something);
}


I see that implements ICollection and IEnumerable, but that only allows me to read values, not add them.

View 1 Replies

Process Involved In Viewing A Webservice In A Browser From Within Visual Studio?

Jun 9, 2010

I have created a new VS2008 ASP.Net Web service project, with the default name WebService1. If I right click on the Service1.asmx file and select 'View in Browser' what are the processes that go on to make this happen? I am asking because I have a situation where when I run this from a visual studio project started in our development shell (which sets up a common build environment) I cannot get the web service to show up in the browser.

C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files
ootc43ddc22268ae91bhashhash.web

View 1 Replies

Configuration :: System.diagnostic.process.start Not Working From Client Browser

Jul 15, 2010

I've an application where in am trying to show a slideshow directly on page load.. for that am using the following code

[Code]....

Its perfectly working on the dev environment but when deployed onto iis7.. am not able open the file..

I've given all folder rights for asp.net account and network service..

View 5 Replies

Mocking HttpSessionState In .net For Nunit Testing

Mar 28, 2011

I've see n a lot of discussions surrounding HttpSessionState and asp.net MVC.I'm trying to write tests for an asp.net application and to mock the HttpSessionState and if so, how?I'm currently using Rhino Mocks and Nunit

View 1 Replies

C# - Accessing HttpSessionState (HttpContext.Current.Session) From Another Thread?

Nov 25, 2010

We have a web site which implements a central HttpSessionState management in App_Code like this:

[code]...

All of this worked fine ultil we needed to implement a time consuming process in a new thread...
In the second thread HttpContext.Current.Session is null (we know its because the current context its different between threads) so everything fails :

Investigating we found that you could pass the session from one thread to another like this:

[code]...

View 2 Replies

Active Directory/LDAP :: Get Unique ID Of UserName / Is GUID Is The Unique Id Of Each User

Nov 23, 2010

How to get Unique ID of LDAP logged in User? Is GUID is the unique id of each user?

View 1 Replies

Web Forms :: Is GUID (globally Unique Identifier) Unique

Aug 25, 2010

Is GUID (globally unique identifier) really unique, or it can be duplicate.

System.Guid.NewGuid().ToString()

View 6 Replies

Unique Number For Unique Visitor On Button Click In Vb.net?

Mar 21, 2011

How generate the unique no. 1,2,3 and so on .... on button click of each new user ..

the code mentioned below is a readwrite coding in vb.net ...

but the problem is it generate the same id for different users on button click event... but i want the no. of times button clicked the new ids will be generated

[code]....

View 1 Replies

C# - How Reliable Is The Request.Browser.Cookies Property

Mar 11, 2011

The Request.Browser.Cookies property (of type bool) attribute stores information whether client's browser supports cookies and whether or not they are enabled.How reliable is the property Request.Browser.Cookies? Is it guaranteed to be correct ? Or should I rather implement redirection technique suggested by Software Monkey in this question?Please note: This in not a question "are cookies reliable" ? This is a question: "Is the information whether users browser accepts cookies reliable?"

View 2 Replies

Is There A Cross-browser Way To Use A JQuery Selector On An Expando Property

Sep 2, 2010

I have an ASP.NET page and I am trying to quickly match the validation controls that are tied to a particular textbox (text input) using a jQuery selector. The validation controls render as a span and the "controltovalidate" property renders as an expando property. Here is a test example:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript" src="jquery.js"></script>
</head>
<body>......

The problem: the ml_test() function shows 1 in Internet Explorer 7 (as expected), but shows 0 in Firefox 3.6.8. I tried adding additional controls, but in Firefox it consistently doesn't work.

I discovered this post that shows the use of an ampersand in the selector like this [@expando=value], but when I try this syntax, jQuery 1.4.2 throws an error.

Is there a cross-browser way to select expando attributes, and if so, what is the proper syntax?

View 2 Replies

Associating A Unique Session Id With Every Unique User In C#

Mar 18, 2011

How can I get unique session ID for every unique user who logs in ?? I'm using asp.net/c#

View 1 Replies

How To Display Data With Unique Value And Count Of That Unique Value

Feb 11, 2010

How To Display Data In Following Format?

In the Format below abc has multiple occurance which count is displayed in brackets as 2669.

[code]....

View 7 Replies

Configuration :: Process.start (System.Diagnostics.Process) - Execute A Batch File

Sep 7, 2010

I've written a aspx.net(C#) page that after the user has done what they do on the page they hit a Submit button. The Submit button

1) takes the work the users was producing on the page and writes it to a file.
2) attempts to execute a batch file.

The call to the batch file is executed via:

protected void Execute123EDI()
{
try
{
string File = @"c:80sAdminSendV80s.bat";
lblCancelled.Text = lblCancelled.Text + File;
Process proc = new System.Diagnostics.Process();
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.LoadUserProfile = false;
proc.StartInfo.UserName = "administrator";
proc.StartInfo.RedirectStandardOutput = true;
System.Security.SecureString secPass = new System.Security.SecureString();
string paswd = "123abc";
for (int i = 0; i < paswd.Length; i++)
{
secPass.AppendChar(paswd[i]);
}
proc.StartInfo.Password = secPass;
proc.StartInfo.FileName = File;
proc.Start();
FileStream fs = new FileStream(@"c:80sAdminSendV80sOutput.log", FileMode.Append);
StreamWriter sw = new StreamWriter(fs);
sw.Write(proc.StandardOutput.ReadToEnd());
proc.WaitForExit();
sw.Close();
proc.Close();
}
catch(Exception ex)
{
lblDebug.Text = lblDebug.Text + ex.Message + "<br/>";
}

If I watch the processes tab in Task Manager on the web server I see "cmd.exe" under the context of 'administrator' but it just hangs. For test purposes c:SendV80s.bat: copy c: oot.ini c:zzz.txt

If I logon onto the webserver's console and execute SendV80s.bat it works and exits without issue. But when I execute the same batch file via the Submit button it gets stuck executing in Task Manager/Process. I believe this has something to do with the fact that cmd is not running in a full environment/desktop context. I just noticed this on the actual console of the webserver (not in my RDP console but console 0 instead)

A pop-up box stating: CMD.exe Application error The application failed to initialize properly (0xc0000142). Click OK to terminate the application. And when I click on the OK button my ASPX page's WaitForExit is satisfied and the continues processing normally.

View 2 Replies

Long Running HTTP Process - How To Put In Separate Process

Jul 21, 2010

I know that similar questions have been asked all over the place, but I'm having trouble finding one that relates directly to what I'm after.

I have a website where a user uploads a data file, then that file is transformed and imported into SQL. The file could be up to 50mb in size, and some times this process can take 30 minutes or sometimes even longer.

I realise I need to palm off the actual work to another process, and poll that process on the web page. I'm wondering what the best approach would be though? Being a web developer by trade, I'm finding all this new Windows Service stuff a bit confusing, and I just wanted somewhere to start.

So:

Can I do / should I being doing this with a windows service? if so, how?

Should I use WCF? If this runs under IIS, will I have problems with aspnet_wp.exe recycling and timing out my process?

clarifications

The data is imported into sql, there's no file distribution taking place.

If there is a failure, it absolutely MUST be reported to the user. The web page will poll every, lets say, 5 seconds, from the time the async task begins, to get the 'status' of the import. Once it's finished another response will tell the page to stop polling for status updates.

queries on final decision

ok, so as I thought, it seems that a windows service is the best idea. So as to HOW to get it to work, it seems the 'put the file there and wait for the service to pick it up' idea is the generally accepted way, is there a way I can start a process run by the service, without it having to constantly be checking a database table / folder? As I said earlier, I don't have any experience with Windows Services - I wondered if I put a public method in the service, can I call it somehow?

View 2 Replies

Execute A Process Remotely With System.Diagnostics.Process

Feb 26, 2010

I'm working on an ASP.net app I'm trying to execute a process remotely , using System.Diagnostics.Process class here's my code:

ProcessStartInfo startInfo = new ProcessStartInfo(@"C:TestCommand.exe");
startInfo.Domain = "myDomain";
startInfo.UserName = "MyUserName";
SecureString sec = new SecureString();
foreach (char item in "MyPassword")
{
sec.AppendChar(item);
}
sec.MakeReadOnly();
startInfo.Password = sec;
startInfo.UseShellExecute = false;
Process.Start(startInfo);

I keep receiving an exception with the message "Logon failure: unknown user name or bad password". Im absolutelly sure that i'm submiting my correct username/pwd

View 1 Replies

Web Forms :: The Process Cannot Access The File 'c: Empmy.pdf' Because It Is Being Used By Another Process?

Apr 3, 2010

I've developed a popup email .aspx used on our intranet based web app that is auto generated with .pdf's attached. I'm developing with VS 2008 ASP.Net 3.5 C# and System.Net.Mail.MailMessage. I can create and send the email with no issues. The problem is with any attempt to open or delete the attachments I get the above error. The .pdf's a copied with the following code:

FileStream fsr = new FileStream(inFilename, FileMode.Open, FileAccess.Read, FileShare.Read);
BinaryReader reader = new BinaryReader(fsr);
byte[] bytes = new byte[fsr.Length];
reader.Read(bytes, 0, bytes.Length);
FileStream fsw = new FileStream(outFileName, FileMode.Create, FileAccess.Write, FileShare.Write);
BinaryWriter writer = new BinaryWriter(fsw);
writer.Write(bytes, 0, bytes.Length);
// clean up
writer.Flush();
writer.Close();
writer = null;
fsw.Close();
fsw.Dispose();
fsw = null;
reader.Close();
reader = null;
fsr.Close();
fsr.Dispose();
fsr = null;
Later after sending the email I:
mailMessage.Dispose();
mailMessage = null;
foreach (string fileName in attachments)
{
if (File.Exists(fileName))
File.Delete(fileName);
}

The error occurs at: the File.Delete(fileName);

how I can delete or reopen these files after sending the email?

View 9 Replies

Web Forms :: If Label Property Is Set To Visible = "False", Then Can It Be Find In View Source Of Browser ?

Feb 18, 2011

I have a label1 in my aspx page, which property is set to visible = "False".

In the view source of the browser i cant able to find that label1.But using some other third party tool like "Burp Suite" etc ...

Can those label1 value could be seen or not using tools like "Burp Suite" etc ?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved