Try above code
Kiran Banker
Try above code
Kiran Banker
Hi, 1. Please check that you have uploaded .aspx file properly.
Kiran Banker
var LblCountry =document.getElementById(lnktext.ClientID); alert(LblCountry); // It will alert as object. If it is not then try to copy same id from source and check. var ltext= LblCountry .value;
Kiran Banker
Try this document.getElementById('lnktext').value;
Kiran Banker
Hello, Using view source option of browser, Check that ClientID you are passing as argument and actual id are same.
Kiran Banker
Hello, How to Invoke Upgrade Method of Win32_Product. SelectQuery qry = new SelectQuery("Win32_Product"); ManagementObjectSearcher searcher = new ManagementObjectSearcher(qry); ManagementObjectCollection av = searcher.Get(); foreach (ManagementObject var in av) { try { listBox1.Items.Add(Convert.ToString(var["Name"])); } catch (Exception ex) { } } Please Help, Thanks
Kiran Banker
Like, Name, Version and UpdateStatus
Kiran Banker
Hello, How to retrieve information of installed anti-virus using WMI. Thanks
Kiran Banker
Hi... When i click on IE's Title bar and move it. Then which event will be fired. And how to handle this event in c#.
Kiran Banker
I am giving answer of my problem. Solution is as given below. void hooks_MouseDown(object sender, MouseHookEventArgs e) { if (e.Button == MouseButtons.Left && this.thisKeyboard.CtrlKeyDown) { IHTMLDocument2 htmlDoc = (IHTMLDocument2)((BasketToolBar)this.Tag).WebBrowser.IWebBrowser_Document; IHTMLElement el = htmlDoc.elementFromPoint(e.X, e.Y); if(el.tagName.ToLower().Contains("frame")) { HTMLFrameElement frm =(HTMLFrameElement)el; mshtml.HTMLDocument doc =(HTMLDocumen) ((SHDocVw.IWebBrowser2)frm).Document; el = doc.elementFromPoint(e.X, e.Y); } } } Kiran Banker
Kiran Banker
Hi,... My Code is like this void hooks_MouseDown(object sender, MouseHookEventArgs e) { if (e.Button == MouseButtons.Left && this.thisKeyboard.CtrlKeyDown) { IHTMLDocument2 htmlDoc = (IHTMLDocument2)((BasketToolBar)this.Tag).WebBrowser.IWebBrowser_Document; IHTMLElement el = htmlDoc.elementFromPoint(e.X, e.Y); } } Now when i am clicking on any image inside frame i am gatting IHTMLFrameElement not IHTMLImgElement. How can i get that IHTMLImgElement inside frame.
Kiran Banker
Hi, My Application attache on control with Internet Explorer and control has WebBrowser window control. Now actually we are reading data from any web page and we capturing object and embed tag from that pages. Now when we put that captured tag in our control it makes it autoplay. And we want to stop that autoplay. Code.................... IHTMLDocument2 htmlDoc = (IHTMLDocument2)((BasketToolBar)this.Tag).WebBrowser.IWebBrowser_Document; IHTMLElement el = htmlDoc.elementFromPoint(e.X, e.Y); if (el.tagName.Equals("OBJECT")) { HTMLObjectElement objEl = (HTMLObjectElement)el; }
Kiran Banker
I know this is programing site. My application is developed in C#. It mainly drag video from other site and drop in my application. But from some websites it (video) runs automatically. And i want to stop it for any web site.
Kiran Banker
Hi. Whenever i search for any video on internet in some sites it starts playing automatically. I want to stop it. How can i do this.
Kiran Banker
Hi,.. In my web application, i have one help file as pdf format. when in firefox i type like http://localhost/myapp/help.pdf then it opens in binary format. If is there any setting in IIS or in firefox then let me know.
Kiran Banker
Hi, Master Table SMID(int) Descr(varchar) 43 A 47 B 208 C 502 D 549 E Child Table Descr_SMID(varchar) 208 502,549,43,47 502,549 Now I want result like this using count. A (1) B (1) C (1) D (2) E (2)
kiran banker
it contains following data. SMID Data_Value 1 2500 2 3500 3 5000 4 10000 5 15000 6 20000
kiran banker
still no working but i write like this select DEFINITION_DETAIL_DATA.SMID, Convert(Decimal,Data_Value) as Val from DEFINITION_DETAIL_DATA inner join DEFINITION_MST on DEFINITION_MST.SMID = DEFINITION_DETAIL_DATA.SMID Where DEFINITION_MST.MPID = 176 AND DEFINITION_DETAIL_DATA.SMID = 204 and Convert(Decimal,Data_Value) > 1 then it works but i want like this select DEFINITION_DETAIL_DATA.SMID, Convert(Decimal,Data_Value) as Val from DEFINITION_DETAIL_DATA inner join DEFINITION_MST on DEFINITION_MST.SMID = DEFINITION_DETAIL_DATA.SMID Where DEFINITION_MST.MPID = 176 and Convert(Decimal,Data_Value) > 1
kiran banker
giving an error invalid column namd
kiran banker
Hi, Problem with converting varchar into Numeric select DEFINITION_DETAIL_DATA.SMID, Cast(Data_Value as Numeric)as Val from DEFINITION_DETAIL_DATA inner join DEFINITION_MST on DEFINITION_MST.SMID = DEFINITION_DETAIL_DATA.SMID Where DEFINITION_MST.MPID = 176 and Convert(Numeric,Data_Value) > 10000 Value without where condition shows like. 1 2500 2 3500 3 5000 4 10000 5 15000 6 20000 but when i add Convert(Numeric,Data_Value) > 10000 in query then its give me an error. Error converting data type varchar to numeric.
kiran banker