now i am facing another problem i open the dialog form Page1.aspx using LinkButton2 .Attributes.Add("onclick", "window.showModalDialog('Lookup.aspx?new=new', null, 'status:no;dialogWidth:555px;dialogHeight:575px;di alogHide:true;help:no;scroll:no')"); Now i have an HTML control (input button) in its Clickevent i want to set the value of TextBox1 of the Page1 but when i write window.opener.document.getElementById('TextBox1').value='ads'; i get the error document.opener.document is null or not an object i have also tried window.opener.parent but it also gives error How can i do this
waheed awan
Posts
-
window.showDialog -
window.showDialogit works .........there was an error in my code due to which the statement was not working
-
Web Messengeryes i want to know how the meebo.com functionality ca be achieved
-
Web Messengeri have searched a lot about web messenger but didnt get any idea. i want to put functionality in my web site as meebo.com. How can i put different messengers on my website. i just want to know what is the logic behind meebo.com . Does messengers like yahoo,MSN,AOL provide some type of webservices or APIs that we can use or we have to purchase some component. Please help me in this.
-
Web messenger [modified]i want to develop web messenger i read http://www.codeproject.com/KB/HTML/Yahoo.aspx but i have some problems 1) when i click on the link after setting every thing yahoo chat interface appears which i dont want i have a text box and i want to send and recieve messages written in it 2) if i add links for all my yahoo contacts it works i-e i can send text from yahoo chat interface but i dont want to hard code contacts all contacts should come automatically from my yahoo messenger contact list Please help me modified on Tuesday, February 19, 2008 9:11 PM
modified on Tuesday, February 19, 2008 9:12 PM
-
XSL Dropdown problem [modified]<xsl:element name="a"> <xsl:attribute name="href"> <xsl:value-of select="concat('m','.aspx')"/> </xsl:attribute> <xsl:value-of select="aspdnsf:GetMLValue(Name)"/> </xsl:element> </xsl:element> this code creates a list of links but i want to create dropdown how can i do this
modified on Tuesday, February 19, 2008 6:09 PM
-
Executing Textbox Texti want to say the textbox will be used to write code statements and clicking the button will execute the statement written in the textbox Example; if in the textbox i write MessageBox.Show("Hello"); then clicking the button executes the statement in the textbox in this case display a messagebox
-
Executing Textbox TextTHANKS the arical you gave me reference is very helpful and it solved another problem of adding a class that i was facing but here my problem is as i write func("vaue"); in the cs file the function is called what i want to achieve is when i write func("vaue"); in the textbox then on clicking the button the textbox text should be executed
-
Executing Textbox TextTHANKS the arical you gave me reference is very helpful and it solved another problem that i was facing but here my problem is as i write func("vaue"); in the cs file the function is called what i want to achieve is when i write func("vaue"); in the textbox then on clicking the button the textbox should be executed
-
Executing Textbox Texti want to execute the text written in text box e.g i have a function public void func(string s) { } what i want to achieve is if i write func("waheed") in the textbox this function should be called on clicking a button i cant use if/case etc my requirement is this the textbox text will be passed to another function where this text will execute as code Thanks
-
Previous Page Problemthanks but the actual problem is this i have a number of controls not only the gridview...... i thought there may be a way to access values of controls instead of passing values of all the controls in querystring
-
Previous Page Problemi want to get column2 value of the selected row on startPage.aspx
-
Previous Page Problemi want to access the data of the gridview controll.
-
Previous Page Problemi have added %@ PreviousPageType VirtualPath ="~/StartPage.aspx" % in my dialog page i want to access Gridview of StartPage.aspx which is the previous page but in the dialog page the previous page is null Thanks
-
Previous Page Problemi am using this to redirect GridView2.DataSource = dummy_rules; GridView2.DataBind(); foreach (GridViewRow row in GridView2.Rows) ((LinkButton)row.Controls[0].Controls[0]).Attributes.Add("onclick", "window.showModalDialog('CreateRule.aspx?new=editM',null, 'status:no;dialogWidth:555px;dialogHeight:425px;di alogHide:true;help:no;scroll:no')"); the dialog box appears but i need the gridview there.........but when i use Prevouspage it throws exception Object reference not set to an instance of an object i have added the directive ]]>;
-
window.showDialogi did so but i still have the same problem........this donot solve it
-
ASP panel controlI DID IT but there is a problem if i place an alert before this it works otherwise it donot.......... i have checked the value of scroll top changes even if i donot place alert but visualy the scroll position do not v=change
-
ASP panel controli have a panel which has auto ScrollBar i have two buttons having text "MoveUp" and MoveDown Respectivelly what i want to achieve is on clicking MoveUp the panel is scrolled up by one (some) unit and on clicking the movedown button the pannel should scroll one unit down. waiting for kind reply
-
window.showDialogin my cs file of the page i have added Button1.Attributes.Add("onclick", "window.showModalDialog('Lookup.aspx?new=edit',null, 'status:no;dialogWidth:570px;dialogHeight:500px;di alogHide:true;help:no;scroll:no')"); this works quite gud................. lookup page opens as a dialog But i have two buttons on Lookup page,,,, when i click any the lookup page is opened as a web page not as a dialog.......... i dont need to open it again ........ i have simply added some functionality to the onclick events.... why the dialog button opens web page instead of refreshing itself Thanx
-
Javascripti cant get the value of any control in the javaScript function function clickIt(droplist,x) { //alert is working alert('it is step2'); //color of the row 2 which droplist belongs changes droplist.parentElement.parentElement.style.backgroundColor='#88AAFF'; //HERE IS PROBLEM i Get Undefined in Alert alert( droplist.parentElement.parentElement.cells[0].value); }