|
Hello all,
I am trying to find a way of telling in a .net page load method whether or not it was called by a browser extension.
The reason it came up is that I recently installed the skype extension for Firefox and found that a page I was developing was suddenly reloading every 2 seconds. The main code for the page is called within a "If Not Page.IsPostBack Then" statement in the page load, but the reload from the extension was not being caught by this. After a lot of searching it turned out to be the skype extension.
It is no problem for me to uninstall the extension, but I know there are a few of our clients that use skype and the skype add-on. It would be a big inconvenience to them if they would have to disable and re-enable the add-on just to view certain pages in our app.
Is there anyway of telling if an extension calls a reload instead of ordinary page events?
thank you ,
Aaran
|
|
|
|
|
Hello All
I need to search pattern in Array list using Javascript.
Like there is one Array which have five value like
a[0] = 'apple'
a[1] = 'car'
a[2] = 'car1'
a[3] = 'bike'
a[4] = 'office'
a[5] = 'computer'
i want find those array list which are contain 'ca' character
OUTPUT:- like
In another array have contain two element like car and car1
can you please help me out how it possible in javascript?
Thanks in Advance.
Anish Patel
|
|
|
|
|
anish27patel wrote: In another array have contain two element like car and car1
can you please help me out how it possible in javascript?
var result = new Array();
for(var count = 0; cout < mylist.length; count++)
{
if(mylist[count].match("ca"))
result[result.length + 1] = mylist[count];
}
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
Hi i am binding my database values to repeater control using pageddatasource...,
now i want to show above the repeater...,
total number of records and displaying values...,
means for ex:
if i have 13 records and my paging size is 5
thn load time it have to show like this...,
1-5 from 13
and then pageindex change
it have to show
6-10 from 13
thne another page index it have to show
11-13 from 13
if i click prev button
then it have to show
6-10 from 13 like
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
i am using asp.net routing which is working in my local machine but not working in remote server(webhost4life.com)
what are the steps to make to work my website on the remote sever.
Any answer will be helpfull!
Thanks in advance,
Viswesh.
|
|
|
|
|
It is considered very rude to mark your post as Urgent.
only two letters away from being an asset
|
|
|
|
|
visukk wrote: what are the steps to make to work my website on the remote sever.
You need to create Virtual Directory on IIS and set the proeprties for Virtual Direcotry
|
|
|
|
|
hi Abhijit Jana
i have created virtual directory in the iis and added .* extension eventhough it is not working.
how to set the properties for virtual directory on remote server. here i am using webhost4life.com for hosting my website.
Thanks in advance,
viswesh.
|
|
|
|
|
visukk wrote: it is not working
What do you mean by not working ? Are you getting any specified error while accessing the page?
|
|
|
|
|
hi Abhijit Jana,
when i accessing the page i getting the following error.
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Please try the following:
* Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
* If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
* Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)
Technical Information (for support personnel)
* Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
* Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.
but in my local machine its working fine.
|
|
|
|
|
|
How to implement those steps in webhost4life.com web server......?
Thanks in advance.
|
|
|
|
|
hi Abhijit Jana
How to implement those steps in webhost4life.com web server......?
Thanks in advance.
visu.
|
|
|
|
|
hi
i used update panel in my image button control but till now i didnt stop the postpack the image button ...
this is my code snippet
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
</asp:ScriptManager>
<div>
<table>
<tr>
<td>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
<ContentTemplate>
<asp:ImageButton ID="ibMap" runat="server" BorderWidth="1px" Height="462px" Width="611px"
ImageUrl="~/App_Themes/Customgraphics/FOREST.png"></asp:ImageButton>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
</div>
</form>
</body>
~~~~~~~~~~~~~Raju~~~~~~~~~~~~~
|
|
|
|
|
Are you asking a question or just showing us what you learned today?
only two letters away from being an asset
|
|
|
|
|
You are using Visual Studio 2005 or Visual Studio 2008 ? If Visual studio 2005 then chose "AJAX Enabled Web Site " from New > Web Site .
Thanks
|
|
|
|
|
set updatemode="conditional" too.
Regards
Keyur Satyadev
|
|
|
|
|
How to bring popup window in asp.net web page?
|
|
|
|
|
kavinnagarajan wrote: How to bring popup window in asp.net web page?
This is simply done my Window.Open() or you can also use window.showModalDialog()
Sample Example :
window.open ("http://www.codeproject.com",
"mywindow","menubar=1,resizable=1,width=350,height=250");
Reference URL :
Popup window[^]
Hope this is helpful to you
|
|
|
|
|
Is window.showModalDialog() IE specific?
|
|
|
|
|
function popup()
{
window.showModalDialog("Board_Delete.aspx","mywindow","width=350,height=250,status=1");
}
the above code not working properly.
The popup window is not in correct width and height
|
|
|
|
|
kavinnagarajan wrote: function popup()
{
window.showModalDialog("Board_Delete.aspx","mywindow","width=350,height=250,status=1");
}
the above code not working properly.
The popup window is not in correct width and height
Try This
function popup()
{
window.showModalDialog("Board_Delete.aspx","mywindow","center: yes;dialogWidth: 650px;dialogHeight: 250px;scroll: no;status: no;edge: sunken");
}
This will help you
|
|
|
|
|
function popup()<br />
{<br />
window.showModalDialog("Board_Delete.aspx","mywindow","width=350,height=250,status=1");<br />
}
the above code not working properly.
The popup window is not in correct width and height
|
|
|
|
|
function popup()<br />
{<br />
window.showModalDialog("Board_Delete.aspx","","dialogHeight=200px; dialogWidth=450px ");<br />
}
its working correctly
|
|
|
|