You can use css for the same. :)
.GroupPanel, .GroupPanel Legend
{
text-decoration: none;
border: 0;
}
You can use css for the same. :)
.GroupPanel, .GroupPanel Legend
{
text-decoration: none;
border: 0;
}
Hello, I have zip file on my machine , needs to unzip that file and read the data from csv file. i tried below code but , doent work for me. .NET Framework Zip / UnZip Tool Using the Packaging Namespace[^] Is their any other way to unzip file using System.IO.Packaging; i dont want to use third party dll.
i tries to get regional settings in javascript , it workes but javascript runs after pageload. i iwant that value before page load done. i want to apply that language 1st time. i tried to store that valaue in javascript but it gets after page load. ;(
thanks for the reply :) but its client requirement that they want to disply data acooring to regional setting language. :( My code is working for another project but its not working in another porject where actually i need language. ;( not sure why so
Hello, I wants to retrive regional language settings in my code. For that i used WMI. I tried below code. in page load : GetLoggedInUserCulture();
private static CultureInfo GetLoggedInUserCulture()
{
string folderName = string.Empty;
string sID = GetWindowsLoggedInUserSID();
object locale = Registry.Users.OpenSubKey(sID + @"\\Control Panel\\International").GetValue("Locale");
int lCID = int.Parse(locale.ToString(), NumberStyles.HexNumber);
CultureInfo ci = new CultureInfo(lCID);
return ci;
}
private static string GetWindowsLoggedInUserSID()
{
string userName = null;
string sID = null;
try
{
ManagementScope oMs = new ManagementScope();
ObjectQuery oQuery = new ObjectQuery("Select UserName from Win32\_ComputerSystem");
ManagementObjectSearcher oSearcher = new ManagementObjectSearcher(oMs, oQuery);
ManagementObjectCollection oReturnCollection = oSearcher.Get();
ManagementClass mc = new ManagementClass(oMs, new ManagementPath("ServerBinding"), null);
foreach (ManagementObject oReturn in oReturnCollection)
{
userName = oReturn\["UserName"\].ToString().ToLower();
}
userName = userName.Substring(userName.LastIndexOf(@"\\") + 1);
oQuery = new ObjectQuery("Select SID, Name from Win32\_Account where Name = '" + userName + "'");
oSearcher = new ManagementObjectSearcher(oMs, oQuery);
oReturnCollection = oSearcher.Get();
foreach (ManagementObject oReturn in oReturnCollection)
{
if (oReturn\["SID"\] != null)
{
sID = oReturn\["SID"\].ToString();
}
}
}
catch (Exception)
{
throw;
}
return sID;
}
but oReturn["UserName"] and oReturn["SID"] return me null value. :( Do i need to add anything in webconfig. or any thing else am missing.. please help me
ohk.. thanks. I just want to read the data in my code behind. (asp.net) so i was tring to get website excel link..
No..Not just for curiosity .. I need to collect page data of given page for some use. Please help me.. how can i do that.
thanks for the reply. :) Website is http://www.nasdaqomxnordic.com/shares/Historical_prices/?Instrument=SSE4928[^] i think Webcore is jQuery File. its not our website.. so i cant debug :(
Below is code i have got from " this link. can any one tell me.. what link it will generate??"[^]
var from = "2011-10-09";
var to = "2011-11-09";
//IG fix for dateformat yyyy-mm-dd, must match before sending.
if (to.match(/^\d{4}[-]\d{2}[-]\d{2}$/) && from.match(/^\d{4}[-]\d{2}[-]\d{2}$/)) {
var query = webCore.createQuery(webCore.marketAction.getDataSeries, {}, {
FromDate: from,
ToDate: to,
Instrument: webCore.getInstrument(),
hi__a: "0,1,2,4,21,8,10,11,12,9",
ext_xslt_lang: currentLanguage,
ext_xslt_options: "," + $("#adjustedId:checked").val() + ",", //$("#unadjustedId:checked").val() + ",",
ext_xslt: "hi_table_shares_adjusted.xsl",
ext_contenttype: "application/ms-excel",
ext_contenttypefilename: "_" +
webCore.getInstrument() + ".xls",
ext_xslt_hiddenattrs: ",ip,iv,",
ext_xslt_tableId: "historicalTable"
}
);
$("#excelQuery").val( query );
$("#excelForm").attr( "action", webCore.proxyURL ).submit();
i got this code from view source. i think webCore.getInstrument() will return SSE4928 but am not sure whta will be whole query.. so i will get link and i can access data from it.
so i need to login programatically. How can i do that?
i have parser which runs daily through which Need to fetch data form below website through coding (asp.net). Need date and closing price from table. http://www.nasdaqomxnordic.com/shares/Historical_prices/?Instrument=SSE4928[^] In View source didnt get the data so can not use that way. How can i acheive this?
i dontt want to set culture , i want to getculture info. i have done below changes in page load but still its not working. System.Threading.Thread.CurrentThread.CurrentUICulture = System.Globalization.CultureInfo.GetCultureInfo("de-DE"); string strCluture = CultureInfo.CurrentCulture.Name; strCluture returns en-US :(
Hey... Thanks for the your reply. I have restarted my application as well as my pc. still its not applying selected culture.
i need to get machine localization in my website. i change my machine localization ("Regional and Language Options" control panel.) and check with below code but always it shows as 'en_US'.. string strCluture = CultureInfo.CurrentCulture.Name; what i need to do to get current localization. am i missing some setting or what?
i have frame.aspx page on which i have frame plus hidden feild.
from which am calling another page.
in that anothe page i want to access hidden feild control of frame.
Below is my design page of frame.aspx
<form id="formFrame" runat="server">
<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td align="center" valign="top">
<iframe id="iFrame" name="MainFrame" runat="server" width="940px" height="785px" scrolling="no" frameborder="0" >
</iframe>
<asp:HiddenField ID="hdnCulture" runat="server"/>
</td>
</tr>
</table>
</form>
Below is my frame.aspx.cs code
iFrame.Attributes["src"] = "Default.aspx?ticker=" + sTicker "";
So i want to access hdnCulture control on default.aspx page.
how can i access :(
I have radio button on my webpage. <asp:RadioButtonList runat="server" ID="rdlChartTypes" CssClass="RadioStyle" OnSelectedIndexChanged="rdlChartTypes_SelectedIndexChanged" AutoPostBack="true"> <asp:ListItem Selected="True">Bar</asp:ListItem> asp:ListItemLine</asp:ListItem> </asp:RadioButtonList> I want to add css for the same. when we click on any radio button then tht circular button clicked by black color. i want to change tht dot color by anothe color?? Another thing is i have dropdownlist. on any item list hover i want change backcolor of tht item. how to do that in CSS??
Thanks for the reply. but i want to user asp.net controls.. link which you have provided , in which they have used another controls :( so any other wayout??
I have dropdown lsit on my web page. <asp:DropDownList ID="ddlFrom" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlFrom_SelectedIndexChanged"> </asp:DropDownList> 1)I want to change scrll bar color of the dropdownlist. 2)selected item color change. want to do above 2 things in CSS. i have added below code in my css file. select { font-family: Calibri; font-size: 13px; font-weight: normal; text-decoration: none; background: #FDEEF4; color: #663333; border: 1px solid; } what else i need to add in above code to achiev above 2 things??
Hey...thnks for the reply. I tried in different way but no use :( on that master page i have control.. on tht control there is label. i want to disable tht label :( from ifare call page script language="javascript" type="text/javascript"> function setIframeHeight(iframeName) { debugger; var s = document.getElementById(iframeName).contentWindow.document; var t = document.frames("iFrame").document.firstChild.childNodes[1].document.getElementsByTagName("MasterPlaceHolder"); var test = document.frames("iFrame").document.getElementId('MasterPlaceHolder'); var p = s.document.getElementById("ucModel1"); } </script> iFrame.Attributes.Add("onload", "setIframeHeight('iFrame');");
I am having Iframe on defaultone.aspx page from tht page i am called defaulttwo.aspx page. on that page their is master page call(defaultmaster.master ). iWant to get that master page object in java script of Defaultone.aspx page. How i will get tht??
modified on Monday, June 27, 2011 8:43 AM