|
In this case you will have to consider the session timeout time
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
could you plz give me any sample codes for that.
|
|
|
|
|
Try to use Session_End event of Global.asax. If you are using ASP.Net 2.0 you have to manually include Global.asax from the list. In this event check if the user is not already logged out enter the time when session expires.
Check the link might be helpfull,yo can do in this way
http://www.codeproject.com/asp/user_logtime.asp[^]
if you need more info google the subject you will get lot of info i think
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hello Everyone,
I've desinged a websitte in ASP.NET1.1 and it's desinging looking as i want but it is looking ugly in mozilla......
Mainly my Side Menu. Here i'm giving the CSS below if u find any probs. plz let me know.....
http://www.kiritbhaiji.com/Rough_New.aspx[^]
|
|
|
|
|
HI
I have Checked Ur Web
AS I Have Told U Earlier...
U have to just Follow Just Do IT™ [Information Technology]™ :->
|
|
|
|
|
Hi
i want to get the number of unread emails that are in my yahoo mail box.
My mean:
i want with push button i can go to my yahoo email and chech my email and find that how many emails are there that i dont read them.i want my function return a number of unread emails
can anybody help me plz?
|
|
|
|
|
I have a grid form that uses our internal framework to open a popup for a detail form. I can't yet modify our framework to allow me to pass a callback function for the popup form to call back to the grid form for a refresh, so I would, for now, like to hard-code the callback into the popup. How could I go about this? The grid form is displayed in an IFRAME controlled by an explorer like navigator.
I have the 'call-back' code already in the popup form, and the back-called function already in the grid form, but now I just need to know how to find the function in the grid form from the function in the popup form.
Calling all South African developers! Your participation in this local dev community will be mutually beneficial, to you and us.
|
|
|
|
|
Brady Kelly wrote: I have a grid form that uses our internal framework to open a popup for a detail form. I can't yet modify our framework to allow me to pass a callback function for the popup form
I don't think that call back function(delegates) can work on multiple pages. Do you mean a JS function ?
Brady Kelly wrote: like to hard-code the callback into the popup.
If you are trying through JS, Have you tried Window.Opener[^] ?
|
|
|
|
|
I haven't tried anything yet, as I've been carrying on with other, higher priority, work in the time being. Yes, I should have mentioned that I'm doing this all in Javascript, and no, I haven't tried Window.Opener, but I have doubts as the popup isn't opened directly from my grid form, but by a function, in our in-house navigation framework called "ChaseDialog.Show". It looks like this operates from another IFRAME to my grid form.
Calling all South African developers! Your participation in this local dev community will be mutually beneficial, to you and us.
|
|
|
|
|
How to remove multiple selected items from a listbox?
Thanks in advance..
You can't do everything...
But you can do something...
So never refuse to do something that you can.....
|
|
|
|
|
In javascript, or the code behind ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
declare @exp varchar(100)
set @exp = '12,13,14'
declare @start int
declare @substring varchar(20)
set @start = 1
while(@start <> 0)
begin
set @start = charindex(',' , @exp , @start)
if(@start = 0)
return
print @start
--print substring(@exp , @start ,
set @start = @start + 1
end
i want the following output
12
13
14
how should i get it
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
|
|
One good way is to pass XML and use OpenXML instead of string mashing.
But, it's true you're in the wrong forum.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Check-out this SQL split function
http://www.devx.com/tips/Tip/20009
Here is my modified (0.1%) code.
DECLARE @String nvarchar (4000)<br />
DECLARE @Delimiter nvarchar (10)<br />
<br />
SET @String = '12,13,14'<br />
SET @Delimiter = ','<br />
<br />
declare @NextString nvarchar(4000)<br />
declare @Pos int<br />
declare @NextPos int<br />
declare @CommaCheck nvarchar(1)<br />
<br />
--Initialize<br />
set @NextString = ''<br />
set @CommaCheck = right(@String,1) <br />
<br />
--Check for trailing Comma, if not exists, INSERT<br />
--if (@CommaCheck <> @Delimiter )<br />
set @String = @String + @Delimiter<br />
<br />
--Get position of first Comma<br />
set @Pos = charindex(@Delimiter,@String)<br />
set @NextPos = 1<br />
<br />
--Loop while there is still a comma in the String of levels<br />
while (@pos <> 0) <br />
begin<br />
set @NextString = substring(@String,1,@Pos - 1)<br />
<br />
PRINT @NextString<br />
<br />
set @String = substring(@String,@pos +1,len(@String))<br />
<br />
set @NextPos = @Pos<br />
set @pos = charindex(@Delimiter,@String)<br />
end<br />
<br />
BTW, this is ASP.NET forum. (You have been here for long time so you know that, right? )
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
|
declare @exp varchar(100)
set @exp = '12,13,14'
declare @start int
declare @substring varchar(20)
set @start = 1
while(@start <> 0)
begin
set @start = charindex(',' , @exp , @start)
if(@start = 0)
Begin
select substring(@exp,@start+1,2)
return
end
select substring(@exp,@start+1,2)
set @start = @start + 1
end
Devjit Das.
|
|
|
|
|
InsDev wrote: if(@start = 0)
Begin
select substring(@exp,@start+1,2)
return
end
it is not certain wherther the length will be = 2 or more then 2
if i replace 2 with len(@exp)
again bug starts to occur
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
What's the problem in the following
declare @exp varchar(100)
set @exp = '12,13,14'
declare @start int
declare @pos int
declare @substring varchar(20)
set @pos = 1
set @start = 1
while(@pos <> 0)
begin
set @pos = charindex(',' , @exp , @start)
if(@pos = 0)
begin
print substring(@exp , @start , len(@exp))
return
end
print substring(@exp , @start , @pos -1)
set @start = @pos + 1
end
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Hi,
I have a static non-dynamic 2 select list box. Example:
1) <asp:DropDownList id="cboYear" runat="server">
<asp:ListItem Value="2007">2007</asp:ListItem>
<asp:ListItem Value="2006">2006</asp:ListItem>
<asp:ListItem Value="2005">2005</asp:ListItem>
<asp:ListItem Value="2004">2004</asp:ListItem>
</asp:DropDownList>
2) <asp:DropDownList id="cboDate" runat="server">
<asp:ListItem Value="200706">Jun 2007</asp:ListItem>
<asp:ListItem Value="200705">May 2007</asp:ListItem>
<asp:ListItem Value="200704">Apr 2007</asp:ListItem>
<asp:ListItem Value="200606">Jun 2006</asp:ListItem>
<asp:ListItem Value="200605">May 2006</asp:ListItem>
<asp:ListItem Value="200604">Apr 2006</asp:ListItem>
<asp:ListItem Value="200508">Aug 2005</asp:ListItem>
<asp:ListItem Value="200506">Jun 2005</asp:ListItem>
<asp:ListItem Value="200505">May 2005</asp:ListItem>
<asp:ListItem Value="200409">Sep 2004</asp:ListItem>
<asp:ListItem Value="200405">May 2004</asp:ListItem>
</asp:DropDownList>
So i wonder how to create a dependent select list? I want the cboDate to be appear for year that was selected on cboYear. Example: if i select cboYear 2007, i want cboDate to show only 2007 list. Can it be done?
Please help. Thx.
|
|
|
|
|
Handle the event when list one's selected index changes, and either through AJAX or a postback, repopulate list two accordingly
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thx for reply.
BUT if i use a postback, will that refresh the page? If i don't want the page to be refresh is it possible?
i using ASP.NET C# code.
Thx.
|
|
|
|
|
Put the dropdownlist in updatepanel so that part of the page will be refreshed.
God is always with you.
|
|
|
|
|