|
well, (assuming you aren't using/setting any cookies of your own) it will still set a so-called per-session cookie to hold the session-id that you were seeing in the url. Such a cookie is not written to the client hard disk but only held in memory and is destroyed when the user next shuts his/her browser down.
This may or may not satisfy your client - if not, you will have to return to the cookieless state and put up with the session-id in the url as before.
Chances are your client won't know about per-session cookies, so you could always try not mentioning it! Otherwise, explain to them that the server has to have some way of knowing which page request is coming from which user, and the randomly generated session-id that it passess back and forth with each request is how it does so.
Fred
|
|
|
|
|
The process cannot access the file 'C:\Inetpub\wwwroot\ralph.pdf' because it is being used by another process.
and the file is just being created.
what should I do?
BiG RaLpH
|
|
|
|
|
If you've tried creating it before (previous test run maybe) perhaps the process then didn't end properly. Try restarting IIS, checking the processes in Windows task manager (crtl+alt+del) or you may need to do a complete re-boot.
Make sure your code catches any erros and closes down ecerything it needs to before trying again.
|
|
|
|
|
It sounds like the process that creates the PDF isn't closing file handles properly. You need to ensure that the PDF writing stream is closed before you try to use it.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
how can I make sure that the writing stream is closed?
BiG RaLpH
|
|
|
|
|
In a web application is it necessary to programmatically code for all the buttons(export,print.etc) that exists on crystal report viewer? Why if so?
|
|
|
|
|
Hi All,
I have a calender control on my ASP.Net page.The value of the calender control gives date and time.However i want only the date with out the time.
Calander1.selecteddate; ---- returns both date and time
How will i get the date only?
Thanks
|
|
|
|
|
try this:
Calander1.SelectedDate.ToString("dd/MM/yyyy");
|
|
|
|
|
|
A quick search on this site reveals this[^] blog engine by Marc Clifton.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
Hi,
I have to retrieve data from Active directory and bind that to a dropdown list control.Can any one help me to do the function.
Thanks in advance.
Babu
|
|
|
|
|
It's not binding but here it goes:
You should replace these lines with the proper values
entry.Path = "GC://****";
entry.Username = txtUN.Text;
entry.Password = txtPW.Text;
DirectoryEntry entry = new DirectoryEntry();
entry.Path = "GC://****";
entry.Username = txtUN.Text;
entry.Password = txtPW.Text;
DirectorySearcher ds = new DirectorySearcher(entry);
ds.Filter = txtQuery.Text;
ds.CacheResults = false;
ds.SearchScope = SearchScope.Subtree;
foreach (string s in cols)
ds.PropertiesToLoad.Add(s);
src = ds.FindAll();
cbResults.Items.Clear();
for (int i = 0; i < src.Count; i++)
{
if (src[i].GetDirectoryEntry().Properties["mail"].Value != null)
cbResults.Items.Add(src[i].GetDirectoryEntry().Properties["mail"].Value);
else
cbResults.Items.Add(i);
}
private string[] cols =
{
"displayName",
"givenName",
"sn",
"ou",
"employeeType",
"mail",
"telephoneNumber",
"samAccountNumber",
"whenCreated",
"whenChanged",
"objectGUID",
"c",
"objectCategory",
"anr",
"otherTelephone",
"cn",
"badPwdCount",
"lockoutTime",
"pwdLastSet",
"lastLogon",
"mobile",
"Profile",
"LastLogin",
"MaxStorage",
"PasswordAge",
"Description",
};
|
|
|
|
|
Hi,
I am currently building a web application whereby translation is being catered by resource files. For some reasons, it is required that each web page in the site have it own resource files. Thus, for a given page, page say "PageTest", there will be two resource files "PageTest.en-gb.resx" and "PageTest.fr-fr.resx" (provided that only two languages are defined for the time being). This process extends to all pages in the site. I store all the resource files in single folder such that i have :
Resources\Page1Test.en-gb.resx
Resources\Page1Test.fr-fr.resx
Resources\Page2Test.en-gb.resx
Resources\Page2Test.fr-fr.resx
etc....
Visual Studio nicely builds two DLL (satellite assemblies) in the bin folder of my application as follows :
bin\en-gb\Web.Resources.DLL --> This folder contains all resources files in english (ie. Resources\Page1Test.en-gb.resx , Resources\Page2Test.en-gb.resx etc..)
bin\fr-fr\Web.Resources.DLL --> This folder contains all resources files in french (ie. Resources\Page1Test.fr-fr.resx , Resources\Page2Test.fr-fr.resx)
So far so good. The problem here is that i have no idea how to reference a specific resource found in a specific resource file of the satellite assembly.
Clearly speaking,
How can i distinguish between en-gb\Web.Resources.DLL --> Page1Test."Resource_key" and en-gb\Web.Resources.DLL --> Page2Test."Resource_key" where "Resource_key" is a simple key to retrieve a string?
Can you please help me on this point? Thank you.
|
|
|
|
|
" i have no idea how to reference a specific resource found in a specific resource file of the satellite assembly."
You don't need to. The framework will access the proper resource file for the language being used, all you need to do is reference the resource key.
only two letters away from being an asset
|
|
|
|
|
Thanks. The thing is that the resource key can be available in different resource files contained in the satellite assembly. I need an access means to ensure that if i want Web.Resources.DLL -> Page1Test.en-gb->"Page title", then i will not get Web.Resources.DLL -> Page2Test.en-gb->"Page title" instead.
Can you please help?
Thanks
|
|
|
|
|
|
Thanks Mark Nischalke,
based on the MSDN link and a bunch of other articles, i managed to access a specific resource, in a specific resource file of a Satellite Assembly.
The syntax is as simple as this :
ResourceManager _resManager = new ResourceManager([Name of Satellite Assembly]+ "." + [Name of resource file embedded] + "." + [Culture name], Assembly.GetExecutingAssembly().GetSatelliteAssembly(_culture));
Thanks again.
|
|
|
|
|
Hi All,
I am trying to access a value of textbox on my page "second.aspx" from "first.aspx". I have created a property to access textbox's value on "first.aspx" and i am transferring to "second.aspx" by using "server.transfer" method. Now the problem is that i am not able to create an object of "first.aspx" on "second.aspx". and hence i am not able to use context handler. Please note that i have to use context handler only as that is the requirement. Please help me.
Thanx in advance.
Neeraj Rawat
|
|
|
|
|
how we close window through java script
i am using this code for close aspx page its workin in IE but its not working in mozilla fie fox browser
code:-
uxbtnCloseChat.Attributes.Add("OnClick", "window.close()")
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
Hi Piyush,
You might be trying to close the parent window which mozilla not allows to do. However if you open a pop up window and then call window.close() for closing it, it'll work fine. Even in internet explorer, if you try to close the parent window, it asks for a confirmation message from you.
If this post was useful, please do let me know.
-- modified at 8:17 Tuesday 18th September, 2007
Neeraj Rawat
|
|
|
|
|
window.close() and self.close();
both work in IE but it work in mozilla browser
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
In mozilla, you can close only that window through window.close() that you have opened through window.close(). This is mozilla's feature.
Neeraj Rawat
|
|
|
|
|
its means in mozilla we close that window which is open by javascript(window.open)
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
We can close only that window by "window.close()" that is opened by using "window.open()". That's the bottomline.
Neeraj Rawat
|
|
|
|