473,388 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Adapting onBlur functionality of javascript in ASP.net??

Hello

I have several textboxes in a datagrid footer. When the user inputs
something first textbox, the values of the other textboxes are updated.
Basically I want the "onBlur" functionality of javascript here, but using
codebehind.

Why I don't want to use javascript for this is because I have to connect to
my database and all the users' browsers have to be configured to allow
"access to data source across domain" ( which doesn't seem right to me in a
web environment )...

Does anyone has an idea ? Can I do it through postback? Can postback be
triggerred programmatically?

Any suggestion will be much appreciated :)

Jef
Nov 17 '05 #1
2 1667
Hi Jeff,

You can use the onblur javascript event on the textbox
to fire the __doPostBack(eventTarget, eventArgument)
function supplied by the framework. There are plenty
examples on the web of how to do utilise this function.

Hope this helps.

Dave
-----Original Message-----
Hello

I have several textboxes in a datagrid footer. When the user inputssomething first textbox, the values of the other textboxes are updated.Basically I want the "onBlur" functionality of javascript here, but usingcodebehind.

Why I don't want to use javascript for this is because I have to connect tomy database and all the users' browsers have to be configured to allow"access to data source across domain" ( which doesn't seem right to me in aweb environment )...

Does anyone has an idea ? Can I do it through postback? Can postback betriggerred programmatically?

Any suggestion will be much appreciated :)

Jef
.

Nov 17 '05 #2

Thanks David. It works fine :)
"David Keenan" <an*******@discussions.microsoft.com> wrote in message
news:2b*****************************@phx.gbl...
Hi Jeff,

You can use the onblur javascript event on the textbox
to fire the __doPostBack(eventTarget, eventArgument)
function supplied by the framework. There are plenty
examples on the web of how to do utilise this function.

Hope this helps.

Dave
-----Original Message-----
Hello

I have several textboxes in a datagrid footer. When the

user inputs
something first textbox, the values of the other

textboxes are updated.
Basically I want the "onBlur" functionality of javascript

here, but using
codebehind.

Why I don't want to use javascript for this is because I

have to connect to
my database and all the users' browsers have to be

configured to allow
"access to data source across domain" ( which doesn't

seem right to me in a
web environment )...

Does anyone has an idea ? Can I do it through postback?

Can postback be
triggerred programmatically?

Any suggestion will be much appreciated :)

Jef
.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Barry Svee | last post by:
I'm struggling with the JavaScript blur event. I have an activex control that I need to interact with when a window loses focus, namely to instruct it to give up control of a barcode scanner so...
4
by: Peloux | last post by:
Hi, I have written some htc in order to validate data in a form. most of htc are attached on 'onblur' event. Now, we would like to use the Enter Key to sublit form, so we use the following...
6
by: rob | last post by:
Hi I'm trying to create a "roll-up" effect when a window loses focus and then "roll-down" when it regains focus. This statement works properly with every browser I can get my hands on EXCEPT...
1
by: neil S via DotNetMonster.com | last post by:
I have a custom control with a textbox and dropdown list. The dropdown list is hidden and acts as a data source for the textbox. When the user enters text in the textbox, an onKeyup event is...
5
by: lindanr | last post by:
In ASP.NET 2005 I have an onblur="window.close()" javascript event in the <body> tag. When I click on the window's scrollbar, the window closes. The same code works fine in ASP.NET 2003. Any...
3
by: rjones326 | last post by:
Hi, I'm stupendously mystified by this strange activity. I cannot for the life of me figure out why this will not work in mozilla. I've spent hours mucking around with it. The php file is...
1
by: jb5531 | last post by:
Hello everyone! I am trying to implement some code for my website using JavaScript and DOM. The issue I'm having is that I want to change the size of the textarea on blur. This text area changes...
1
by: Duncan | last post by:
Hi all, I'm tearing my hair out on this! I have a simple ASP.NET 2 page with a TextBox control, in the PreRender I set ClientSide events:- Response.Attributes.Add("onchange",...
30
by: stefbek97 | last post by:
Hello Everyone, I am ready to pull my hair out with this situation. Here is what my application Looks like. I have a Master Page,Content Page with a Tab Container and A user Control inside the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.