|
You can solve this problem using keycode value for enter key .
set condition true for enter key.
< script type="text/javascript" >
function CheckKeyCode()
{
if( (event.keyCode == 13 )
{
return true; }
else {
return false;
}
}
< /script >
verify this link for keycode values:
http://livedocs.adobe.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=00002398.htm
God is always with you.
|
|
|
|
|
Hi! i am developing a multilingual site in which i am using global resources. i want when an user select a language from a drop down list in the home page, this language automatically become default language for all web page for this session. i have solved this problem by putting selected language in session & in every page's page load event i have retrieve value from the session & set CurrentThread's CurrentUICulture & CurrentCulture.
but i want when a user select a particular language then it become default laguage for this session. what is the solution?
|
|
|
|
|
I don't understand, I thought you said you had done that already. You're choosing a language, and it works for the session, so you have what you asked for.
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 )
|
|
|
|
|
on loading xml string in xmldocument it gives error illegal characters in path even if i give sinfle mode in it like
Can any body tell me the reason
Its urgent !!!
Thanks in advance....
Gaurav
|
|
|
|
|
G.K.M. wrote: Its urgent !!!
Wow, there's a change
G.K.M. wrote: it gives error illegal characters in path
G.K.M. wrote: Can any body tell me the reason
Beceause there are illegal characters in your path ? If you posted some code ,that would make it easier
G.K.M. wrote: even if i give sinfle mode in it like
What does this mean ?
Have you perhaps confused the method to load XML from a string and the method to load XML from a file path ?
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 )
|
|
|
|
|
|
I am working on asp.net 2000.i have search button in my application..
I have give the keyword or any character, to be displays in the keyword having a form links...
Like I will give the keyword—“Home”
It’s display to how many forms’s found the home keyword, displaying the form links...
This is my query please help me...
|
|
|
|
|
santhoshmohan wrote: asp.net 2000
No such thing.
santhoshmohan wrote: This is my query please help me...
Do you have a database ? Sounds like you need one.
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 )
|
|
|
|
|
use the keyword Like in your select query
kavitha
|
|
|
|
|
I am working on asp.net 2000.i have add menu bar in my application..
I am creating menu bar using java script .
But i am apply my application the menu bar is not display...(overflow the image’s)
How to show the menu items.......
Kindly help me...
|
|
|
|
|
Hi,
I'm having some problem with AJAX, hope to get some work around from you guys here.
I have 2 drop down box and 1 GridView - ddProject, ddTask, GridView1
ddTask is in the UpdatePanel1
GridView1 is in the UpdatePanel2
OnSelectedIndexChanged on ddProject will fill up ddTask which works fine.
My GridView1 will present the data base on the value selected in ddTask, the problem is the where clause in GridView1's Control does not have the ddTask for me to choose.
I put a textbox outside all UpdatePanel and name it txtTask so that GridView1 can refer to this for displaying data, and do a OnSelectedIndexChanged on ddTask but txtTask is not filled with anything when I select from ddTask.
The question is, how do I bring out data from UpdatePanel to controls that are outside the UpdatePanel.
Thanks in advance.
J Liang
|
|
|
|
|
You must add the triggers after the content template in updatepanel.
<asp:scriptmanager id="sc1" runat="server">
<asp:updatepanel id="UpdatePanel1" runat="server">
<contenttemplate>
<asp:dropdownlist id="ddlAuthorID" autopostback="True" runat="server" onselectedindexchanged="ddlAuthorID_SelectedIndexChanged">
<triggers>
<asp:postbacktrigger controlid="ddlAuthorID">
God is always with you.
|
|
|
|
|
You must add triggers after content template in the update panel.
<triggers>
< asp:PostBackTrigger ControlID="ddTask" />
God is always with you.
|
|
|
|
|
Hey,
Thanks man, it works, it actually pass the value out.
But I did some changes to it. I put the txtTask into UpdatePanel2 and add AsyncPostBack for ddTask in UpdatePanel2, so when SelectIndexChanged trigger for ddTask, it update txtTask in UpdatePanel2, now my GridView1 in UpdatePanel2 can refer to txtTask with no problem.
J Liang
|
|
|
|
|
How to retrieve all records from gridview and assign it to datatable when paging is done?
kavitha
|
|
|
|
|
U just got that much of record in grid the record u showing. so use some session or something and keep the datatable . in that scenario u can get the data.
Devjit Das.
|
|
|
|
|
actually my datatable is in session but i m using FindControl which uses RowIndex to search the record but RowIndex is from 0 to 4 in first page.To retrieve 6th record it has to move to second page and get another 5 records .
How to do that?
kavitha
|
|
|
|
|
I have a database with several fields that are Boolean. I want to display a image for the field if the value is true in a DataList view. I code in VB.
The code is as follows:
<asp:DataList ID="ContractDL" runat="server" DataKeyField="ContactID" DataSourceID="ContactsDS"
Style="position: relative">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("ContactLast") %>'></asp:Label>
<img src="images/redcross.jpg" style="position: relative" Visible='<%# IIf(Eval("Emergency") = False, False, True) %>' />
</ItemTemplate>
</asp:DataList>
The code shows the image whether the value is true or false. Thanks for your help.
|
|
|
|
|
williammcq wrote: Visible='<%# IIf(Eval("Emergency") = False, False, True) %>' />
Why do you need IIF ? You've got a bool to start with, I'd be using Not (Eval("Emergency")).
If you make the visible property pass the data object to code behind, you can debug and see what's going wrong.
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 )
|
|
|
|
|
I have a dataset that looks like this:
date val1 val2 val3 val4 val5 val6
10/1/2007 1 45 5 6 100 2
10/2/2007 1 45 5 6 100 2
10/3/2007 1 45 5 6 100 2
I need to convert this dataset set to
categories(val1, val2, val3, val4, val5, val6)
series(10/1/12007;1;45;5;6;100;2)
series(10/2/2007;1;45;5;6;100;2)
series(10/2/2007;1;45;5;6;100;2)
etc.
category values are from checkboxlist on the page.
Can you please help me do this?
Best Regards,
mike
|
|
|
|
|
Just iterate through each row in table of dataset
while iterating you can format the way you want
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... "
|
|
|
|
|
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'ftp://darolketab:.........@darolketab.com/httpdocs/...
<%@ page language="C#" autoeventwireup="true" inherits="Default, App_Web_we3fs5_c" stylesheettheme="bookshop" %>
-^
what's this Error?
|
|
|
|
|
You have published your site on a server that does not support ASP.NET.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi,
I have the following declaration for a web user control in my master.page:
<%@ Register TagPrefix="MyTagPrefix" TagName="MemberZone" Src="~/Includes/Content/Modules/Module_MemberZone.ascx" %>
And in my ASPX source if I have the following:
<!-- Member zone -->
<MyTagPrefix:MemberZone ID="wucMemberZone" runat="server" />
Now the trick comes in... I only want this web user to display on certain pages, that is, all pages in the user account. And you can only access the user account if you have logged on.
How do I do this? Am I doing it incorrectly?
Regards
|
|
|
|
|
Check whether the user is logged in or out and set the visibility of the control accordingly.
Paul Marfleet
|
|
|
|