HOw to use __doPostback('','')?????????


i use the javascript function,
then i want to use the __doPostback('','') javascript function to force the page post back
, so that i can use the parameter pass from the child window in the page.ispostback event.

but i try to use __doPostback('','') in my 1.1 .net framework, nothing happen?????
how to use the __doPostback('','') or how to let the page have .postback event?
SelfConfident is get from the Xperience
3/26/2004 12:34:05 AM 24353 articles. 2 followers. Follow

7 Replies

Similar Articles

[PageSpeed] 12

You need to use the server-side function: Page.GetPostBackEventReference

and tell it what control's event you want to fire.
The __doPostBack('','') won't fire any client-side events because the first parameter, which is the client name of the control raising the event, isn't set.
3/26/2004 1:17:14 AM
hi stiletto, i'm new for

can you please tell me the sample of using server-side function: Page.GetPOstBackEventReference ???? or which place i can refer to this?

for the __doPostBack('','') , how can i use to put the first parameter ?????

SelfConfident is get from the Xperience
3/26/2004 1:48:45 AM
I'll need more specifics on page flow before I can be definitive, but here's the MSDN link:
3/26/2004 2:53:39 AM
Hi stiletto,

now i describe my page more detail, the parent window, i use a button to call javascript function:
<script language="javascript">
function GetDate(CtrlName)
{'color.aspx?FormName='+ document.forms[0].name+ '&CtrlName='+ CtrlName, "Color","width=500,height=400,top=100,left=200,toobars=no,scrollbars=no,status=no,resizable=no");
} to show a child window which contain a list of color.
2.a child window pop up.
3.after i choose one of the color from the childwindow and i click a button (to call javacript:
<script language="javascript">
function ReturnColor(){
window.opener.document.forms["<%= strFormName %>"].elements["<%= strCtrlName %>"].value = "<%= StrSelectedColor %>";

__doPostback("<%= strCtrlName %>",'');
4.the child window closed and get a value(strselectedcolor) from childwindow and put into variable "Ctrl" which is textbox id. AND textbox.text = "strselectedcolor".
All of this is ok if i just the textbox.text.
But i want to change textbox.backcolor, not textbox.text!

SelfConfident is get from the Xperience
3/26/2004 3:35:44 AM
Is this a cross-browser application?

If it's IE-only then you should be able to (from your child window):
window.opener.document.all["<%= strCtrlName %>].style.backgroundColor = "<%= StrSelectedColor %>";
to change the textbox's background color.
3/26/2004 3:57:29 AM
hi stiletto

sorry forget to infrom you that, the StrSelectedColor is a STRING variable, not COLOR variable.
SelfConfident is get from the Xperience
3/26/2004 4:59:46 AM
That's OK the style can be a color name, just change:

window.opener.document.all["<%= strCtrlName %>].style.backgroundColor = "<%= StrSelectedColor %>";
window.opener.document.all["<%= strCtrlName %>].style.backgroundColor = '"<%= StrSelectedColor %>"';
3/26/2004 7:28:40 PM

Similar Artilces:

Name: haznen Email: haznenatyahoodotcom Product: Gran Paradiso Alpha 8 Summary: '''''''''''''''''''' Comments: '''''''''''''''''''''''''''''''''''' Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061204 UGES/ GranParadiso/3.0a1 From URL: Note to readers: Hendrix gives...

Name: mario Email: ramar17atfastwebnetdotit Product: Gran Paradiso Alpha 2 Summary: ''''' Comments: K: Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2) Gecko/20070206 GranParadiso/3.0a2 ...

'do' won't 'do' if '/'
Greetings to All from Au, Have a NetWare Perl 5.8.4 and wanted to tweak File\Spec\ to try and standardise on '/' separators. If I run a test script (t/uni/lower.t) with an unmodified, it calls t/uni/, that, in, (when the path separators are '\'), the $file is '..\lib\unicore\To\' and the following code portion works, with $simple getting a returned table: sub casetest { my ($base, $spec, $func) = @_; my $file = File::Spec->catfile(File::Spec->catdir(File::Spec->updir, "lib", &qu...

Name: L Lachowsky Email: e2brutus_10atyahoodotcom Product: Firefox Summary: ''' Comments: why duddn this surprise me... I change default server from IE to Mozilla, and then i get error messages. well, shud I decide to not get on my computer with Mozilla..or shud I risk security breeches with IE....hmmm at least i can get on the internet with IE Browser Details: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/2008120122 Firefox/3.0.5 From URL: Note to readers: Hendrix gives no expectation of a response to this fee...

Cast from type ''''DBNull'''' to type ''''String'''' is not valid.
How do I avoid getting this error: Cast from type ''''DBNull'''' to type ''''String'''' is not valid. I am trying to get values from the database into a form for updating using a Datareader, SQL is set to allow nulls for certain fields as they are not required but the only way I can get the form to display is by adding a space in SQL. Is there another way around this? Check if it is equal to DBNull.Value first and if it is, don't do the cast.Stanley Tan theSpoke Blog Where in the code does it need to go? I am using the following and it's the profile that isn't always requi...

table_info('','','','%') cannot return any types
I was recently confirming table_info special cases and discovered the case for getting table_types cannot work. table_info('','','','%') should return a list of table types but it returns a list of empty strings instead: my @types = $h->tables('', '', '', '%'); print "all types:\n", join("xxx\n", @types), "\n"; # should output something like: # "dbo" # "INFORMATION_SCHEMA" # "sys" # and actually outputs: xxx xxx It seems to be down to the following ...

Using '[' and ']' characters...
Has anyone come across the following problem when using PD7.5 on SQL Server 2000? PD7.5 does not generate the '[' and ']' characters for stored procedures. Example: CREATE PROC P_Test AS SELECT A AS [Column A] FROM A_Table Generated script: CREATE PROC P_Test AS SELECT A AS Column A FROM A_Table Thanks in advance, Aiden That's interesting. In 7.5, if I put [[Column A]] in the procedure definition, I get [Column A]. In 8.0 it works correctly. -- Michael F. Nicewarner [TeamSybase] http://www.datamode...

'use' and 'require'
------_=_NextPart_001_01C35AB9.4ADA5CA0 Content-Type: text/plain Hello all, Is there a way to 'variablize' the version for a 'use' statement. This way, if I wanted to change version I could only change it in one place with those changes cascading across all apps. Usage would look something like this: use $perl_version; Thanks in advance, Jason Allison Principal Engineer ARINC Incorporated Office: (410) 266-2006 FAX: (410) 573-3026 ------_=_NextPart_001_01C35AB9.4ADA5CA0-- Allison, Jason (JALLISON) wrote: > Hello all, > > Is there ...

Hello. I'm using defferent 5.6.0's for Win32. I wonder wheter following behaviour is intentional or not: d:\>perl -e "print 'b'..'c'" bc d:\>perl -e "print 'b'..'a'" bcdefghijklmnopqrstuvwxyz I expected empty list in latter case, like in perl -e "print 'bb'..'a'" <!ENTITY Vadim REALLIFE "Vadim V.Konovalov, St.Petersburg, Russia"> &Vadim; On Wed, Sep 20, 2000 at 03:14:41PM +0400, Konovalov, Vadim wrote: > Hello. > > I'm using defferent 5.6.0'...

'IN' Clause or 'OR'
Hello, [1]: select * from TABLEA where COL1 IN('value1','value2''valu3'....) [2]:select * from TABLEA where COL1 = 'value1' OR COL1= 'value2' OR COL1='valu3'. TABLEA is a huge table and it has non-clustered index on COL1. Among the above 2 queries, which query will give me the better performance or fast response and WHY? What is the difference between 'IN' and 'OR' clauses as for as Sybase Optimization is concerned. Which is the better one to be used on huge tables. Thanks. Mac An IN list is treated ...

'or' or 'union'
Hello I was just wondering, in general what is better to use, an 'or' clause in a select or a 'union' to join two selects together. Do both statements create work tables? Many thanks Alex I think OR will be better than union. because suppose u have 3 tables and using OR u can join table a and table b and table c so each table will have only one read. but using union you will join table a and table b and in another query of union u will use table (a or b) and table c so ur one read is more in union . Ramdas Alex Cheung wrote: > Hello > >...

'To', 'CC', & 'BCC'
Name: Dick Tracy Email: philipdottracyatoptusnetdotcomdotau Product: Thunderbird Summary: 'To', 'CC', & 'BCC' Comments: I have just started using Thunderbird and while I find it quite excellent- I suggest having a button to add addressees to 'BCC' as well. Currently each 'BCC' addressee has to be selected manually. I send e-mail to quite a number of people at a time and I do not wish to readily spread others addresses easily. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070725 Firefox/2.0....

EXEC sp_msforeachtable 'sp_spaceused ''?'''
What does the following SQL code mean?  EXEC sp_msforeachtable 'sp_spaceused ''?'''Johan TheunissenMCPD, MCSE, MCTS BizTalk 2006==============================Please mark the most helpful reply/replies as "Answer". JohanNL:sp_msforeachtable This is the name of the SP that resides in the master database.  This SP executes one or more commands for a table. JohanNL:sp_spaceused This is the command that you want to run for each of the tables residing in your current database.  As you might have understood so far, that this is again a...

'Value' should be between 'minimum' and 'maximum'.
I'm attempting to invoke with parameters:  Dim thing2 As New mydelsubPBStep(AddressOf pbStep) Me.Invoke(thing2, "setMax", dt.Rows.Count)      <---- this is where the error occurs   the delegate looks like this: Private Delegate Sub mydelsubPBStep(ByVal mode As String, ByVal value As Integer)   the function it's calling looks like this:Private Sub pbStep(ByVal mode As String, ByVal value As Integer) Select Case mode.ToLower Case "clear" ProgressBar1.Value = 0 Case "step" ProgressBar1.PerformStep() L...

Web resources about - HOw to use __doPostback('','')????????? -

Bug and Fix: ASP.NET fails to detect IE10 causing _doPostBack is undefined JavaScript error or maintain ...
Scott Hanselman on Programming, User Experience, The Zen of Computers and Life in General

In-Flight Entertainment Systems
Linefit & retrofit in-flight systems include X Series In-Flight Entertainment Systems, IFE, IFEC, eX1, eX2, eX3, eXLite, eXW, eXO, eXK, Digital ...

Buy RAM Memory, Kingston, GSkill Available - eStore
Buy desktops, laptops, tablets, computer accessories, software, printers and IT supplies at cheap prices from eStore Australia. Choose from brands ...

Calendar for Alumni and Friends - UNSW Alumni - UNSW Australia
Search: Login - Register Alumni Home About Us Who We Are UNSWorld Alumni Online How To Get Involved Staff Alumni Alumni Networks Alumni Office ...

Commodity Market Report - LME - Futures market - Support & Resistance
Get daily commodities market report,commodity trading report,london metal exchange,lme stock,support & resistance,futures market,lme copper,aluminum,copper ...

Government of Alberta - Programs and Services
... Licence, Alberta Business Registration, Alberta Corporate Registries, Incorporation and more information about the Alberta Economy. __doPostBack('__Page','') ...

鏀垮姟鍏紑 - 娼窞绉戞妧鍗忎細
2012骞?鏈?4鏃?鏄熸湡浜?/span> 锛屾偍濂斤紒娆㈣繋璁块棶娼窞甯傜瀛︽妧鏈崗浼氱綉绔?a onclick="return true;" id="Sheader1_btnExit" href="javascript:__doPostBack('Sheader1$btnExit','')" ...

Most Followed Members
Investors Hub Most Followed Members

Steps to Invest - AssetBuilder Inc., Registered Investment Advisor
AssetBuilder is a SEC-registered Investment advisory firm that has developed statistically efficient Building Block portfolios using Dimensional ...

Medical displays - Barco
Search English / Germany ( Change ) myBarco log in - New to myBarco? - Preferred language: Deutsch English español français italiano 日本語 한국어 ...

Resources last updated: 12/20/2015 8:06:16 PM