|
Hi,
Thanks for your reply.
Using a literal ? Do you mean Literal control ?
If that, how can we display images in literal control..
Cheers,
sekhar
|
|
|
|
|
Yup, a literal control. Here's an example:
literal.Text = "<img src=\"picture.jpg "\" />";
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
Hi,
Thanks for your reply,
But i have to assign the path at runtime. and there is a Previous & Next buttons in my page .
i have to show the next image when user clicks on Next, previous image when user clicks on Previous buttons.
I am storing image in diffrent folders, the path is stored in database table.
So how can i use this literal control. Is literal control displays Flash images(.swf files).
Please help me...
Cheers,
sekhar
|
|
|
|
|
That shouldn't be a problem. Just edit the code where needs be to allow for this. So just put the code in event handlers of the next buttons and use a count to increment and decrement clicks on the buttons so the events are registered.
I'm not 100% sure if it displays flash images but it can be used as a container for the player you mentioned that you downloaded. I know it definately works for images and as a container for a mediaplayer to display videos.
Here's code for the video:
mplayer.Filename = "video.flv";
mplayer.autoStart = false;
ltlMplayer.Text = mplayer.getval();
Hope that helps you
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
Hi,
Thanks for your reply. I dont have any video files to display.
I have to display images of different formats including Flash images(.swf files).
In image control i could able to display all type of images except .swf(flash images).
Here is my problem. I want to display all in single asp.net control.
Cheers,
sekhar
|
|
|
|
|
I realise this but Flash works similarily to videos when being displayed so try the example i gave you and modify the code so it works for you otherwise i'm sorry i don't know what else to suggest
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
Hi,
Thanks for your help.
Cheers,
sekhar
|
|
|
|
|
Hello All,
I need to validate http://www.pfizer.com/news/rss_article.jsp?rssUrl=http://mediaroom.pfizer.com/portal/site/pfizer/index.jsp?ndmViewId=news_view&newsId=20080610006500&newsLang=en
URL and also http://www.pfizer.com/news/rss_article.jsp
Below is the code which I am using but it validates first one but not the second one.
function ValidateURL()
{
var Url = "(((ht|f)tp(s?):\/\/)|(www\.[^ \[\]\(\)\n\r\t]+)|(([012]?[0-9]{1,2}\.){3}[012]?[0-9]{1,2})\/)([^ \[\]\(\),;&quot;'&lt;&gt;\n\r\t]+)([^\. \[\]\(\),;&quot;'&lt;&gt;\n\r\t])|(([012]?[0-9]{1,2}\.){3}[012]?[0-9]{1,2})";
var tempURL=document.getElementById("ctl00_ContentPlaceHolder1_txteventlink").value;
var matchURL=tempURL.match(Url);
if(matchURL==null)
{
alert("Web URL does not look valid");
document.getElementById("ctl00_ContentPlaceHolder1_txteventlink").value="http://";
document.getElementById("ctl00_ContentPlaceHolder1_txteventlink").focus();
return false;
}
}
Please help me....
Thanks in advance...
|
|
|
|
|
Hi,
How can i call a server side methods on browser close ?
Please help. Thanks in advance !!
cheers,
Abhijit
|
|
|
|
|
Abhijit Jana wrote: How can i call a server side methods on browser close ?
AJAX. Hook the JS close event and make a AJAX call in the event handler.
|
|
|
|
|
Hi Navaneeth,
usign PageMethods Server side function is calling but nothing is executed. I have put some breakpoint insed the fuction, just came to the function name and then nothing executing after browser close.
please help .
cheers,
Abhijit
|
|
|
|
|
I want to End seesion on Browser close?
cheers,
Abhijit
|
|
|
|
|
Abhijit Jana wrote: usign PageMethods Server side function is calling but nothing is executed. I have put some breakpoint insed the fuction, just came to the function name and then nothing executing [Frown] after browser close.
I am not getting you. What do you meant by page methods ? When browser closes some JS event fires. Do AJAX call inside that event which executes a page on server.
Abhijit Jana wrote: I want to End seesion on Browser close?
Yeah, I guessed it. This is most asked question. But there is no reliable way to do this. You can always use AJAX call to end session when browser closes as described above. But it's not reliable.
Why you need to end session when browser closes ? Sessions will have a timeout and will end automatically,
|
|
|
|
|
But my requirment to check multiple user should login same time , if yes then Acoount will be locked in Active Directory. when ever a new seesion created i have entred user id with session id in DB and remove it while logoff.
If user close the browser then Session_End doesn't get fired from Global.asx file.
but i have mad it now with out ajax. just open a popup on browser close and i have call the same method to delete log from data base and then the popup will close automatically.
cheers,
Abhijit
|
|
|
|
|
Abhijit Jana wrote: But my requirment to check multiple user should login same time
You want to prevent same user logging multiple times at same time right ? I'd put a DB flag which will be set when user logs in. When user logs in, this flag has to be checked and if it is in set state, prevent logging in. When user logs out reset this flag.
Keep a SQL job which runs in specified intervals and checks for these flags. It should reset flags which are set for long time (more than session timeout limit).
Abhijit Jana wrote: If user close the browser then Session_End doesn't get fired from Global.asx file.
It gets fired, but not immediately. Each session will have a timeout and when it reached timeout limit, session_end will be fired (only in "InProc" mode).
|
|
|
|
|
Hi,
I want to add serial number column in my data grid. It should be displayed according to the records. For instance, I'm showing 5 records in the data grid. Sl. No. should be from 1 to 5.
Sl.No. Name Desig
1 Bala SE
2 Ganesh SE
3 Rajesh SE
Is there any option in design level itself? Pls help. tnx in adv.
Balasubramanian K.
|
|
|
|
|
BalasubramanianK wrote: Is there any option in design level itself? Pls help. tnx in adv.
You can use Container.ItmeIndex in DatGrid
<asp:templatefield headertext="Sr.No" xmlns:asp="#unknown"><br />
<itemtemplate><br />
<%#Container.ItemIndex + 1 %><br />
</itemtemplate><br />
</asp:templatefield>
Regard
Khan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Tnx. It is working fine.
Balasubramanian K.
|
|
|
|
|
I am using paging in my data grid. Serial number is re started in every page. Actually, I am expecting it should be continuied....
Balasubramanian K.
|
|
|
|
|
use following
]]>
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
rahul.net11 wrote: use following
]]>
DataItemIndex is not supported in DataGrid.It is ItemIndex
please don't forget to vote on the post that helped you.
|
|
|
|
|
No...i am getting..it is not a member of data grid....
Balasubramanian K.
|
|
|
|
|
BalasubramanianK wrote: I am using paging in my data grid. Serial number is re started in every page. Actually, I am expecting it should be continuied....
try this tell me what result get you
<br />
<![CDATA[<%#Container.ItemIndex + 1 + DataGridID.CurrentPageIndex*DataGridID.PageSize %>]]>
please don't forget to vote on the post that helped you.
|
|
|
|
|
No...Mr.Imran
Previously, serial number was come. But now it is also not coming.
Balasubramanian K.
|
|
|
|
|
BalasubramanianK wrote: No...Mr.Imran
Previously, serial number was come. But now it is also not coming.
It is perfectly working in my case
<![CDATA[<%#Container.ItemIndex+1 + DataGridID.CurrentPageIndex*DataGridID.PageSize %>]]>
Have you set your DataGridID
or
Post your code
please don't forget to vote on the post that helped you.
|
|
|
|