|
if you want to display in text box you can use Masktext box and user your custom format of string
|
|
|
|
|
just look at it
long tr=1000000;
TextBox1.Text = tr.ToString("##,###");
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Function IndiaRupees(ByVal rs As String)
Dim str As String = ""
str = Right(rs, 3)
rs = Left(rs, IIf(rs.Length > 3, rs.Length - 3, 0))
While rs <> ""
str = Right(rs, 2) & "," & str
rs = Left(rs, IIf(rs.Length > 2, rs.Length - 2, 0))
End While
IndiaRupees = "Rs. " & str
End Function
Prakash Samariya
|
|
|
|
|
hi all
is there is a way to generate a pdf file in asp.net,code behind is vb.net?
if so...
i have a page with some textbox and dropdown controls and button with the name preview.
in runmode, whenever i click on the preview button valus of the controls should displayed in another page.
plz help in this
thanks in advance
siri
|
|
|
|
|
There are many PDF generation controls available. Have a search in google to find some.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
A free approach is to use iTextSharp (open source and .net implemented)
You can use third parties libraries (tall pdf, ...).
/// -------------------------
Braulio Díez
tipsdotnet.com
/// -------------------------
|
|
|
|
|
iam having source code from to .now i want the html page to present in the iframe with this source code and it should work normally like an html page .
|
|
|
|
|
Write the content of the page with document.write
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
Hi in my query i am getting o/p like this:
10010053 1 Admin
10010053 1 Admin
10010053 2 Gen.Master
10010053 2 Gen.Master
This i have filled in my datatable...,
now i am selecting that records from my datatable:
dt.select()
I have to bind this one in to my arraylist using loop condition...,
But i dont want bind repeated text..,
Means it have to bind:
Admin
Gen.Master
How to do that..,
Plz hlp advance thanks,
Regards,
Magi
|
|
|
|
|
Change your query to do a select distinct instead.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
No actually i cant change my query...,
Becoz i have some more fields those will come belongs to this way only...,
So plz any other solution will be help me...,
Regards,
Magi
|
|
|
|
|
Use a Dictionary then, and copy the items you are interested in over to it, then bind to the dictionary. This is going to be a relatively slow process (depending on the number of rows present). Your logic will look something like this:
Dictionary<int, string> dictionary = new Dictionary<int, string>();
foreach (.... in ...)
{
int item = field1;
string data = field2;
if (!dictionary.ContainsKey(item))
{
dictionary.Add(item, data);
}
}
myGrid.DataSource = dictionary;
myGrid.DataBind();
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
how to use active directory for user authentication from different system.
Piyush Vardhan Singh
|
|
|
|
|
Active directory is the server and ur system name is their. try to browse the directory using asp.net directory and try to find out the name. And u can see also in archiviewer code ok. it is written their.
Devjit Das.
|
|
|
|
|
i am developing an application with asp.net along with c#.net using sqlserver2005 as db
i want to add a image in the database.
maeans i want to keep the path of image to where it is saved(not from where it is updated).and want to keep the image in seperate folder with in the application name image.
can you tell me what wil be code to " upload a picture in my application and then store the path name i.e where it will be saved(let say in C:\myproject\mypicture) in the db and the image in a seperate folder inside my application(let say in C:\myproject\mypicture)"
plz reply soon
|
|
|
|
|
Same Question from You[^]
Did u check the ans that i have provided ? if yes what are the error or if no then please check it first
Thanks !!!!
|
|
|
|
|
You're basically asking us to do all the work for you, which nobody will. Take it step by step. First, the upload dialog. Goggle about it. Read the tutorials you find, implement it and then, if you have any problems ask for our help.
You're wasting your time trying to get us to do your work. And so would we by giving you the code. The road to knowledge begins with learning.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
for(var i=0;i<h.length;i++)<br />
{<br />
if(h.substring(i) == "'")<br />
{<br />
alert('Invalid Character in'); <br />
return false;<br />
}<br />
}
is there any problem in the above code.
-- modified at 6:45 Thursday 1st November, 2007
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
-- modified at 6:46 Thursday 1st November, 2007
|
|
|
|
|
Check the Ignore html checkbox before posting the html or javascript code or add that code in code format
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
try this ..
function TestSubstring()
{
var str="dev't";
for(var i=0;i<=str.length;i++)
{
if(str.substring(i,i-1) == "'")
{
alert('Invalid Character in');
return false;
}
}
return false;
}
Get ur problem solve.
Devjit Das.
|
|
|
|
|
are devjit babooooooooooo aaapppp hai ham to soche ki koi aur hai InsDev ke naam se. come to rediff
Piyush Vardhan Singh
|
|
|
|
|
Thanks Dev....
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
he is genius dear and also my guru
Piyush Vardhan Singh
|
|
|
|
|
Sonia Gupta wrote: for(var i=0;i {
// alert(h.substring(i));
if(h.substring(i) == "'")
{
alert('Invalid Character in');
return false;
}
}
is there any problem in the above code.
You tell us? It's your code - so presumably you've tried it. What do you think the problem is?
BTW - you really need to either check the ignore HTML checkbox or use < so that you post the actual code and not a mangled pile of garbage.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
problem solve or not.
Devjit Das.
|
|
|
|