|
Hi,
I want to trigger an updatePanel by onFocusLost event of a textBox?But OnFocusLost event is not associated with textBox. How could i do that?
Note :-
My actual requirement is that I have a registration form.On that form there is textBox for entering login ID by the user. I want that as the login Id textBox lost the focus availability of login id get checked automatically in the database.If login is already taken by the other user it should show a message like 'This Login Id Already Taken by other user'.
I think it could be done using updatePanel and triggering updatePanel on FocusLost event.But OnFocusLost event is not associated with textBox.
If anyone have some Idea about how it could be done.Please let me know.
Thanks
|
|
|
|
|
use onBlur event and call the javascript function and use __doPostback() to postback the updatepanel .
|
|
|
|
|
|
hi all,
how i will restrict an user not to perform any action during both ajax request and normal web request. that means when i send a request to the server it will display a please wait... message and will not allow the user to perform any action before completion of this request.I am using vb.net with asp.net 2.0 and updatepannel for ajax request.Please provide some need full.Thanks in advance
Regards
bikash
|
|
|
|
|
Simply Use a Div as Layer. Make it Visible true and false based on requirement and set proper Zindex.
|
|
|
|
|
|
Hi,
This is Ravi Shankar. I had some problem with Globalization and Localization.
I have created one web form with name BillPrint.aspx and it contains labels like BillNo, ConnectionId and so on. I want to globalize the label’s text. I have created resource files for this with names BillPrintResources.en-US.resx, BillPrintResources.hi-IN.resx, BillPrintResources.resx. Which contains BillNumber as Name and “BillNo.” as value and similarly for ConnectionId as Name and “Conn ID” as value.
I had specified BillPrintResources for Classkey and BillNumber for ResourceKey in Expression property of BillNo label. Similarly for BillPrintResources for Classkey and ConnectionId for ResourceKey in Expression property of ConnectionId label.
After this I am building the website which it is showing some errors like
1.The resource object with key 'BillNumber' was not found.
2.The resource object with key 'ConnectionId' was not found.
Like this how many variables I had used the errors are coming for all.
Please help me in finding the solution.
Thanks & Regards
Ravi Shankar.
|
|
|
|
|
Member 4253276 wrote: This is Ravi Shankar.
Don't you play the sitar ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Christian Graus wrote: Member 4253276 wrote:
This is Ravi Shankar.
Don't you play the sitar ?
|
|
|
|
|
Hi
i have dropdown list in my webpage
and the code for the dropdown list is
<asp:dropdownlist id="ddlProduct" runat="server" autopostback="True" onselectedindexchanged="FillProductType">
<asp:label id="lblType" runat="server" text="Type"> <asp:dropdownlist id="ddlProductList" runat="server" autopostback="true">
i want to put some validation control on dropdownlist
that is user should select one product without this it is not going submit
i mean it will get message that please select one product
how can i do this
please help me
|
|
|
|
|
Use JavaScript. On ClientClick of Submit button check DropDownList Text. If it "Blank " or "Select " the throw message and return false .
|
|
|
|
|
U need to write the validation in java script for this to work. as follows
function ddlValidation()
{
if (document.getElementById(<control_name>.Selectedindex) == "-1"
{
alert('Select the item and proceed');
return false;
}
else
return true;
}
if u want to show this message on click event of any button say 'Save' for example and id for the button is btnSave then call the above function from coding as follows
btnSave.Attributes.Add("OnClick","javascript: return ddlValidation()");
try with this one....
|
|
|
|
|
thanks for support
how can i used this script in btnsave button
i am using asp.net
please give the aspbutton code
onec again thanks for support
|
|
|
|
|
Ya,
You can use JavaScript to validate the drop-down list. But side by side, you also should check it in the code-behind on the clieck event of the submit button. Though it will be a server side action, but if javascript will be disabled in the client's browser thn the server side code will do the trick for you.
Either you love IT or leave IT...
|
|
|
|
|
set the property as,
AppendDataBoundItems="True"
<asp:listitem value="0">Select
|
|
|
|
|
set the property as,
AppendDataBoundItems="True"
<asp:listitem value="0">Select
if(DropDownlist1.selectvalue == "0")
{
response.write("Select atleast one value");
}
|
|
|
|
|
Hello everyone,
I have a problem regarding special character in internet explorer 7 and above.
i typed ñ but the output is a black diamond(♦). But if i typed it in ie 6, i got it correctly.
any suggestion?
thanks
jyn
|
|
|
|
|
jhyn wrote: any suggestion?
Yeah, post in a right forum. This has nothing to with ASP.NET.
|
|
|
|
|
|
|
Good Morning All
i have a Table
===================
DESCR CYCLE
===================
Rendle C | 5 |
Reid M Prof | 9 |
Randall S Ms | 3 |
Reid M Prof | 3 |
Rendall G Mr | 3 |
Rendle C | 3 |
Rendall G Mr | 2 |
===================
Now as you can see "Rendle C" and "Rendall G Mr" appears Twice, now i want append the cyle field if the descr appears twice, the above list should now look like this
===================
DESCR CYCLE
===================
Rendle C | 5 3 |
Reid M Prof | 9 3 |
Rendall G Mr | 3 2 |
===================
How can i do this in SQl
Thank you
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
AS you said, this is a SQL question. It belongs in the SQL forum. But, one question - will you know for sure that each Descr will have the same number of entries ? You may want to do this in code, depending on how big the data set is.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Good Morning Chris
Am very Very Sorry for Posting this question here. i should better than. Please move it for me to the SQL Forum.
Christian : wrote
will you know for sure that each Descr will have the same number of entries ?
No, What am trying to achieve is that if the Field Descr appears more than once , take the Cycles and Append them
e.g if i have this
Descr | cycle
===============
James | 4
James | 3
Now if its like this i want to add the Cyles field
like this
Descr | cycle
===============
James | 4 3
Please note that this is not a Duplicate, am refining an old Functionality that used to Display them in a Grid. The Dataset will not be big. But i thought i should some manipulation in SQL, because at the end i will be displaying this on a Grid.
Thank you
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
If the number of columns is going to be arbitrary, I really think your best bet is to get a single datatable, in the form you're getting it now, and then build the data in memory in a format that will bind to a repeater or grid.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hope this will help you
CREATE FUNCTION dbo.fn_Join_Cycles
(
@V_DESCR VARCHAR(20)
)
RETURNS VARCHAR(1000)
AS
BEGIN
DECLARE @V_ConCat_Cycles varChar(1000)
SET @V_ConCat_Cycles = ''
SELECT @V_ConCat_Cycles = @V_ConCat_Cycles + ' ' + STR(CYCLE)
FROM YOURTABLE
WHERE DESCR = @V_DESCR
RETURN @V_ConCat_Cycles
END
SELECT DESCR, dbo.fn_Join_Cycles(DESCR)
FROM YOURTABLE
GROUP BY DESCR
|
|
|
|