Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am new with ASP Dot Net. I am looking for some Data Component for following scenario.
User double click on the cell and add some text.
Text should automatically save in database.
I have tried with GridView but its not working. I am getting GridView columns from MSSQL Server Table which are around 600. As mentioned above what I want to do is when a user clicks on a cell it should let the user to add text and then save in database.
Please let me know how to proceed or Should I need to use some other Data Component.
Are you using an SQL data source or back-end code? You can check out using a template column for your editable fields so you can run your update on a change event. Here is some info on template columns :
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.templatefield.edititemtemplate%28v=vs.100%29.aspx
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
Please help me ,I am very new to asp.net.I have one Listbox, on which data has been taken from the database, I want to move this data into another Listbox one by one ,what is ASP.Net c# code for this?
thanks in advance..
ListBox2.Items.AddRange(ListBox1.Items.Cast<ListItem>().ToArray());
you need to add using statement to
using System.Linq;
using System.Web.UI.WebControls;
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have files (like plain text) that I should insert into SQL using C#.
They are headerless, and even without extension. Only info I have is starting index of every column.
Any help how can I do this? Ok, I know I will need to separate columns and insert them in datatable when I read file, but how to read those rows?
You need to read up on SQL Server's bcp.exe utility (bulk copy) and its SQL statement brother bulk insert and their C# sister, SqlBulkCopy.
As far as creating a custom DataTable goes, read the documentation. Don't forget to invoke AcceptChanges() after creating the columns you want, and after adding the data you want to add.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Like when double click on the hyperlink on the interface the source code doesn't open and no method created?
So, how can I implement it?! Should I create the method by myself or what?!
You can also use linkButton control and handle its click event at code behind.
Forgot your password?
Try.
asp:HyperLink's do not have any Actions in the properties of the hyperlink.
Select your hyperlink properties and click on the (Events) .
You should only able to see Data and Misc sections and you dont find any Actions section for asp hyperlink control. Where as select any buttons and do the same you should see Actions section for it.
So you cannot implement it by double clicking on the hyperlinks.
Try using a link button as #Eric Fan has suggested.
Hope this clarifies
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need to write an employee maintenance program (in C#) that can add, change and delete from a text file. I have the HTML all put into an .aspx file but I have NO clue on how to set it up to read from a text file and populate the input fields with the employee to maintain.
If I could get some insight on how to read a text file and populate the input fields(form fields) that would be great. Even a link that explains it since I haven't been able to find one. The text file will have to have a record ID as the first field so I know which one to grab for editing(to display) or deleting.
There's a toolkit of functions to manipulate files in the system.io.file class. That's a reasonable start for the project.
You might also consider using a database instead of a text file. They're designed to handle storage and retrieval of data that changes a lot. A text file is doing it the hard way.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am having a user manual for my asp.net application which I will be using as a help option for the user. I am providing help using some keywords. When users clicks or selects the keyword that he wants help with I want to open that page number of the user manuals PDF file where the keyword is there. E.G. if i search User master , then user manual should get open, directly taking me to the page where user master information is there.
Can this be done in asp.net.? C#.? Any suggestions?
If you know which page the keyword is on simply;
Add "#page=4" to the end of the link.
If you don't know the page number and you want to find the page number at run time you'll need to index the pdf document and search the document.
You can map keywords to page numbers if you know the keywords ahead of time.
Google for C# PDF searching APIs.
dtSearch is good but it's not free.