.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

how to clear iframe problem

Posted By:      Posted Date: October 01, 2010    Points: 0   Category :ASP.Net

my problem in this site


i require Login page opened in seprate window what id do

View Complete Post

More Related Resource Links

iframe and setfocus problem


I have a page with an iframe on it in which I load another page.
On this iframe page I have some textboxes above eachother.

When the first textbox is filled with a code the textchanged event is called 
and the code is checked with the database.
After the code has been changed to the right one (if needed) I want the 
focus to go to the next textbox.

So at the end of the event I do: Page.SetFocus(txtbox2)

But after the postback refresh, the focus is gone.
I have also put the control to be focussed in a session variable and then in the page_load event I set the focus to the control in the session variable, but still no focus on the textbox.
How can I put it on the 2nd textbox? 
all is done in the Iframe page codebehind.
I need this focus because the two textboxes are filled via bar code reader and after the scan an "enter press" is done automatically and to be able to allow two scans after each other this focus change is needed.

Problem on loading sharepoint pages in Iframe.


Hi All,


I am using WSS 3.0.

I have 2 sharepoint application pages. ie, the pages A(http://site1.com/A.aspx) and B(http://site2.com/B.aspx).During the page load of A, we create an iframe and load the page B on it.  But it does not work, the login page shows in my iframe. These two pages may be in same domain. Is there any problem on loading sharepoint pages on iframe?


Please help me.


Thanks in Advance...


problem in dsiplaying pages inside iframe


hi all how are u?

before some days , i was able to display any facebook page inside IFRAME in Our Website,

but now i cannot ( Security issue).

any one know any solution for that?

we want to display Our FaceBook Pages inside Our website.

please help.

ModalPopupExtender and IFrame problem


Here is my problem, please give your suggestion:

I have product list on parent page in grid view. When user click on insert new product button, the modal popup will display. Modal popup has <asp:panel>. In asp:panel, I have IFrame for AddProduct.aspx page.

1) I can add, modify or delete the product on modal popup(AddProduct.aspx) but when I close the popup window, I want the product list on parent page should be refresh. So we can see updated data.

2) Right now, I am using static IFrame src="AddProduct.aspx" but I want to pass the selected product ID from parent Grid view using query string like src="AddProduct.aspx?ProductID=20".

Please guide me how to do this?? Thank you.

Iframe problem



I am loading a page in a iframe.

<iframe src='http://www.xxxx.com/somepage' />

When I load this iframe in a page its not displayed. keep on redirecting.

If I visited the iframe url on first time then if i load the iframe then its loading. How to solve this problem ?

Please let me know if anyone help me on this.


Problem with Modal Window and Iframe


I have a web page with a link that opens a modal dialog.Im using ajax toolkit. Asp.net 2.0

On the web page I have an iframe displaying some content. When I click on the button to show the modal box it appears behind the iframe in some browsers. In IE 8 it show in front of the iframe. In others its located behind out of view.

How do I fix this so it always appears on top?

iframe Loading Image show problem


i am  loading a ifrmae when we click a button .i am require a loadimage.show when i frame laoding time and disapper when i frame loaded

Iframe / window.parent problem



I'm trying to make an ajax-enabled uploader so I'm using an Iframe to upload the image and the Iframe is embedded in an Update Panel which helps me prrevent a full page postback.

The problem is that from the Iframe, I have to call a script that clicks a button from the parent page  using the a ScriptManager's RegisterStartupScript attribute. The script "iFrame_OnUploadComplete()" clicks a button that uploads the file. I call the script from the Iframe like so:

 protected void btnUpload_Click(Object sender, System.EventArgs e)

ClientScript.RegisterStartupScript(Page.GetType(), "Upload Completed", "window.parent.iFrame_OnUploadComplete();", true);


The above method calls the parent page which helps save the uploaded file.

The above method works on my local host where I call Iframe URL from the parent page like so:

        <iframe src="http://localhost:4145/CustomControls/UploaderAssistant.aspx" >

This works perfectly on the local host.

But when we move to IIS, and we use an absolute domain name like so

        <iframe src="sub.domain.com/CustomControl

iframe model window problem


i am using the and model window



and demo



when we click on demo page i click outside the iframe

the iframe is close

what is the jquery  code for clicking  outside of the iframe then iframe is not close

and how can load iframe useing jquery ajex


Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:

Regrading Sharpoint 2010 problem and solutions

We can write your question and problem on this blogger.you get ans.use.

This sharpoint 2010 problem solving threads

Hi friend,

you can use this thread to solving problem and solutions.

Virtual Path Problem


 I get the following error on last line below (working on remote host): 'E:\web\sfcascom\ls_admin/uploads/images/001.JPG' is not a valid virtual path,

Note that the slashes go in different directions

I've tried a number of things but nothing seems to work. Thanks-


Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Drawing.Imaging
Imports System.Web.UI.WebControls

Imports System.Drawing.Imaging.ImageCodecInfo
Partial Class Protected_imageupload
    Inherits System.Web.UI.Page
    Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
        ' Initialize variables
        Dim sSavePath As String
        Dim sThumbExtension As String
        Dim intThumbWidth As Integer
        Dim intThumbHeight As Integer
        Dim sFilename As String = ""
        ' Set constant values
        'sSavePath = "images/"
        sSavePath = Server.MapPath("~/") + "ls_admin/uploads/images/"

        sThumbExtension = "_thumb"
        intThumbWidth = 160
        intThumbHeight = 120

        ' If file field isn?t empty
        If FilUpload.PostedFile IsNot Nothing Then
            ' Check file size (mustn?t be 0)
            Dim myFile As Http

Strange Photo upload problem


I'm working project it's live on shared hosting

we'er uploading photos to a file on the server everything works fine the photo is resized renamed and sent to the folder

the upload page returns the thumbnail and the full size photo it's there all the photos have to be approved by an admin

twice now after they have been approved they disapear I checked the folder they are not there could there be anywhere

on the server they could get hung up before they go into the folder I have it setup so when you delete the data base entry it deletes the photo from the folder othe than that you need to open the folder and delete the photo this has hapened twice now I tried to recreate it with no luck

thaks for your help in advance

ASP.Net Caching problem ??


I'm having a problem with an asp.net 3.0 application using a gridview to display data.  The problem seems to be that despite a brand new .selectCommand being sent to the sqlDataSource, the gridview starts displaying data from *someone else's* query.  For example, user A is logged in and will be working fine until a few page submissions later when the gridview data starts suddenly showing information that belongs to another user. 

This is my first asp.net application, though I've been working with classic asp and ADO for years so I'm used to sending a SQL string and getting back the results from that string.  Apparently there is a complex caching system which is interferring which I do not at all understand so at this point I just want to stop the server from caching any data whatsoever.  Is this possible?

Any and all help will be much appreciated!!

Could some one tell me whats the Problem with this String Manipulation ??? C#.net



I store some values from code behind to a label which is Hidden !

<asp:Label ID="lbl_Hidden" runat="server" Visible = "false"></asp:Label>

and at the page load event i retrieve the value of the label & assign it to a string !

stringvalue = lbl_Hidden.Text;

Now i dont know why this manipulation does'nt work !

I've a character 'A' in the string and i'm unable to replace it with a space !

stringvalue.Replace(A, " ");

Wot do u think abt it ????

RaiseEvent problem


I have a parent page ProdView.aspx and two static UserControls, UC1 and UC2. Each UC is in an Ajax accordion pane and the accordion inside an updatepanel.

UC1 has a Gridview footer with couple of textboxes and a link button that fires an Add Row insert procedure. I want to Raise an event that will rebind the UC2 after the row insert in UC1.

First I created the sub delegate and event in UC1:

  • Public Delegate Sub MyRefresh(ByVal sender As Object, ByVal e As CommandEventArgs)
  • Public Event Refresh_UC1 As MyRefresh

In the same UC1 the Insert procedure that fires the insert and RaiseEvent:

Sub PricingGrid_Insert(ByVal sender As System.Object, ByVal e As EventArgs)
       Dim myConn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("LocalSqlServer").ConnectionString)
       Dim myCom As SqlCommand = New SqlCommand("AddRow", myConn)
       myCom.CommandText = "AddRow"
       myCom.CommandType = CommandType.StoredProcedure


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend