|
use System.Globalization
and use Cultureinfo and regioninfo class
if you create object of an regioninfo class you can get the CourencyFormat!!
if you want to create own or cutome CurrencyFormat ..
use sysglobl.dll and use CultureRegionandInfo Builder Class.
|
|
|
|
|
iam getting the date in dd/MM/yyyy format with the time but i dont want the time how can be possible to remove the time with dd/mm/yyyy format
|
|
|
|
|
|
Hi Jagadeesh,
DateTime yesterday = DateTime.Now;
yesterday= yesterday.Date;
the second line will set the date to mid-night, Hope this will help.
-Ram.
|
|
|
|
|
Hello Friends,
I have created an ASP.NET application on my machine where the resolution is set to 1024*768. When i view my project in 800*600 it looks very different and scrolling also get started...........
|
|
|
|
|
|
Hi
I'm using following code but not getting desired result.
In tempRow the value should come like "Imagegrab.aspx?id="
but this particular value is not assigning in dataset.
foreach( DataRow tempRow in ds.Tables[0].Rows )
{
tempRow.ItemArray[12]=("Imagegrab.aspx?id=" + tempRow.ItemArray[0]);
}
please help me as soon as possible.
krishna veer singh
|
|
|
|
|
Have you checked that the column has a data type of string.
Also the ItemArray returns an object so add .ToString() like this: tempRow.ItemArray[0].ToString());
|
|
|
|
|
How can i check datatype
following code is in vb, it's working fine, but c# code which is veri similar to this code is not working..
ds.Tables(0).Columns.Add("imgFile")
For Each tempRow As DataRow In ds.Tables(0).Rows
tempRow.Item(3) = ("Imagegrab.aspx?id=" & tempRow.Item(0))
Next
plz reply
krishna veer singh
|
|
|
|
|
In C# try to add the column like this:
dt.Columns.Add(new DataColumn("imgFile", typeof(string)));
|
|
|
|
|
Hi Friends,
I have one doubt,i having a web page then i m having number of check boxes.In that checkboxes i have checked some checkboxes,how to store the checked one to the database in a single column and how to count number of checkboxes are checked in a web page.Kindly tell me how to find?
Thank You
Take Care
Thanks & Regards
Senthil Kumar
|
|
|
|
|
Suppose u have the sixth column as a checkbox column then do the following.
for (int count = 0; count < a.Rows.Count; count++)<br />
{<br />
CheckBox c = (CheckBox)grdsubbassinfo.Rows[count].Cells[5].FindControl("ch1");<br />
}
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
hi pankaj,
thanks for reply,i have one doubt what is 'a'which mentioned above.Rows.Count means to count the rows what is "a".
Take Care
Thanks & Regards
Senthil Kumar
|
|
|
|
|
Sorry Pankaj,i m not having the checkboxes in the grid.
|
|
|
|
|
How are you outputting the checkboxes? Is it in a checkboxlist, or are they individual.
|
|
|
|
|
it is individual checkbox
|
|
|
|
|
Not too sure exactly what you are doing here, I have a feeling there may be a better way. If you have random numbers of checkboxes on your page, you could potentially loop through the Controls collection of the Page and find look at the checked values for all controls of type CheckBox.
|
|
|
|
|
Hi senthil,
You can grab all the values of the check boxes into a string something like below.
0,1,1,0,0
or
false, true, true, false, false
store it as a sting to the DB and when you read back use split() and get the values back.
-ram.
|
|
|
|
|
Dear All,
I have tested my web page in localhost but it can't work and it show the text as bellow:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'http://localhost/TestASPX/Default.aspx'. Line 1, ...
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
-^
I think maybe i decript not clear. Hope you know the problem.
Pls....
VB.Net
modified on Monday, January 14, 2008 5:10:55 AM
|
|
|
|
|
goto all Menus-> programs->microsoft visual studio->visual studio tool->visual studio 2005 command tools
write the following line
aspnet_regiis -i
and press enter
hope the problem will not execute further.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Thank you deptly for your help. It's ok but only in my computer. now i have another problem with computer in network. They can't open it.
how can i do ?
Help....pls
VB.Net
|
|
|
|
|
did u create the precompied files for the site.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
sorry i do not know precompied files. What are they ?
how can i create them ?
VB.Net
|
|
|
|
|
right click the website in the solution explorer , select the publish web site option.
This will help u to access the page on the network as well.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Try to test it. Thank you for your help
VB.Net
|
|
|
|