|
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.
|
|
|
|
|
1. you can have a temporary table at the database end and save each page data in the temp table before you move on to the next page. Whenever you want to navigate through the saved data, fetch it from the temp table. Once the process is complete, move the data to whcichever table you want and delete the data from the temp table.
(or)
2. You can store the data in a dataset and then save the dataset in a session Object before you move on to the next page. Now, You have the access to the first page data in any page through the session object.
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Sounds pretty straightforward and there are a number of controls that will do all of this for you. What have you tried ?
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 )
|
|
|
|
|
How to maintain the first page data when we click the next page...
|
|
|
|
|
Is your paging control not bound to a DataSource?
Daniel Minnaar
Lead Software Developer
|
|
|
|
|
public void PageIndex_Changed(object src, GridViewPageEventArgs e)
//{
// GridView1 .PageIndex = e.NewPageIndex;
// int a = GridView1.PageCount;
// GridView1.DataBind();
// BindGrid();
//}
this s my coding
|
|
|
|
|
hi all
How could i add Attributes onclick on treenode
|
|
|
|