Hi everybody Sorry maybe this questions asked many times but most of the answers not fit with me,Perhaps the lack of my understanding of what was write in these forums.
I am new in C# I want to retrieve Id in dropdown another control from SQL Database and when a user click an id and click the button which is create PDF then all the data from table show in column in pdf.table name is profile
table attributes are name,fathername,picture,gender,status,age etc
Populating IDs in dropdown is easy. You can do that by choosing datasource.
For creating pdf, in the buttonclick event you can either use the inbuilt report viewer or any third party tools like ITextSharp.
You can read the selected id from dropdownlist as ddl.SelectedItem/ddl.SelectedValue
Related
I want to bind a single crystal report multiple times. Scenario is that i have a gridview with some number of customer details and a print button with each row of gridview. when i click on print button yearly statement of that customer shown in crystal report. it works fine. But Now i want an print all button which is outside the gridview and when i click on this button single crystal report will be bind for all the customer is which in the gridview.
Is this Possible to do that? Please give me some suggestions.
How did you set this up?
is the report getting a customer id and the fetching the data from the db? (pull)
if so change the customer id parameter to an array/list and change your report query from where id = parameter to something like where id in (parameter)
if you use a push mechanism (get all the data beforehand and send it to the report)
you can send a list of customers instead of a single customer to the report
vague questions give vague answers :/
I have one textbox & autocompletextender. I have written method to populate Records(ID & name from particular table) to textbox. It works fine,but I want to know is it possible to populate records as combination of ID & name from particular table and after selecting that value, only ID should appear in textbox?
If yes then how it will be possible, suggest some idea?
Thank you.
Here is a great article on the subject http://www.codeproject.com/KB/ajax/autosuggestextender.aspx
A follow-up article explaining how to call an asynchronous server side auto post back event on a user's selection: http://www.codeproject.com/KB/webforms/PostbackAutoCompleteExten.aspx
Please help me out here I have about 1 day experience of C# ASP.NET web dev and I am stuck on something really simple. I am much more experienced in PHP and jQuery.
What I need to do:
Create a GridView and display data from MSSQL DB [done]
Add buttons to each row to enable direct editing of values in two columns [done]
Each row represents a list of equipment that the user can edit/save, and I need to add an extra "Edit Details" button to each row [done]
Upon clicking the "Edit Details" button, I need to pass the id of that list to a new page where user can edit and save the list
I have added a HyperLinkField for the row id to be passed on, in Visual Studio I have tried to config it so that the value can be read on the receiving page with Request.Params["xxxx"] but it is not working.
In PHP I would just create a POST <form> with hidden <input> values and obtain the value by $_POST["xxxx"]
However it seems that all this fancy ASP.NET and Visual Studio DataSource pointer/reference and config things are making things more complicated than I wished.
I greatly appreciate any help given, or any resources that will be helpful for me to transfer my skills in PHP over to ASP.NET with C#.
If you are passing it through query string use
string value = Request.QueryString["id"].ToString();;
If you are passing it through post use
string value = Request.Forms["id"].ToString();
I need to implement the following in the asp.net Gridview. I have the excel sheet as in the image. Based on this image i need to implement data entry application using asp.net gridview.
As you can see in the image from S.NO. 1 TO 5 for every ID Description there are multiple Authors e.g 2,3 or 5. How to implement the same functionality using asp.net gridview so that for every ID Description, user can enter multiple authors while entering the record in the DB design and how to show the records back to gridview as in the excel sheet??
Kindly suggest regarding DB and gridview implementation to handle this?
Thanks
i think you are looking for Nested GridView Control to Display Related Data.See a link. http://msdn.microsoft.com/en-us/library/aa992038%28v=vs.80%29.aspx
How to insert multiple values into a Sharepoint List Column. I have one sharepoint listcolumn named Technology of type Choices. When i hitted Save button after the selection of mutiple checkboxes, it will stored to that of particular column seperated by a semi column. Help me with a example..
alt text http://img145.imageshack.us/i/storing.jpg/
You can create a custom workflow for that, using the Sharepoint Designer. Associate the work flow with it, and after its save, you can create custom steps to save data in multiple sources.
http://office.microsoft.com/en-us/sharepointdesigner/HA101005911033.aspx