Thanks it works document.getElementById('<%=itemdesc.ClientID %>').value
Zapss
Posts
-
how to update elements in modal popup by using java script -
how to update elements in modal popup by using java scriptThanks for your reply i tried your code document.getElementById('<%=this.itemno.ClientID%>').innerHTML = itmno; but still the value is not visible in textbox. view soruce look like this <td> <input name="itemno" id="itemno" style="height: 21px; width: 263px;" type="text"><input>E-4005 "E-4005" is my itemno it is not visible in textbox.
-
how to update elements in modal popup by using java scripthi am new to ajax,am facing a big problem, my requirement is to add the item details to the grid,by using modal popup. In the modal popup i give a option to search the itemname this search details will be shown on grid in the same modal popup,in that grid i added button for selecting rows. once the user click the select button, i want to assign the values in the modal popup textbox, by using java script fucntion. My problem is javascript fucntion working well, i tried by alert fucnction working fine but the function shopModalPopup(itmid,itmno,itmdesc,onhand){ ********** working ************* alert(itmid); alert(itmno); alert(itmdesc); ********** not working ************* document.getElementById('itemid').value=itemid; document.getElementById('itemno').value=itmno; document.getElementById('itmdesc').value=itmdesc; document.getElementById('onhand').value=onhand; ********** not working ************* $get("<%=this.itemid.ClientID %>").value = itemid; $get("<%=this.itemno.ClientID %>").value =itmno; $get("<%=this.itemdesc.ClientID %>").value =itmno; $get("<%=this.onhand.ClientID %>").value =onhand; }
-
how to pass Date format "mm/dd/yyyy " to Sql Stored procedureDear all am new to c#(2008). i created a stored procedure in sql server 2000. "select * from employee where joindate between @d1 and @d1" I was using Table Adapter fill,get methods. when i tried to pass the date value which in "MM/dd/yyyy" it raises error message invalid datetime,then i declared DateTime variable and use Datetime.Parse(date in "MM/dd/yyyy"), DateTime.Parseexact,error not a valid datetime. i use Culture info ("en-US"),but no luck.
-
viewstate and javascriptHello All, I created a sample web usercontrol,which is having asp:table with 10 textboxes,i set the values for textbox blur event by calling javascript function,upto here fine . my problem is once i refresh values in most of the textboxes are null if i input the value there is no problem after page refresh. I set viewstate property to true Please Help
-
querystring encrypt:rose: HI Guys, How we can hide values of variables in our querystring those are readable in the address bar? is there any way we can encrypt the url and when it is required we can de-crypt it also like yahoo do?? (http://www.yahoo.com/\_ylh=x3oDMTB1M2EzYWFoBF9TAzI3MTYxNDkEdGVzdAMwBHRtcGwDaWUtYmV0YQ--/r/m1) It does not change the domain name but change the folder name and query string's values. and url encryption should be automatic. Please provide the solution in Asp.Net with C#
-
Problem in Connection stringstrConnect = (sring)System.Configuration.ConfigurationManager.ConnectionStrings("myconnection").ToString copy the class library in your bin folder
-
Displaying digits in native langDear All, Please Help Iam new to developing bilingual applications,now iam trying to develop a windows bilingual application English And Telugu.Iam facing a big problem with digits and date, I want to display the digits in native language by using culture info,but nothing will happen!if I change the setting in control panel digits change in native lang.How can i do this with out changing setting from control Panel.
-
Changing Regional SettingsDear all, Iam developing a bilingual application in C# framework version ver 1.1, how to change language setting using windows API. Please Help me
-
Connecting Sqlserver 2000 from Visual Studio 2005 C# editorDear all I am new to Visual studio 2005 beta, I am unable to connect Sql server 2000 database from DataBase explorer in VS 2005.when am going to establish connection to my sqlsever 2000 from Database explorer window(C# editor),it asks me the database file name,when i attach the database file even though it raises error that "Time out expire", Please help me how to connect sqlserver 2000 from Database explorer. Thanks In Advance.
-
Merging Rows/ Columns in Data GridHelo Need Help,Iam new to c#, How can i merge columns and rows in Data Grid Same like Vb6. flex grid.
-
Log in/Log out time from Active DirectoryThanks for your response how can i find log in time
-
Log in/Log out time from Active DirectoryHello need help How to retrive user log and log off time from active directory,
-
About post backHello all Im beginner in asp.net I have a problem with the auto postback function.I am using ASP.NET and C#.I have a Textbox with autopost back option true and command button in asp.net page.when ever textbox auto postback event fires,the code in button event aslo fires automatically.i dont want to fire this event in textbox autopost back event.i could i prevent this?why this happens :doh: Plz Help me.
-
Session EndingNeed an example on Session Ending.
-
How can i change the Form title bar colorHello How can i change the title bar color? i have using MSDN sample code but no use link below http://msdn.microsoft.com/library/default.asp?url=/libraray/en-us/sysinfo/base/changing\_the\_color\_of\_window\_elements.asp
-
How to change the Title Bar ColorHello , Iam new to c#.How can i change the Form title bar color programatically plz with example:)
-
ConnectinG REMOTE sql server FROM VB6Hello All how can i connect to remote sql server FROM VB6 This is my sample connections strings Dim rs As New ADODB.Recordset Dim cn As New ADODB.Connection Dim str As String On Error GoTo HAND cn.ConnectionTimeout = 30 Dim ConnString As String Method 1 -------- cn.Open "Trusted_Connection=yes;driver=SQL Server;server=20.19.69.13;database=XXXX;User Id=YYYYY;Password=ZZZZ" str = "Provider=SQLOLEDB.1;Server=23.19.69.13;Database=xxxx;Uid=yyyy;Pwd=zzzz" cn.Open str Method 2 -------- cn.Open "Provider=MS Remote;Data Source=XXXX;Remote Server=http://www.mysite.com;USER ID=XXX;PASSWORD=YYYY"
-
Sending Message to all clientsThanks for your suggetion :cool: I have another doubt will please help me? link below http://www.codeproject.com/script/comments/forums.asp?msg=949594&forumid=1649#xx949594xx
-
Sending Message to all clients:confused: Hello . Iam new to c#. How a message to send to all clients in LAN network. like "Net send" command