|
Are you sure that the Flash object reads the user session info from cookies ?
The thing that you have to do, is to relogin automatically. Just in your request Handler, check any Session Value, if you find it null... force relogin using Request.Cookies
Hey, why dont you strip off the flash object in the preview mode. or just preview the snapshot of the page?? It would elevate the performance of the existing page.
|
|
|
|
|
Sorry I couldn´t answer before.
To tell you the truth I dont know if the flash object takes the session from cookies, and I don´t even know how to check for it. Also I never used request and response, so I´m pretty much in the clear.
UPDATE ---
More info, I tried looking at the cookies and the one controlling the login is named JSESSIONID, so it´s session based, not just an encrypted login and pass.
I tried setting webbrowser document.cookie, but no matter how I try I can´t edit that value, a google search revealed people with the same problem as me but no solutions. I got the impression that it can´t be done since it´s a security risk for web servers.
Back to the board I guess, I need to think workarounds.
modified on Tuesday, September 8, 2009 7:25 PM
|
|
|
|
|
Dear to all,i am creating a text box on aspx page in content place holder which based on master page when i run then i use to get this error
"Control 'ctl00_abc_TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server"
Plaese answer as early as possible
rizvan sivally
|
|
|
|
|
Dear to all
where abc is content placeholder id
rizvan sivally
|
|
|
|
|
Have you placed the ContentPlaceHolder inside Form of your MasterPage ??
<form id="form1" runat="server">
...
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
...
</form>
Check whether your MasterPage looks like this ...
|
|
|
|
|
Hi,
I installed VS2008 and when trying to add anything related to Web Items, I cannot see all items. Can someone tell me how to go about installing the missing items under the Visual C# web category? Thanks to all that reply.
|
|
|
|
|
dboy221 wrote: I cannot see all items. Can someone tell me
What are those you are not able to see ?
Are you sure that When You Clicked on Add New item, You Right Clicked on > Web Sites.
because if you click on App_Data, Theme etc folder you will get less content than the Web Sites New Item.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Actually I just installed VS2008 SP1 and they are now there.
|
|
|
|
|
Firefox (not sure which version it started) supported a javascript method on the 'input' 'type=file' (you know the file browser). Actually I think there are two methods that do similar things... that allow you to upload the raw bytes from the file loaded from the input after the file has been selected.
The one I use is getAsBinary()
I don't believe IE7 supported anything like this, but does IE8 have something similar? If you don't know then is there a site similar to what firefox has where IE list all their javascript API support.
Really would like to get rid of the IFrame hack to support IE.
The Firefox section of the code is nice and clean requires nothing more than the basic html and javascript and is only a matter of parsing the request headers on the server to get the image from the http request.
In IE it's a bunch of crazy IFrame (display set to none) post and if you want info back from the server having the IFrame send the info back to the original page... all just to simulate an async call when actually IE wants to do a full post back.
This is for an internal site and right now only needs to support latest versions of Firefox and IE.
Thanx for any responses.
|
|
|
|
|
This might be a nonstandard method.
I am using IFrame for file Upload.. I dont know if IE8 does, but I would surely check this.
You can use Flash object to upload files easily too.
|
|
|
|
|
Hi,
I have an XML file and I would like to create a dynamic dropdown menu in my website using PHP that reads the items from the XML file.
Can anybody help?
|
|
|
|
|
|
Hi,
I have a web service, which I am calling from windows application. Web service simply returns "Hello World".
When first time, I am calling the web method, it is taking very long time, but second time onwards, it is working fine until I am not closing the win application.
Any solution to make this first call faster?
private void button1_Click(object sender, System.EventArgs e)
{
MyWebService.TestClass testService = new MyWebService.TestClass();
testService.RequestEncoding = new System.Text.ASCIIEncoding();
testService.PreAuthenticate = true;
testService.Credentials = System.Net.CredentialCache.DefaultCredentials;
testService.HelloWoldMethod();
}
First time when button clicked, it is taking too much time. But second time onwards, it is behaving normal.
-Amit
Amit H. Kayastha
|
|
|
|
|
Hi,
I guess the problem is the webserver. A webservice will be started (initialized) by the IIS when the first request hits the server. After this first call the service is loaded, residing in the memory of the IIS. After 20 minutes (default setting) without receiving a request the IIS stops the webservice. That could be an explanation of your problems with the first call.
For keeping the webservice "alive" you could write a small program for the webserver, calling a random page of the webservice (request on the asmx-file for example).
Regards
Sebastian
|
|
|
|
|
Hello !
i'm new to web design , and now i have a problem with my web site :
i have designed the site on 1024 x 768 .And the all pages look very good on that resolution.But when i open the page on higher resolution , the page and all the objects , text , images .. etc look smaller .Exploring the internet i see pages that reman unchanged , on all resolution.
Can someone tell me how can i do this with my site.
I have designed the site on dreamweaver Cs3 , all the page have a main table and other tables inside this.
Thank you !
|
|
|
|
|
You can use percentages and "ems" to define widths of all elements.
You can define a standard size in your css for your "body" element - and then define all other sizes relative to that using "ems".
<pre><html>
<head>
<style type="text/css">
body{
font-size: 18px;
}
table{
width: 80%;
}
table td{
font-size: 0.8em;
}
</style>
</head>
<body>
Standard text
<table>
<tr>
<td>My Text</td>
</tr>
</table>
</body>
</html></pre>
|
|
|
|
|
Always use Fixed width to all components of your html.
Use fixed Width to the page always so that if resolution changes the pages look the same.
|
|
|
|
|
When I typed "web page screen resolution" into google, it pulled up over 43 million search results. The first page of the list includes several links that answer your question in detail.
|
|
|
|
|
I would like to ask that i created a discussion forum on PHP and want to change its background color to blue and font color to grey.
I tried the following attempts which i searched:
1) $BGColour = "#CCCCCC";
2) <style>
body { background-color: #ccffcc; }
</style>
3) $colour=$_GET["bg"];
echo 'Black
';
|
|
|
|
|
First off theres a dedicated php forum on this site - which might get you more replies in future.
Now to answer your question.
If you're doing all those at once then the problem you are having appears to be that you are setting the background colour twice. The following code should work:
<?php <?php
$bgColour = "#CCCCCC";
?>
<html>
<head>
<style type="text/css">
body{
background-color: <?=$bgColour;?>;
color:#FFFFFFF;
}
</style>
</head>
<body>
Blah Blah Blah
</body>
</html>
If the bg colour is being set more than once some settings may override others. Also ife a div is the entire size of the page and that has a bg colour then the page will appear that color. I suggest doing a find on all the files in your forum for the phrase "background-color".
If you editing a css file and want to put php in it then you'll need to add a .htaccess file in the same directory as your css file that says to parse all css files as php:
# Allows css files to be parsed like php - you may need an alternative entry here
AddType application/x-httpd-php .css
Then you'll need to add:
<?php <?php
header("Content-Type: text/css");
?>
to the top of your css file.
I think that just about covers everything.
|
|
|
|
|
Hi !
I'm facing the following problem . I developed a web page (aspx - .net 3.5)
with some controls inside an ajax updatepanel.
The application works in debug mode with vs2008 development server .
when I deploy on production server, using the page controls I get the error "sys.webforms.pagerequestmanagerservererrorexception".
When I debug the code I understand the origin of the problem : Il seems that IIS ( IIS 5.1 ) clears all session variables! So the controls inside the updatepanel can't get session variables values ( this throws sys.webforms.pagerequestmanagerservererrorexception )
What's the matter with IIS ?
( Note : in web.config and Virtual Folder settings : <sessionState mode="InProc" cookieless="false" timeout="200" /> .
How can I manage this situation ? Can you help me ?
Thanks in advance .
|
|
|
|
|
what is the seesion timeout for IIS ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
the session timeout was 20 seconds.
I set it to 60 seconds : I get the same error !
|
|
|
|
|
anto2005 wrote: timeout was 20 seconds.
I set it to 60 seconds
Are you sure you set 60 seconds.. Generally the default IIS session timeout is 20 minutes.
60 seconds is very small time.
|
|
|
|
|