|
Hi guys,
Thanks for the help previously for helping me to display combobox in editItem mode. I have a followup question, which is how do i update my database if the user had changed the value there? And how do i set the combobox to show the retreive value from the database ?
Thank you everyone....;)
AaronNeo
|
|
|
|
|
To Save data from combo box.
a> Iterate each row of the Gridview find the dropdown control in the gridview row using control id, get the selected value and update the value to the database.
b> Set the auto-post back of the dropdown to true and handle the selected change event, get the value and update it to the database.
To bind the control.
a> Set the datasource property at design time only by calling a server side function which returns a datatable or dataview object.
b> Or handle the row created event of the grid view, get the dropdown from the gridview row, set the datasource property.
Regards,
Prakash Kalakoti
|
|
|
|
|
I allready replied for this...
Check it out...
Sherin Iranimose
|
|
|
|
|
Hi all
Is there a way when writting response.write(table) from code behind to save the table in the body of the html file not outside it.
thanks
|
|
|
|
|
Use a literal control and assign the table to that
|
|
|
|
|
Thanks for ur response. I managed to assign the table to the literal control, but iam not being able to reference it. I want to iterate through this table and add values from it to database.
Thanks again
|
|
|
|
|
IMO, why dont you use asp table server control?
<< >>
|
|
|
|
|
This is what iam trying to do!!!
How can i fill this table from html file or literal control
thanks
|
|
|
|
|
sorry missed your mean...do you want to add row into a table at client side?
<< >>
|
|
|
|
|
No, what i meant is that my datasource is an html table genertaed by a program that i dont have its source. My need is to save this html table into database. What i was trying to do is to return data from the html table to a asp table where i can iterate through each row.
|
|
|
|
|
so just a suggestion as I'm not sure too...you got the html source and able to show it at client ,right? the way i would suggest is that storing the html table into a hidden field...so when submitting, just parse it to get value from it
<< >>
|
|
|
|
|
This is exactly what i want, i want to parse data from the td's and save them in database and i have the html source and able to show it at client side. How can i? Thanks again.
|
|
|
|
|
If I understand you correctly, you need to traverse through your html table.
here is a pseudo code on doing that:
var table = document.getElementById("MyTable");
var tableBody = table.getElementsByTagName("TBODY")[0];
var trs = tbody.getElementsByTagName('TR');
for(var i=0; i<trs.length; i++)
{
var cells = trs[i].getElementsByTagName('TD');
for (var j = 0; j< cells.length; j++)
{
var myCell = cells[j];
}
}
Sincerely,
Elina
Life is great!!!
Enjoy every moment of it!
|
|
|
|
|
Let me remind u that u have a PlaceHolder control which u can precisely position anywhere in the document. And this control is used to hold other controls.
So u decalre the contols in code behiend and add it using the PlaceHolder controls Control.add() method. Fine . I think it solves ur purpose
Bijay Bhaskar Deo
|
|
|
|
|
without giving smtpserver name can we send mail?............
|
|
|
|
|
anujose wrote: without giving smtpserver name can we send mail?............
I think It will take localhost as default SMTP server
|
|
|
|
|
yes
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi,
Why do we use setup and deployment projects in .net? What purpose do we use it. pls explain me in detail with some links and articles if possible.
Regards
Vijay.
|
|
|
|
|
Setup and Deployment projects, as the name suggests, is used to deploy your application in the end-user's machine. They are installers which install your application in the target computer. They let you customize a lot of options like the Folder in which the application files need to be written to (ex: Program Files\MyApp), create desktop and startmenu shortcuts, add registry keys etc. If your's is a web application, it'll help you create a virtual directory with a desired name automatically.
These projects create a MSI (Microsoft Installer) file which packages all your application files (dll's, images, sounds and whatever your application uses) into a single .msi file. You can then distribute your installer to whomever uses your application in a less messy and more intuitive method.
As for articles and examples, Code Project must have many. If you're able to post messages here, I don't see what's stopping you from searching.
Try this for starters.
|
|
|
|
|
Thanks for u reply dude. Actually i'm not that much lazy for not having searched in the net. i searched in google and i found some complex and puzzly articles explained for that thing. i think the link u have given helped me to easily understand about it. Thanks a lot man.
Regards
Vijay.
|
|
|
|
|
Hi,
Is there any way to allow users to browse their folders, and on select list all files in that folder in listbox through asp.net web page.
Rams.
Be simple and Be sample.
|
|
|
|
|
ramskr wrote: Is there any way to allow users to browse their folders
Totally depends on the client. You can't force client for allowing your code to access his machine . For browsing the client folder you should have appropriate permission to do the task
ramskr wrote: on select list all files in that folder in listbox through asp.net web page.
If the Folder is browsable(with proper security permission) then you can read all files and Even you can upload them
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... "
|
|
|
|
|
What is the appropriate permission that you refer? How could I make one folder as such permission and allow users to upload those folder files to server.
Be simple and Be sample.
|
|
|
|
|
ramskr wrote: How could I make one folder as such permission and allow users to upload those folder files to server.
Is your application based on a predefined set of clients ? Then only you can do this ...
|
|
|
|
|
Yes, my application will have predefined set of clients.
If so, how could I provide permissions.
Be simple and Be sample.
|
|
|
|