|
I have used window.open() to open a pop up window.But when i run it window doesn;t have any scrollbar even I have used "scrollbars=yes" in window.open().
please guide me.....
|
|
|
|
|
Give the full code of window.open.It will help to answer
|
|
|
|
|
protected void LinkButton1_Click(object sender, EventArgs e)
{
//Response.Redirect("Registration.aspx");
LinkButton1.Attributes.Add("OnClick", "window.open('Registration.aspx',null,'Height=600;left=50;Width=30;top=50;menubar=no;toolbar=no;scrollbars=yes;resizable=no');");
}
this is the code for popup window.....
|
|
|
|
|
<a href="javascript:void(0);" onclick="<%Response.Write("javascript:window.open('yourpage.aspx"+"','large','resizable=no,width=900,height=600,toolbar=0,menubar=0,scrollbars=1,location=0,resizable=0');");%>">
<IMG src="images/edit.gif" alt="Edit" title="Click Here For Editing Title" border="0" /></a>
|
|
|
|
|
In asp how we can use concept of gmail or yahoomail that after logout from account when clik on "BACK" button of browser then still does'nt show our account????
I think it session is used but i don't know how to use???
|
|
|
|
|
|
You need to check the value of Session on each page inside the Load event.
And if it is null or having undesired value than redirect the user to login (or whatever) page.
Hope this helps.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
But that will not solve the back button scenario what OP is referring to. Browser loads from it's cache when back button is pressed and none of the server side events are executed.
|
|
|
|
|
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
|
|
|
|