I'm trying to make a dynamic search page, for a table of 121 fields. It'll start by check boxes to check the fields where to search, and check boxes to check the fields in which the results will be shown in. I'm having an issue with taking back values from the text boxes that I add to the page, and I don't know what is the problem.
I have a text box were people will submit a large amoyunt of text to a field in a database. The text is set out multi line in paragraphs with returns. When the text is saved to the database it saves it as a continuous line of text. how do i save and retrieve it with the returns included.
Currently we are saving files (PDF, DOC) into the database as BLOB fields. I would like to be able to retrieve the raw text of the file to be able to manipulate it for hit-highlighting and other functions.Does anyone know of a simple way to either parse out the files and save the raw text on save, either via SQL or .net code. I have found that Adobe has a filtdump utility that will convert the PDF to text. Filtdump seems to be a command line tool, and i don't see a way to use a file stream. And what would the extractor be for Office documents and other file types?-or-Is there a way to pull out the raw text from the SQL Full text index, without using 3rd party filters?Note i am trying to build a .net & MSSql solution without having to use a third party tool such as Lucene
I have a text box to load airport names during runtime. the airport names come from the database ( having table name listairports). i want to retrive airport names dynamically into text box. i.e i need to write sql query ontextchanged event of textbox. and important thing is the queryshold start after 3 letters entered into textbox. can anyone give sample code see this site [URL]. i need similar textbox shown in that website.
I am using a linkbutton iside a gridview.... i need to get the text of the link button in another function. how can get that ... i tried find control .. but its not working.... I created the link button from other function which executes just b4 this function...
above string i have displayed in front end thrgh response.write i.e by assigning string abc to viewstate. also i am tryin to genetrate above input fields from database , so i have to make it dynamic in a loop. so when a user updates any of those dynamically created fields i need to retreive those values in a loop
something like this :
field1.text , field2.text ......so on till fieldn.text ....i want to assign these values to array
like :
string[] arr1 = new string[nooffields]; arr1[i] = fieldi.text;
I know there are a number of posts along this topic, but everything I find seems to not have a final solution or else I'm just not getting what the solution is. I have a simple GridView with a ButtonField and a BoundField. I'm having the same problem most of the other posts seem to have; I can retrieve the BoundField value easy enough in the RowCommand subroutine, but I can't figure out how to get the value of the ButtonField. Here is the code I'm trying to use:
[Code]....
sAddr is being set to the correct address value, but sName is set to an empty string no matter what I try. The GridView HTML all works correctly, including showing the names from my bound data table on the button text. I can use to retrieve the ButtonField text value?
I am wondering what is the best way to do this. Here is my observation:
1. If a GridView is assigned a datasource at design time, the header row's text can be retrieved with ((DataControlField)GridView.Columns[index]).HeaderText.
2. If a GridView is assigned a datasource at run time by code-behind, the header row's text can be retrieved with GridView.HeaderRow.Cells[index].Text.
Is there a way to do it without trying one, if not working, then the other of the aforementioned methods.
I am using VB and trying to get the first value of the cell of a gridview. The gridview is returning a header and 1 value.
In the code behind I have used the below, but the textbox is showing " ". It is not populating the first cell of the gridview databind.
Protected Sub GridView3_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)If (Not (e.Row.DataItem) Is Nothing) Then ' Set the capacity label text TextBoxTest.Text = e.Row.Cells(1).Text End If End Sub
I have a gridview which i bind to DataView. I need to manipulate text on cell[2] of each row. I was wondering if i could do it in the OnRowCreated event? cell[0] in asp looks like this
I have uploaded some tab-delimited .txt files on my web site (actually run on my computer, ie localhost, for now), and now I try to retrieve the data from those files. I do this by calling a vb file containg the sub below. Everything works great, except that the sub won't recognise unicode characters. I can split the resulting string using vbnewline and vbtab, but already in the sub in question, the string doesn't understand the Swedish letters åäö, apostrophes and more.
Shared Function getTextfile(ByVal FullPath As String, Optional ByRef ErrInfo As String = "") As String Dim strContents As String = "" Dim objReader As StreamReader Try objReader =New StreamReader(FullPath) 'UTF8Encoding? strContents = objReader.ReadToEnd() objReader.Close() ErrInfo = Ex.MessageCatch Ex As Exception End Try Return strContents End Function
I have a Telerik:RadTextBox control in my markup called txtName. I'm trying to retrieve the inputed value in the code behind with foo = txtName.Text; but var and txtName always show an empty string.
I guess the code couldn't be easier. Basically what's happening is, when I click my 'save' button, there's a postback and the text in the RadTextBox just disappears.
update Found the problem. My web.config file had a different version of the Telerik dll file that was actually in my bin folder.
I need to put together an aspx page on which the user specifies a word document. These docs are all in the same format. I need to retrieve text from form fields in the documents and then insert these into a SQL server. I'm completely new to this kind of thing. Can anyone outline the principles behind what I need to do, or point me to a site which will explain it in simple language.
First of all, feel free to move this thread if you find it inappropriate for this section of the forum. I placed it here since I intended to use ASP.NET.
So here's my concern...
How do you retrieve a text file from a UNIX workstation? This text file contains information structured like a table (or like a database). I need to create a custom report (in a Windows PC) based on that text file.
I have text field on a sql server table and I retrieve it on string variable using datareader : string result = reader["MyTextfied"] but I have this errors ( text or binary field cannot be troncated ) My text fied contains a large of text
Some ids are pulled out from the XML field of a certain User Profile . Those ids have their text values stored in a SQL table.
What is the best way to map that xml list to the SQL table in order to populate a dropdown list which contains ids from the XML list and text values from the SQL table?
I wanna save this text in my sql db as binary.I wanna retrive it any time I want and read text and view it. How can I do that in c#. Aslo what should my table row type? binary(1000) is ok?
Is there a way in .net to display the text automatically when i type the first letter or word in a text box? I am looking for something like MS-Excel.. In MS-Excel, if the first word is given, automatically it displays the remaining texts, only if values are given previously.