main page.aspx

Last post 11-07-2009 1:02 PM by alaa9jo. 7 replies.

Sort Posts:

  • main page.aspx

    11-02-2009, 5:49 AM
    • Member
      point Member
    • imranwahait
    • Member since 10-27-2009, 11:54 AM
    • jeddah
    • Posts 16

    hello sir i am wahab,as  i am working on asp.net with vb on web site

    as i have taken an image on top of the page in the side of thepage i have taken the hyperlinks

    n when i am running the page n clicking the hyperlinks the image is also getting blink,so how to 

    stop the image blinking,if i am clicking the hyperlinks the image should not blink as i have taken the update panel also,can anyone of u help me to solve the issue

  • Re: main page.aspx

    11-02-2009, 8:03 AM
    • Member
      203 point Member
    • nareshyalagala
    • Member since 05-23-2009, 10:34 AM
    • Hderabad
    • Posts 28

    Make image border=0px in ur aspx page... Blink means is it gettin blue border around image if u place image in hyperlink tags??

    If so in img tag <asp:image border="0px" ....... > . Then no blue border wil appear 

    Naresh.Y
    nareshyalagala@gmail.com
  • Re: main page.aspx

    11-02-2009, 12:08 PM
    • Member
      422 point Member
    • urstop
    • Member since 12-04-2007, 3:24 AM
    • Posts 97

    Do you mean to say, that you are using update panel and still your page does a full postback  when you click on a link button which is inside the update panel?

  • Re: main page.aspx

    11-04-2009, 2:52 AM
    • Member
      point Member
    • imranwahait
    • Member since 10-27-2009, 11:54 AM
    • jeddah
    • Posts 16

    bro i am using an image and hyperlinks in the master page n i am running the main.aspx page n when i am clicking the image is also getting flickered no blue border noting bro,after taking updatepanel also 

  • Re: main page.aspx

    11-04-2009, 3:06 AM
    • Member
      point Member
    • imranwahait
    • Member since 10-27-2009, 11:54 AM
    • jeddah
    • Posts 16

    i working on website development n as i have taken an image n some hyperlinks in the master page to dat master pager i attached the aspx page,at the run time while i am clicking the hyperlinks the image is flikering,so wat the solution for image not fliker,

    i.e; if i am clicking the hyperlink the related page should open and the image should not get fliker,i am asking this question in the forum for the third time,but still now i am not getting any resoponse,so can any one of u help me to solve my problem

    my emailId:imranwahabit@gmail.com 

  • Re: main page.aspx

    11-04-2009, 3:27 AM
    Answer
    • Contributor
      6,187 point Contributor
    • alaa9jo
    • Member since 07-01-2009, 1:17 PM
    • Jordan
    • Posts 1,131

    My friend,MasterPages always postback/flicker when you want to redirect to any page,it's by design..you can't do anything about it at all..using ajax or not!those flickers are actually a full postback for whole page!

    So what is the solution?

    If those flickers are an issue for you then you need to forget using master pages and use IFRAME..no other option! but there is another option but it depends if it's OK for you :

    You can hide those flickers in IE only by using Page-Exit tag like this:

    <meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Blinds(Duration=2)" />

    This tag works only for IE as I said earlier and it HIDES the flickers with a fade animation,but it still do a full postback that's why I said it HIDES not prevent!it's just an option that I thought you may want to know about it otherwise you have to use IFRAMES!

    NOTE: From my experience,I faced issues with using AJAX and iframes,and since iframes are not supported in XHTML,I used object tag instead of iframes like this:

    <object data="Default.aspx" type="text/html" style="border:0">
    </object>

    and by the way,you need to remove the DOCTYPE from those pages that you are going to use in the object to hide the border because using the style alone will not work!

    NOW it's your call to choose which option to follow! ;)


    Best Regards,
    Ala'a Alnajjar
    ----------------------------------------------------
    Please remember to click “Mark as Answer” on the post(s) that help(s) you even if they were for the same person.
    Also remember to close the thread by selecting “Resolved”,you will find it in your first post.

    Convert C# to VB.net and visa versus

    My Webblog
  • Re: main page.aspx

    11-07-2009, 8:52 AM
    • Member
      point Member
    • imranwahait
    • Member since 10-27-2009, 11:54 AM
    • jeddah
    • Posts 16

     bro where to insert the above code,i;e in which i should write it

    <object data="default.aspx"-------------------------->

    n in which page i have to remove the doctype

  • Re: main page.aspx

    11-07-2009, 1:02 PM
    • Contributor
      6,187 point Contributor
    • alaa9jo
    • Member since 07-01-2009, 1:17 PM
    • Jordan
    • Posts 1,131

    Since you are following my suggestion (using object tag),I'm sure that you have deleted the master page and changed all content pages to a webforms (normal page which doesn't have content placeholder).

    After you have done that,you must have a page (which we will consider it as a main page) that we wants it to be  just like a masterpage but the difference is that it's a normal page,then add the object tag just in the place where your pages are going to be viewed...

    To draw the picture for you...do you remember using master page,in the master page you have a content place holder right,and the other pages have a content that loads automatically inside the contentplaceholder of the master page,now in our case we are going to do all that manually but we need to keep the same methodology:

    1)We will have a normal page but it's going to be a container for other pages,so create a normal page then put in it the object tag but make sure that it must be runat="server",yeah it means:

    (Masterpage + contentplaceholder = normal page + object tag)

    2)all other pages that have a content must be changed to a normal page (a page without that content that were used to be created inside the contentplaceholder of the deleted master page)

    3)change all hyperlinks (that were supposed to redirect to a different page) to linkbuttons and in the code of those linkbutton,you change the data of the object tag to the url that supposed to be viewed.

    for example: if we have an object which it's id is "myObject" and it's runat=server,and the linkbutton was supposed to redirect to default.aspx page which is in the root of your website,code of that linkbutton must be like this:

    myObject.Attributes.Add("data",ResolveUrl("~/Default.aspx"));

    4)make sure that your linkbuttons are inside an update panel,and the object tag is inside another one too..means 2 update panels,that way when you click on the linkbutton,it wont's post back and the object tag when it loads the default.aspx page is not going to flicker too..

    if you are familiar with javascript,you will not need step 3 and 4 and you will do it differently but same concept must be done..(changing the data of object to the url of the hyperlink/link button)

    One more thing,all those pages that are going to be viewed inside that object tag (like default.aspx in our example above) shouldn't have DocType in it's html because if you leave it,an ugly border will be created by the object tag around the page,so you need to remove the doctype as I said and make sure that the object tag's border must be 0,that way the border will never appear and the user will think that he is seeing just one page.

    I know what you are going to say : so much work to be done but you have no choice...

    If you need more help just let me know...OK

    Best Regards,
    Ala'a Alnajjar
    ----------------------------------------------------
    Please remember to click “Mark as Answer” on the post(s) that help(s) you even if they were for the same person.
    Also remember to close the thread by selecting “Resolved”,you will find it in your first post.

    Convert C# to VB.net and visa versus

    My Webblog
Page 1 of 1 (8 items)