Web Forms :: Popup Window Of IE Is Not Coming With Title?

Feb 4, 2011

I am trying to open a new window by using javascript and .net code as given below.

And expecting to have a title of new IE window which is set in Javascript(Mark in Yellow), but it displaying it as "Untitled Page".

[code]....

View 9 Replies


Similar Messages:

Web Forms :: Return True Or False From Popup Window To Parent Window

Sep 25, 2010

I am trying to return true or false from popup window to the parent window. Actually the parent window has a button control, which on click popup another window. The popup window holds some emailing data and a button "send". This "send" button onclick send email. Now I want to return true if the email is successfully sent otherwise false, to the parent window. Depending on returning value a label present on parent window displays a text message. But I am not able to implement it. Because it might happen that the popup window is blocked by web-browsers popup blocker or popup window is accidentally closed by user. So how can I confirm to parent window whether or not the email is successfully sent?

View 5 Replies

Web Forms :: Call Parent Window Method From Model Popup Window?

Nov 17, 2010

i have a page Parent.aspx,, and this is responsible to open the window as a model dialog(model.apsx). model.apsx has OK button when we click on this button then server side method called to save the data. while saving the data it return the id of saved data. i need this id on my Parent.aspx.Cs file, so how can i get this id on my Parent.aspx.cs file?

View 5 Replies

Web Forms :: Close Popup Window And Open Page In Parent Window?

Mar 10, 2011

I have a login page that is loaded in popup window (colorbox) and after user logs in it should be closed and parent window should be loaded with new page.

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Do While reader.Read()
If Trim(reader("ZAP").ToString()) = Trim(textBoxZap.Text) Then
Session("A") = "1"
Response.Redirect("~/default.aspx")
Else
lblErr.Text = "incorect"
End If
Loop

So once the buton is clicked and user name and password is corect popup window should be closed and user redirected to default aspx.

View 1 Replies

Web Forms :: Retrieve Value From Popup Window Opened Using Window.open?

Apr 28, 2010

I am trying to open a popup window from main window using window.open() method. How to get back the value from the called popup window to the calling window in vb.net, basically i need to get back the value and populate in the text box available in the main window.

View 3 Replies

Web Forms :: Passing Variables Between Parent Window And Popup Window

Apr 29, 2010

I have a page wich opens a popup window. I want to pass some variables, like some textbox.text and 2 dataTables from parent window to the popup window. And then I'll have to return some vars from popup window to parent window. So what is the best way to do this,

1) using Sessions("")

or

2)passing the variables as parameteres:

LinkButton1.Attributes.Add("onclick", "window.open('popup.aspx?field1=" & value1 & "&field2=" & value2 & ......

I don't know if it's appropiated passing 8 or 10 variables as the option2 because the user will see a very long url with all the variables, but maybe is more efficient than using Sessions.... Anyway, could somebody clear me up?

View 12 Replies

Web Forms :: Accessing Textbox In Parent Window From Popup Window

Feb 15, 2011

I am using a master page in my project. I opened a popup window from content page. What I want to do is, when I close the popup window, the data in the textbox available in popup should be assigned to a text box in parent form. But I dont want to refresh the parent window when I close the popup window. Can any one tell me how can I access textbox in a parent window from a popup window without refreshing the screens.

View 3 Replies

MVC :: Browser Window Not Coming When Compiled?

Feb 25, 2011

I am a beginner in MVC. I downloaded a project & compiled it. The browser window came. But now when I compile, the browser window is not coming. I am using VS2008.

View 2 Replies

C# - Javascript Window.event Coming Up Null?

Oct 25, 2010

I am using a CustomValidator in ASP.NET as follows:

<asp:CustomValidator ID="cvComment" ControlToValidate="txtComment" Display="None"
EnableClientScript="true" ClientValidationFunction="validateComment"
runat="server" ></asp:CustomValidator>

And this is the function that gets called:

function validateComment(source, args) {
var reComment = new RegExp("^[a-zA-Z0-9',!;?@#%*.s]{1,1000}$");
var validComment = reComment.test(window.event.srcElement.value);
if (!validComment)
alert("The comment has illegal characters");
args.IsValid = validComment;
}

Upon clicking the button that triggers the validator, the application breaks and I can see that the window.event property is null, so obviously there's a null reference trying to match the regEx. My question is why could the window.event be showing up as null? I could've sworn this was working before.

EDIT:

I have modified the function as such:

var check = document.getElementById(source.id);
var checky = check.attributes["controltovalidate"].value;
var checkyo = document.getElementById(checky);
var validHour = reOutHour.test(checkyo.value);
if (!validHour)
alert("The time is incorrectly formatted");
args.IsValid = validHour;

Now this is working on Internet Explorer, but not on Firefox...

View 1 Replies

Web Forms :: Open Popup Window With In Another Window

Aug 26, 2010

I have an aspx page which contains a user control(a gridview). When I click on a link button in the gridview, I will open a popup window(An aspx page) successfully. When I click on save button in the popup, I am saving the details and refreshing the parent page successfully. I have a button in popup window. My requirement is:

When I click on the button inside popup window1, I would like to open another popup(aspx)(Say popup window2) in a new window without closing popup window1. When I save some changes in popup window2 and click on save button in popup window2, I need to close it and refresh popup window1.

View 2 Replies

Javascript - Passing Data Between A Parent Window And A Child Popup Window With JQuery

Dec 3, 2010

I have the following HTML

<tr>
<td class="label" valign="top">
Affiliate Party
</td>
<td class="field">
<input type="hidden" name="ctl00$MainContent$ExternalAccountAttributes$AffiliatePartyId" id="AffiliatePartyId" />
<input name="ctl00$MainContent$ExternalAccountAttributes$AffiliatePartyName" type="text" id="AffiliatePartyName" class="PartyLookup" />
</td>
</tr>

and the following Javascript/jQuery

$(".PartyLookup").after("<img src='Images/book_open.png' class='PartyLookupToggle' style='padding-left:4px;' />");
$(".PartyLookupToggle").click(function () {
window.open("PartySearch.aspx", "PartySearch", "width=400,height=50");
return false;
});

I need to be able to flag ANY PartyId input field with class="PartyLookup" so that it will modify the DOM and include the image next to the input field. The popup window returns data to populate both the hidden and text fields, but since the click() is generic I need to pass it the ID of the input field.

View 2 Replies

Pass Control Value From Parent Window To Popup Window's Code Behind

Apr 16, 2010

I want to receive value from parent's control to popup window's code behind. for example

<asp:RadioButton ID="rdoRate" GroupName="CouponType" value="0" runat="server" checked/>Rate
<asp:RadioButton ID="rdoAmount" GroupName="CouponType" value="1" runat="server"/>dollar

and recive selected radiobutton's value from popup window's code behind. My Solution is make querystring and pass the value.

for example >
window.open(url + ?selectedRadioVal=" + $("#~~checkedradiovalue~~) .. blah balh)
and receive the value by Reqeust.Querystring.Get().

But I can't send very long string. (maybe the url length is limited, right? Is there any good way to solve?

View 1 Replies

Javascript - IE - Get Popup's Opening Window When Using Window.open (url)?

Sep 23, 2010

we are running a click-to-call service, my idea is basically like this: website have a link on their page, when the link is clicked, a web page(say it is popup.aspx) hosted on our server is popup, user can input their phone number, and click "call me" button to let the website call him. In the button click event, I want to get Request.UrlReferrer, then query the db to get website's phone. But in IE, Request.UrlReferrer is null(firefox is ok, not test chrome yet),my question is how to get opening window' url in IE? we put popup.aspx on our server because

our client website is not force to use asp.net. we have the control what we put on the popup window, and can modify the page just from our side, if we put the pop window on our partner's side, if we have 100 partner, and we change the page's design, we will notify everyone of them to change this, change that. we can implement a statics system to know how popup a day, which site is most popular,etc

View 1 Replies

Open A Popup Window On Top Of A Popup Window

May 7, 2010

I have a scenario where I have a popup window open and that will have links to open up another window that's going to pop open on top of the already open popup window. I've tried all sort of tricks (javascript window.open, target="_blank" etc.) but nothing seem to work. It always was opening the page on the already opened popup window.

View 1 Replies

Writing To And Retreiving From A Window File's Title, Subject Or Comments Fields?

Jul 9, 2010

VWD 2008 Express. Visual Basic.

When you look at the properties of a Windows file, it has a "Summary" tab. On this tab are fields that can be modified, such as Title, Subject, Comments. How from code behind could I modify these fields and retrieve their values?

View 2 Replies

Web Forms :: Open Second Popup Window?

Feb 3, 2010

how to open the second pop up window. as i always replace the extisting pop up window if type the following code:

Page.ClientScript.RegisterStartupScript(this.GetType(), "openpopup"
"<script language="javascript"></script>)o;

View 2 Replies

Web Forms :: Get Value From Popup Browser Window?

Jun 28, 2010

i am writing an application, and i have a link on a page that opens its url in a new browser window. on this new window, i have an asp.net gridview with radio button on each row and each row has a staff_id, and staff_name column, and the gridview has datakeys as staff_id, staff_name.

my question is that i want to be able to select a row (using the radio button) and when user clicks a button on the new window, and i want to populate two textboxes on the parent window with the staff_id and staff_name values from the selected row(in the popup window), and if possible close the popup window.

View 1 Replies

Web Forms :: Open A Popup Window In C# Without Using RegisterStartupScript?

Aug 5, 2010

I can't use RegisterStartupScript('window.open...) because then Google Chrome silently blocks the popup window. I can't use javascript onclientclick in the markup, since I have to open the popup window after running some code in the button click event handler.

View 2 Replies

Web Forms :: Add Items To Combobox From Popup Window?

Dec 27, 2010

I've a webform that has a formview in insertmode that among others has a combobox with a datasource. The problem is that user needs to have a way to add new items to combobox directly rather than having to go to mainteinance webform that deals with the info related with the table that feeds combobox. So I thought that I should have an update panel and put the combobox in there together with a button to open a popup window to add the new record, close when done and update combobox with newly added item.

In theory that's what I want. What I require are examples of how to do that in the best way. I thought first of using javascript but how do I know when the popup window was closed? how to trigger update panel?

View 3 Replies

Web Forms :: Refresh And Close Popup Window?

Mar 5, 2010

I have all of my code into one ASPX file. Called Scheduler.aspx. I am using the DayPilot scheduler and the Obout Flyout. But i moved it all to one page to make it simpler. But one thing I am having probelms with is; when I save my popup it should close and refresh the page. And when I hit the close link it should close (which it does) and then refresh the popup when I click on it to open again (which it doesnt). Since I have this all on one form and I am calling the popup using the flyout I can't figure out how to do these.

My page is called: Scheduler.aspx

My Scheduler is called: dps

My flyout is called: EventFlyout

Right now I have the flyout opening from a label. So when I click on the label my flyout opens, I insert data and it saves to the database. But i have to close my browser and open another to get the data I just imputed to show.

View 9 Replies

Web Forms :: Opening New Window Popup Through Code Behind?

Apr 29, 2010

I have a asp.net linkButton on my page. on click of link button i hv written a code on linkbutton click event. after executing that code lastly i want to open new window. I had used a following code for that.

//Script to pass to the RegisterClientScriptBlock method

View 4 Replies

Web Forms :: Adjust The Size Of New Popup Window?

Feb 23, 2010

I have a code like this

Button1.Attributes.Add("onclick", "javascript:window.open('default2.aspx','height=200,width=400,status=yes,toolbar=no,menubar=no,location=no')")

this is open new window default2.aspx but I want to restirct the size of this new window.. It shows the maximize window size with this code.... what should I do to resize my new open window???

View 7 Replies

Web Forms :: New Popup Window - Resized With An Image In It?

Feb 13, 2010

I have a program that gets data from an SQL database via some comboboxes. When the user has selected what they are looking for, I want to have a "preview" button which will generate the image (I've written this code already) and display it in a small, resized popup window.

A) I'm pretty new to this ASP, but know VB pretty well.

B) I have no idea how to make a new popup come up

C) How can I have the code written for the image generation point to that popup window? Also, I'm storing the image in memory. As this will have serveral users at once, it probably isn't a good idea to be saving this down. Here is the code for the file generation.

preview.aspx.vb

(There is no code in the aspx file, this is all in the codebehind file. Most of this isn't useful except for the end when I save the image as a stream - I'm trying to figure out how to link this stream to a new resized popup window.)

[Code]....

View 3 Replies

Web Forms :: Hyperlink Redirect To A Popup Window?

Aug 8, 2010

How do I make my hyperlink redirect to a popup window?

View 1 Replies

Web Forms :: Popup Window OnSelectedIndexChanged Of A Dropdownlist?

Jan 18, 2010

I have a gridview where the dropdownlist is built during the RowDataBound event. I need to be able to poup a window based on the selection from the dropdownlist Items.

I cannot use Repsonse.Write("window.open('link');") coz i will need to redirect to the webpage which clears out the search on the page.

I need to be able to open a new window with the link and continue executing code on the page.

I have tried,

1) Page.ClientScript.RegisterStartupScript(Me.GetType(), "openwindow", "window.open('" & link & "');", True)

2) Dim s As System.Windows.Forms.HtmlWindow s.Document.Window.Open(link, "", "", False)

3) Process.Start(link) - this works locally but dosent on the testbox

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved