|
Writing inside session_end event is not a good choice. Write in the page where you are ending the session.
|
|
|
|
|
how should i use the
Response.Redirect("Login.aspx");in session end fucntion
it is not working , not navigating me to login.aspx page
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
If your page is in form directory, the use Response.Redirect("form/login.asx")
|
|
|
|
|
i used the same procedure as u said.should it go into the application error after the execution of session end function .
the path string is correct , there is not problem in it.
Response.Redirect("Forms/Login.aspx");
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
If it fires application_error, there might have some error happened. BTW, what you are doing on session_end ? How you are ending session ? Can you show your code ?
|
|
|
|
|
after successful authentication , i am doing like
Session.Timeout = 1;
and then i sit idle, afterwards it automatically go to global.asax file in the session end function there i ma writing
Response.Redirect("Forms/Login.aspx");
because the Login.aspx is under Forms folder
after completion of session end function it goes to application error .
can i somehow get the application error, i mean what is application error occuring?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Sonia Gupta wrote: and then i sit idle, afterwards it automatically go to global.asax file in the session end function there i ma writing
Yes this will heppen on the background. But your browser page won't change until you give a request to server. Could you tell me why you are doing this ? Probably I can suggest a good method.
|
|
|
|
|
i am merely trying to implement the session_end function for all pages as a common funciton
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
|
Hello Friends,
I want to use CSS for link in my DataList
Can anybody let me know how to do it........
<style type="text/css">
.myCSS a{FONT-WEIGHT:bold;Text-Decoration:none; bold; FONT-SIZE: 9.5pt; COLOR: #004a91; FONT-FAMILY: arial}
.myCSS a:hover { FONT-SIZE: 20pt; COLOR: red; TEXT-DECORATION: none }
</style>
<asp:datalist id="DataList1" runat="server" CellPadding="4" BorderWidth="2px" RepeatDirection="Horizontal"
BorderStyle="Solid" RepeatColumns="1" Width="500px">
<ItemStyle BorderWidth="1px" BorderStyle="Solid" BorderColor="#004A91"></ItemStyle>
<ItemTemplate>
<table>
<tr>
<td height="7">
</td>
</tr>
<tr>
<td>
<a class="myCSS" href='<%# DataBinder.Eval(Container.DataItem,"URL") %>'>
<%# DataBinder.Eval(Container.DataItem,"Title") %>
</a>
</td>
|
|
|
|
|
The Knowledge wrote:
.myCSS <strike>a</strike>{FONT-WEIGHT:bold;Text-Decoration:none; bold; FONT-SIZE: 9.5pt; COLOR: #004a91; FONT-FAMILY: arial}
.myCSS <strike>a</strike>:hover { FONT-SIZE: 20pt; COLOR: red; TEXT-DECORATION: none }
myCSS{style-Class definition goes here}<br />
myCSS:hover{style-Class definition goes here}
And Now using myCSS as class attribute for link controls will work. If you want to use this style as default style for the hyper links then you can do...
a{style-Class definition goes here}<br />
a:hover{style-Class definition goes here}
when you do this, you don't have to set the style-class attribute for the hyper links. By default, it will use the given style (a{}).
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
hi everyone,
I've a strange error here its saying:
The MaximumValue 90 cannot be less than the MinimumValue -90 of RangeValidator2.
Here's my code for the range validatroy
<asp:rangevalidator id="RangeValidator2" runat="server" controltovalidate="LatitudeTextBox" minimumvalue="-90" maximumvalue="90" errormessage="-90<=Value<=90"></asp:rangevalidator>
Please elaborate on that.
Many thanks
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
Hi,
You just need to set the Validator's Type as integer as follows :
<asp:rangevalidator id="RangeValidator1" runat="server" controltovalidate="TextBox1">
ErrorMessage="Value out of range" MaximumValue="90" MinimumValue="-90" SetFocusOnError="True" Type="Integer">
Regards,
Ujjaval Modi
|
|
|
|
|
I have a TextBox and DropDownList in which when i enter a character in TextBox then the DropDownList selected item must starts with the character which i enter....Any Idea or Reference will be more helpful...
Thanks in Advance...
Erasers are for people who are willing to correct their mistakes.
|
|
|
|
|
Hi,
you can use ajax control for that.
ListSearchExtender
Hope it will help you.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
U can also do it using a stored procedure.
e.g.
CREATE PROCEDURE [dbo].[USP_GetName]
@i_strSearchName VARCHAR(50)
AS
BEGIN
SELECT NAME FROM USER Where NAME Like @i_strSearchName+'%' END
|
|
|
|
|
But for this you need to have a postback of whole page
it is one of the solutions but not efficent way
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... "
|
|
|
|
|
I think you meant that you need to re arrange/sort the items present in the dropdown list after entering the textbox so that it will show the items starting with same charachter.
For this i think you will have to go for javascript
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... "
|
|
|
|
|
Tanx for ur reply...
I use the following query
SELECT Name
FROM TableName
WHERE (Name LIKE @TextBox1 + '%')
and in TextChange Event
nme=System.Convert.ToString(_RegistrationTableAdapter.SearchQuery(txtnme.Text));
ListCombo.SelectedIndex=ListCombo.Items.IndexOf(ListCombo.Items.FindByText(nme));
|
|
|
|
|
Hi Friendz,
I would like to buy a laptop and most of it containing the OS is Windows Vista.
Is it possible to install MS.NET2.0 ,MS.NET 1.1,MSSQL 2000/MSSQL2005 etc in Windows Vista Home Premium.
I think the available versions are
Vista Home Premium
Vista Business edition
Which one is better for web/windows application developement using MS.NET.
Be thankful to any advices!!
They laugh at me; they think I’m different. I laugh at them, ‘coz they are all same!! CrazySanker
|
|
|
|
|
The main difference is, given you've asked in the ASP.NET section, you need to make sure theversion you buy has IIS with it.
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 )
|
|
|
|
|
Thank you
They laugh at me; they think I’m different. I laugh at them, ‘coz they are all same!! CrazySanker
|
|
|
|
|
maintain my first 10 data in the firt page when i click the next page then the first 10 datas r erased... i want to maintain all the datas and save it in the database
|
|
|
|
|
First things First. Save the first page data in the database and move on to the next page. So that your first page data will be maintained in the database. you don't have to maintain in every page that you move on.
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
modified on Wednesday, December 05, 2007 1:54:54 AM
|
|
|
|
|
wt i need s i should not save first 10 datas iam having 100 pages... my page index is 10 ... if i enter the 10 values then i have to move to next page and enter the next 10 datas.... if i have to change any data in the first page then i have to move to first page is it right....
but my first page datas r getting clear.
|
|
|
|