|
Ive been trying to find a way to access a drop down list value that is within the item template in a details view. This drop down list is conected to a database and i want to recover the value that is loaded when the page loads.
So can anyone help me with some clues on how to go about this??
|
|
|
|
|
Do this:
DropDownList ddl = (DropDownList)dtv.Rows[index].FindControl("ddlTemplate");
ddl gets the reference to the dropdown in the item template, i.e ddlTemplate.
Let me know how it goes.
|
|
|
|
|
yeah thanks that worked like a charm
now i get that find control returns the controls reference.
|
|
|
|
|
Glad that worked for you
|
|
|
|
|
Hi to All..!
Please Help me to solve my problem.
I have uploaded my website on server. In my web application i have used tree view whose nodes are filled through database. It is kept on Master Page. Database is also on the server. My Problem is When i open my website through server, after login, i switch to home page where tree view is loaded but cannot view the tree structure it shows the blank page only i can view the banner of my website where as the same project is on my IIS connected to the same database. Here i can view the tree structure and the contents of the home page.
So please tell me how to solve this problem.
Thanks!
.
|
|
|
|
|
Hello everyone,
I want to secure view source so that client can't copy it.
I want to restrict client to save pages, save view sources.
It is very urgent.
Pls help me. I shall be grateful to you forever.
Thank You
Vinod Kumar Prajapati
Software Engineer
EBC Publishing Pvt. Ltd.
|
|
|
|
|
Hi,
You cannot...
BTW why do you want to do that?
himanshu
|
|
|
|
|
vinodkrebc wrote: I want to secure view source so that client can't copy it.
I want to restrict client to save pages, save view sources.
You Can't
For More Info Read this Thread
vinodkrebc wrote: It is very urgent.
Not for all !!
modified on Monday, July 6, 2009 3:53 AM
|
|
|
|
|
Beware Univoter is active...He does not want to listen You Can't
himanshu
|
|
|
|
|
himanshu2561 wrote: Beware Univoter is active.
You got 1 again From him I believe.
|
|
|
|
|
Yes. He is
|
|
|
|
|
My requirement is to search the data from the database.But here one problem is whenever I click for search the data,It will take the trip to database server.Instead of that Is there any other solution where I can keep my data from database and search for it..
1.Is it possible to do with transfer the data to XML file and search in tht only?
2.Or there is another solution to do this?
Please help me..
|
|
|
|
|
Deepml wrote: 1.Is it possible to do with transfer the data to XML file and search in tht only?
Yes you can. at load time make XML and then search only that XML.
Deepml wrote: 2.Or there is another solution to do this?
You can use ajax to search data.
|
|
|
|
|
How can i use ajax for this??
|
|
|
|
|
Put search button and result in update panel.
so your whole page will not post back.
|
|
|
|
|
I think you didnt understand my requirement..I dont hv any problem wid the page postback..
My requirement is as follows:
i)There will be an admin user who will add the data for the site.
ii)Requirement is like,when admin will add the data tht time only XML file get updated.Otherwise search will done from XML file with the data present at tht time.
Basically I want to ignore the trip to the database server...
|
|
|
|
|
Hi,
does the query took to long? Maybe you are retrieving too many results to display?
1. Why do you convert the data into XML? XML-processing is slow and should only be used with small amounts of data.
2. You could use different approches to speed up your site (caching etc.) but for this we need to know more about the architecture/code you are using at the moment. Maybe you could go into more detail...
Regards
Sebastian
|
|
|
|
|
1.Basically whatever the solution , it should be applicable to the search the data which will be in small or huge amount..
2.My requirement is as follows:
i)There will be an admin user who will add the data for the site.
ii)Requirement is like,when admin will add the data tht time only XML file will get updated.Otherwise search will done from XML file with the data present at tht time.
Basically I want to ignore the trip to the database server...
If you are talking about the caching is it feasible solution for it?
|
|
|
|
|
Is your data stored within an XML file? If yes, I would suggest switching to a database, because that will be much faster, easier to use etc...
|
|
|
|
|
|
You can use indexing technique to make
your search fast and convinient.
For that you have to create indexes
and your searches will be on indexes only
rather than actual data which will increase the speed
of searching
Thank You
Vinod Kumar Prajapati
Software Engineer
EBC Publishing Pvt. Ltd.
|
|
|
|
|
|
The solution is to use an external indexing server as described here for instance:
see here[^] Page 11 has a nice system chart...
It will speed thinks up and make it possible to automate the data updates between the database and the data used by your AJAX servlet. Does this help?
Let me know if you need help.
Dan - rastaquere AATT gmail DOTT com
|
|
|
|
|
Hello All,
i have one list box which contain more than 20,000 row so that causing very long time to load the page so i want to dispaly top 100 row at a time display in list box.
so what my requirement is there when i have down the scroll bar next 100 row is loaded.
So Can you please help me how can i dentify or any event which is fire when i am reach at bottom of scroll in list box?
Thanks in Advance,
Anish Patel
|
|
|
|
|
anish27patel wrote: i have one list box which contain more than 20,000 row so that causing very long time to load the page so i want to dispaly top 100 row at a time display in list box.
Why you are not minimize the records by search criteria ? I want to mean, load those data which is required, rather than 20,000 records.
|
|
|
|