|
M_Menon wrote: Now i am facing the problem in Logout is that, Once i click Logout it takes me back to my Login Page.
This is because your page is cached in the user's machine. When you hit back it normally loads from the temporary internet files where normally the files will download. To overcome this problem you need to set cacheability to your pages.
Try any of this code which remove the cacheability of your web page,
Response.Cache.SetCacheability(HttpCacheability.Server);
or
Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache);
or
Response.Cache.SetCacheability(HttpCacheability.ServerAndPrivate);
|
|
|
|
|
Hi Venkatesh,
Thanks for the reply, I have tired almost everything to stop by using cookie and all other things possible. But nothing worked. I added your code but still nothing worked. I am putting my Logout Click Method Code here
********************************
HttpCookie aCookie;
string cookieName;
int limit = Request.Cookies.Count;
for (int i = 0; i < limit; i++)
{
cookieName = Request.Cookies[i].Name;
aCookie = new HttpCookie(cookieName);
aCookie.Expires = DateTime.Now.AddDays(-30);
Response.Cookies.Add(aCookie);
}
Response.Buffer = true;
Response.Expires = 0;
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
Response.CacheControl = "no-cache";
Response.Cache.SetCacheability(HttpCacheability.Server);
FormsAuthentication.SignOut();
FormsAuthentication.RedirectToLoginPage("../Login.aspx");
Please have a look and let me know if there is anything i should add anything else
Thanks
Cheers
Menon
|
|
|
|
|
You have to add my code on the Page Load event.
|
|
|
|
|
Hi
I have a requirement to install web application and webservice under same virtual directory so both applications could use same app.config file. The problem is that both applications create app code.dll file, I need to rename the file for web service but if i rename them then service does not work.
Any help of idea would be highly appreciated. I searched google as well but could not find any link which can point out the solution.
Best Regards
Rizwan Bashir
|
|
|
|
|
If you need both your website and webservice to be in one virtual directory means, you need to have only one website (One Project).
But if you still need two project, then try Web Application project type, which come in the Visual Studio 2005 SP1. These Web Application would create single dll with the given assembly name.
|
|
|
|
|
I'm using VS 2005 on .Net 2.0 and i'm having problems trying to create 2 server controls.
The one control needs to be able to display an image and the other a video and in some way i need to be able to link their properties and drive their events in my web application.Is this possible?
Can anyone guide me as how i would start this task or have any code they've used when developing similar controls that i could use to get an idea of how to proceed?
Any advice is much appreciated
Thanks
|
|
|
|
|
Page-A has some options.it is aspx page.
when i check a itme, display html page in Page-A.
It likes a html-page contain another html-page use frame.
How to do in asp.net 2.0?
Please look at this site: http://help.live.com/help.aspx[^]
I think that it displaies content is static page.
how to implement with asp.net 2.0?
thanks.
modified on Thursday, June 19, 2008 9:07 AM
|
|
|
|
|
Hi Joson,
What you could do is to use ASP.NET Master Pages.
1. Add a master page to your solution lets says MasterPage.master
2. Create your left links in it.(Outside the ContentPlaceHolder tags)
3. And create another page lets say Default.aspx, using the master page as the MasterPage.master.
4. Then based on the clicked item just redirect to the page, make sure those pages will also use the same master page.
Hope its clear..
Thx,
Gayani
|
|
|
|
|
As you say that the page will refurbish .
But "http://help.live.com/help.aspx" only refurbish Content,
did not refurbish list.
|
|
|
|
|
I need to display a list of videos in a page. how to do that in asp.net2003
|
|
|
|
|
Have you tried to displaying it in a literal?
|
|
|
|
|
Dear all,
i am using C# , asp.net2.0 ,ajax1.0
i have situation where a name is entered in text box. if that name is already exeist in database pop up the message that username already exist.
please suggest some idea or link to implement this
Thank you.
regards
imran khan
|
|
|
|
|
Hi
U can use java script's Alert function in source file
or as pavankumarchakilam suggested try this in ur codefile
Response.Write("<script>alert('Your are not logon.Please Login..')</script>")
Hope it will help u
Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
|
|
|
|
|
Hello
I'm working on web application in VS 2005. I need to create well formatted
word document report(word file has tables).
How it should be done?
I simply dont know anything about creating and writing to word document thru c#/vb/ crystal report.
Please someone tell me how to deal with this.
TIA,
Leena
|
|
|
|
|
hi i am sorry my english is too bad..
i am using session for set background-color to td or div. i am getting the color code from sql-server
if i want to change light-color related on mouseover envet how to change from orginal color to light color
please help me...
with regards,
bretto
contact:
9894340073
email: breto.be@gmail.com
|
|
|
|
|
Hi,
i have 2 textboxes and one gridview on my webpage.i popup the
gridview using popupextender.my problem is,i want to get
the selected row values of gridview(which is popup) in to
textboxes.
Thanks in advance
madhavi.kona
|
|
|
|
|
you may use following code snippet:
GridViewRow row = GridView1.SelectedRow;
TextBox1.Text = row.Cells[0].Text.ToString();
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Hi,
Im able to avoid flickering in internet explorer browser using below code
But this code is not working in NON-IE browsers. The page still flickers in NON IE browsers.
If you have any equivalent code for non-IE browsers, please write the code.
Please help me..
Thanks in Advance.
|
|
|
|
|
hi guys
i am working asp .net and i got a old project in this project all coding are on aspx pages
so i want to alert message through vb code but its not working ..
my code are as ....
Public Sub CDataList_ItemCommand(s as Object,e as DataListCommandEventArgs)
Label1.Visible ="False"
col.Text=Ctype(e.Item.FindControl("Oops"),LinkButton).Text
Response.Write("<script language="javascript">return confirm('Your are not logon.Please Login..'))
End Sub
any one know plz help me
<div class="ForumSig">krishna veer singh</div>
|
|
|
|
|
Just try the below code and see if it works or not
Response.Write("alert('Your are not logon.Please Login..')")
|
|
|
|
|
no its not working its giving error
"string constants must be closed with double quote"
krishna veer singh
|
|
|
|
|
Hey it is working
Response.Write("alert('ur not login')")
modified on Thursday, June 19, 2008 8:50 AM
|
|
|
|
|
I want to convert video files ito FLV files it works but when the size of video file is more than 200kb its wont work whats the reason give some idea about that Code is given below
Process ffmpeg; // creating process
string video;
string mpg;
video = HttpContext.Current.Server.MapPath("Uploads\\" + FileUpload1.FileName); // setting video input name with path
mpg = Page.MapPath("") + "\\video.flv"; // thumb name with path !
ffmpeg = new Process();
ffmpeg.StartInfo.Arguments = " -i " + video + " -s 480*360 -deinterlace -ab 32 -r 15 -ar 22050 -ac 1 " + mpg; // arguments !
ffmpeg.StartInfo.FileName = Page.MapPath("ffmpeg.exe");
ffmpeg.Start(); // start !
ffmpeg.WaitForExit();
ffmpeg.Close();
string AppPath = Request.PhysicalApplicationPath; //This is the path of your application
string inputPath = AppPath + "ffmpeg\\myVideo.wmv"; //Source Video Path
string inputPath = FileUpload1.PostedFile.FileName;
FileUpload1.SaveAs(MapPath("image/" + FileUpload1.FileName));
string outputPath = AppPath + "outputFolder\\" + FileUpload1.FileName.Split('.')[0] + ".flv"; //Destination Video Path
string fileargs = " -i ";
fileargs += "\"" + inputPath + "\"";
fileargs += " \"" + outputPath + "\""; //Command Line
Process proc = new Process();
proc.StartInfo.FileName = AppPath + "ffmpeg\\ffmpeg.exe"; //Path of FFMPEG
proc.StartInfo.Arguments = fileargs;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = false;
proc.StartInfo.RedirectStandardOutput = true;
proc.Start();
System.Threading.Thread.Sleep(1000);
string strErr = proc.StandardError.ReadToEnd();
proc.WaitForExit();
string output = proc.StandardOutput.ReadToEnd();
|
|
|
|
|
Have you try the vendor of FFMPEG? they are most likely to know as its their app.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
How we cal validate File size(Uploaded) in client side throug javascript
|
|
|
|