|
i use from this method:
ManagementObjectSearcher MainBoard = new ManagementObjectSearcher("Select * From Win32_BaseBoard");
foreach (ManagementObject mbProperty in MainBoard.Get())
{
lblMbName.Text = mbProperty["Name"].ToString();
lblSerialNumber.Text = mbProperty["SerialNumber"].ToString();
}
the name of mainboard detected but lblSerialNumber.Text always is null, why?
We Can Do Anything, If We Want It
|
|
|
|
|
Hi if i select month and year based on that...,
i need that month all dates in my datagrid...,
Plz help me...,
Magi
|
|
|
|
|
your question is unknown.
We Can Do Anything, If We Want It
|
|
|
|
|
Hi see in one of drop down list box i will select month...,
Another dropdown listbox i will select year...,
Now based on this two inputs,i want to display that month all dates in my datagrid....,
Now u got it my qeustion????????
Plz help me...
Magi
|
|
|
|
|
hi
how can i create a menu ribbon in asp.net without using a third party tool
thanks
|
|
|
|
|
|
Hi All,
I need yearwise scroll in asp.net calender control so I took 2 linkbutton << (for prev year) and >> (for next year). On click event of << I wrote code:
calDate.SelectedDate = calDate.SelectedDate.AddYears(-1)
calDate.VisibleDate = calDate.SelectedDate
but its gives error
System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
The added or subtracted value results in an un-representable DateTime.
Parameter name: months
For >> I wrote this code:
calDate.SelectedDate = calDate.SelectedDate.AddYears(1)
calDate.VisibleDate = calDate.SelectedDate
But here also its not showing next year properly....
the same code work in ASP.NET 1.1(C#) but its not working in ASP.NET 2.0(VB)
please help me.Its very urgent.
Thanks in advance..
|
|
|
|
|
Hi,
I have a Textbox for which maxLength is 80.If i enter characters in the Textbox i need to display the remaining characters that we can enter.
Example :if we enter 10 characters then it will show like "70 characters Left"
Please Help me.
Thanks and Regards
Narendra
|
|
|
|
|
u can use:
<asp:TextBox Id="txt1" runat="server" onkeypress="CharRemainFinder(this);" MaxLength="80" ></asp:TextBox><span id="RemainChr"></span>
<script>
function CharRemainFinder(txtObj)
{
var span = document.getElementById('RemainChr');
if(span != null)
span.innerHTML = 80 - txtObj.value.length + "characters left";
}
</script>
We Can Do Anything, If We Want It
|
|
|
|
|
Thank You Sir,
It is working
Thanks and Regards
Narendra
|
|
|
|
|
Hi,
I have some static pages in my application, and i want to open those static pages in the Master page.
i want to do so b'coz my static page content keeps on changing, so if i use an HTML page i will not have to re-complie the application.
So i want to know how to load that HTML page in some contentplaeholder or may be some other control.
Please suggest some another way also if u have it in your mind and may be useful to me.
Thanks,
Deepak Surana
|
|
|
|
|
I had the problem like this and laod the file with File.ReadAllText method and put a Label on the page(or Masterpage ) , then set Label.Text to that string. You can also user Literal Control or some other control I guess.
Mazy
"This chancy chancy chancy world....."
|
|
|
|
|
Thanks a lot. Nice suggestion.
I hope it works perfectly.
Deepak Surana
|
|
|
|
|
please say me are u from persian.
ایا شما ایرانی هستید؟
We Can Do Anything, If We Want It
|
|
|
|
|
no...
but why.
Deepak Surana
|
|
|
|
|
I am.
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
Hi All,
I need to display time in the following format in c#:
7:40a (not AM/PM whole word just A/P in lowercase)
So how could I achieve this?
|
|
|
|
|
rachitdamani wrote: I need to display time in the following format in c#:
7:40a
I don't know this is the rite method. But it will work Try
string strDate = DateTime.Now.ToShortTimeString();
strDate = strDate.ToLower().Replace("am","a");
strDate = strDate.ToLower().Replace("pm","p");
Console.WriteLine(strDate);
Console.ReadLine();
|
|
|
|
|
Thnx buddy,
it is working fine.
|
|
|
|
|
Hi Friends,
When I open VisualStudio then one VSS prompt is coming which asking about username,pwd,Browse.Then I given all details then source code opened in VisualStudio.
For modify one file in that I Created setworking folder and checkin into c:\samples (for example).
"My doubt is "
when I open C:\sample again It is prompting VSS window asking about username and pwd. Why?So How can I modify file and update in main folder(How to checkout)?
Thanks.
|
|
|
|
|
hi guys look at the link i post below the left navigation bar and the title bar dosnt move even when the page scroll down
anyone know how and wat tool,steps to do to create sonmething like that?
i only done fram like those in html but would like to do it in asp.net thx
http://www.sfi.com.sg/business/index.asp[^]
|
|
|
|
|
you can do the same in asp.net
<< >>
|
|
|
|
|
how?
make a i made a master page but it moves with the scroll bar...
or make it the same way as a normal html page with frame?
|
|
|
|
|
try with the samne as a normal html page...
any problem?
<< >>
|
|
|
|
|
however in my lefr frame which is a navigation page
i need to put role managment so taht only certain infomation is shown for certain roles
and also i tryed the normal way it keep rerouting to the master page
|
|
|
|