|
jainiraj wrote: that after logout from account when clik on "BACK" button of browser then still does'nt show our account????
This question is getting asked daily. Have you searched this forum? You will find plenty of discussions.
BTW, here is another idea. When log out button/link is clicked, take the user to an intermediate page say logout.aspx . Write the log out logic in this page's load. Once you are done, redirect user to the page which you want to show after logging out. Now when user clicks the back button, the intermediate page (logout.aspx ) gets loaded and it takes you again to the page from where you clicked back button.
|
|
|
|
|
its easy yar...
when u log out just give the code
//Session.Abandon();
this code will kill the session and in the page load
//if(Session["your session name"] == "" && Session["your session name"] == null)
{
response.redirect("login page.aspx");
}
Padmanabhan
|
|
|
|
|
I want to open new browser window without menu and address bar.
here is the code sample...
var url="someUrl";
var windowname="someName";
var features= "scrollbars=No,resizable=Yes,toolbar=No,location=No,meniubar=No,locationbar=No";
window.open(url,windowname,features);
In IE it works, but in FireFox i still get location bar displayed.
Can anybody help me.
Thanks
|
|
|
|
|
Hi There,
I had created popup window using div.I use this window to show error messages.This window works fine in Mozila 2.0 but in IE 6.0 the popup window is overlaped by some of my page combo box.What is the problem can anybody tell me.
Thanks.
|
|
|
|
|
If you display a div tag over comboboxes in IE 6.0, the div will be overlapped by the comboboxes. It is known bug in IE 6.0 and addressed in IE 7.0.
Either you have to hide the comboboxes when the DIV is displayed or find any other work around solution.
|
|
|
|
|
String strFilenotFound = "<script language=JavaScript> ";
strFilenotFound += " var s=confirm('Do you really want to go to this page??');if(s==true){alert('ya')} else {alert('no')}";
strFilenotFound += "</";
strFilenotFound += "script>";
if (!this.IsStartupScriptRegistered("Startup"))
this.RegisterStartupScript("Startup", strFilenotFound);
am calling this script on a button click.Am using update panel in this page. if am using the same code in some other page without update panel it's working fine.. please provide a solution...
thanks in advance..
|
|
|
|
|
What have you done to debug it ? See what happens when you try to use AJAX without understanding it at all ? It bites you.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
is there any way to fix this issue.... what is ur suggestion???
|
|
|
|
|
If you use updatepanel, use ScriptManager.RegisterStartupScript method.
modified on Monday, May 18, 2009 5:52 AM
|
|
|
|
|
Are you using master page?
|
|
|
|
|
no am not using master page..
|
|
|
|
|
Write these java script code in your page source
function load()
{
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(ShowError);
}
function ShowError()
{
}
Call load() On body OnLoad Event:-
I hope it will work for you
|
|
|
|
|
|
Hi all,
I want to create a custom button in menu of microsdoft word..can any one help me ??
i have wrote the code to open a word and just to create a button but i want the custom button in menu of the word document
Dim oWord As Word.Application
Dim oDoc As New Word.Document
'Dim oTable As Word.Table
Dim oPara1 As Word.Paragraph
Dim menu As Word.CustomLabel
Dim oPara2 As Word.Paragraph
Dim sCode As String
Dim shp As Word.InlineShape
Try
'Start Word and open the document template.
oWord = CreateObject("Word.Application")
oWord.Visible = True
oDoc = oWord.Documents.Add
oPara1 = oDoc.Content.Paragraphs.Add
oDoc.Windows.Add("dd")
oPara1.Range.Text = " Test Document"
oPara1.Range.Font.Bold = True
oPara1.Range.InsertParagraphAfter()
oPara2 = oDoc.Content.Paragraphs.Add
''''''''Button Code
shp = oDoc.Content.InlineShapes.AddOLEControl(ClassType:="Forms.CommandButton.1")
shp.OLEFormat.Object.Caption = "Click Here"
'shp.OLEFormat.DisplayAsIcon = True
sCode = "Private Sub " & shp.OLEFormat.Object.Name & "_Click()" & vbCrLf & _
" MsgBox ""You Clicked the CommandButton""" & vbCrLf & _
"End Sub"
'oWord.VBE.VBProjects().VBE.ActiveVBProject.CodeModule.AddFromString(sCode)
oWord.VBE.VBProjects.VBComponents("ThisDocument").CodeModule.AddFromString(sCode)
shp.OLEFormat.Object.Caption = "Click Here"
|
|
|
|
|
Gee - aren't you the moron ? What does this have to do with .NET at all, let alone ASP.NET ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I CANT UNDSTAND WAT U TRYING TO TELL..
yES I WANT TO CODE IN ASP.NET TO BRING THE BUTTON IN WORD
TATS WAY I POSTED IN ASP.NET MESSAGE BOARDS
|
|
|
|
|
1. Turn CAPS LOCK off
2. Try being clearer in yopur question. All you talked about was adding a button in Word, Word is NOT ASP.NET
3. You cannot do this in asp.net, things like this are simply not allowed as they leave the system wide open for viruses.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Caps lock On or Off is not a problem now..if u can just answer for my question ..
it is possible to open a word from asp.net apllicatopn and add a custom button
Try to Search In googl e
|
|
|
|
|
cbenan wrote: Caps lock On or Off is not a problem
Typing in capitals is the same as SHOUTING - its considered rude.
cbenan wrote: it is possible to open a word from asp.net apllicatopn and add a custom button
As I said in point 3 of my previous reply NO
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
I am trying to export a chart using the Excel11 object from C#. I can
properly open workbooks and read cells, but calling Export() on the Chart
object throws a COMException
Exception: System.Runtime.InteropServices.COMException (0x800A03EC):
Exception from HRESULT: 0x800A03EC.
at Excel._Chart.Export(String Filename, Object FilterName, Object
Interactive)
at MBCCS.LeParc.Importer.Importer.GetImageInfoFromWorksheet(Worksheet
worksheet) in d:\source\leparc\importer\importer.cs:line 211
The line causing this is:
tempChart.Chart.Export(filename, "JPEG", Missing.Value);
Please help me how to solve this issue.
|
|
|
|
|
Hi all,
I am newbie in web development. I am using vs 2005, ASP.NET with c#.Currently i am using UpdatePanel(AJAX) to update textbox value from gridview by adding a commandfield(SELECT) the DataKeyNames(values to be pass when event selectIndexChanged fired) in gridview. But it seem very slow in displaying/updating textbox.
So,may i know is a possible to do it by using PageMethods?If yes, please direct me to the correct way
Any tips/helps are welcome,
Thanks in advance.
Regards
cocoonwls
|
|
|
|
|
cocoonwls wrote: But it seem very slow in displaying/updating textbox.
Moving to PageMethods won't change the performance drastically.
At the first first place, you need to know which action is so much taking time.
As far as I think you need to optimise you SQL statement.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi Manas Bhardwaj,
Thanks for reply.I think my SQL is not a problem here. I had tried not to use updatepanel to update textbox, its looked fast than used updatepanel. My purpose to use updatepanel is aim to update certain data without refresh whole page.
Manas Bhardwaj wrote: Moving to PageMethods won't change the performance drastically.
I had read other resource that if using page methods will improve the performance instead of using updatepanel.Any comment/suggestion?
Thanks in advance
regards
cocoonwls
|
|
|
|
|
Create a web service to process the business logic and call it in javascript. But you can update the textbox in javascript based on the returned content from webservice.
|
|
|
|
|
Hi,Ramesh
Is there a good example?And is possible to use it to pass a row data and display in textbox?
thanks in advance
regards
cocoonwls
|
|
|
|