|
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.
|
|
|
|
|
Hi,
I want to know the Internet Speed and Bandwidth from the Asp.Net application(c#)
Is there any way to find that information..
Guys Please help me its an urgent requirement.
Thanks
Hari
-- modified at 8:46 Thursday 1st November, 2007
|
|
|
|
|
i want to know how to create page dynamically like Sulekha.com
which show his record per html page through programm.
I am working on project such like this and i want to implement like this?
when i click 'next' button then it give (page1,page2,..........so on at last paging data showing.
At this time page creation depend on data .
how to manage and create file because file requesting to show data may 100th page or may be 10th page
how to solve this problem (ur help to can see http://yellowpages.sulekha.com/delhi/computers-mobiles/computer-sales/186.htm[^]
and go page wise )
how to solve this problem
Any programmer can help me???
Please send me solution on my mail...
gmail ID=======
suresh010480@gmail.com
-- modified at 7:28 Thursday 1st November, 2007
Mr. Suresh Shamra
.Net Expert
|
|
|
|
|
Hi Sharma
I thing AJAX is your solution.
I cannot give you more (how-to-do) because now I am on my training to reach myself become AJAX-er.
Hope usefull
|
|
|
|
|
Please don't repost.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
hello
i am using a radio buttonlist and want to showing text in two lines .
in that case have to apply the diffrent style for both lines, so please help me some .
i am using code like below..
string str="";
DataTable dt=new DataTable();
foreach (DataRow dr in dt.Rows)
{
str = dr["VisibilityText"].ToString()+" <span class="rblItalic">"+ dr["VisibilityDescription"].ToString()+ "</span>";"
ListItem li = new ListItem(str,dr["VisibilityID"].ToString());
rbl_visibility.Items.Add(li);
}
it's showing in two lines but style is not applying ,all style showing like a text pls help me some
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
RajeevKumarSharma wrote: ListItem li = new ListItem(str,dr["VisibilityID"].ToString());
Hey apply style sheet to item or radiobutton list
rbl_visibility.CssClass = "Class Name";
li.Attributes.CssStyle = "Class Name";
And Check the html
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... "
|
|
|
|
|
very very thanks for reply but i have done this with my self
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
Check the Html Source of your page ? And check the style
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... "
|
|
|
|
|
Hi Rajeev
How to do that? What is the solution? Could you share?
|
|
|
|
|
Sir/Madam its very eassy.
first time i was writting a html code but that is not reflecting on the page even that get change in html format.
such as for greatethen >
it change into < symbol but not reflacting
so i use directoly < symbol and that is working properly.
today i am very happy that some one want to share my idea .
thanks
my email id is rajeev15july@gmail.com
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
In what way you want to create a dynamic page. Did get your point ..
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... "
|
|
|
|