HI I am new to this forum. I have a problem in text box that is in table.We are using the length of that textbox in %. When a long data is coming inside the textbox the length is increasing.If we are using px,then the length is not increasing according to resolution.That means it is fixed.Also we used overflow as hidden.it is not working perfectly.I am giving my code plz have a look on it. <tr height= "25px"> <td style="padding-left:1%;"><asp:Label ID="label9" runat ="server" Text ="Subject" ForeColor ="Black" Font-Size ="11px" Font-Names="Tahoma"></asp:Label></td> <td colspan="3" ><asp:TextBox ID="txtSubject" runat ="server" Width ="97%" Font-Size ="11px" Font-Names="Tahoma" Height ="12px" Text="" MaxLength="200" BorderColor="#6699CC" BorderStyle="Solid" BorderWidth="1px" style="overflow:hidden;position:absolute;"></asp:TextBox></td> </tr>
Janu_M
Posts
-
how to make text box lenth as static in a table -
Preventing multiple clicks on a button.Thanks for your response. This is not working. Here i am not directly inserting the record into the Grid. First i am writing that record to a CSV File.From that I am constructing a datatable and giving that datatable as a datasource to the Grid. THis is the requirement of the project. Ramu
-
Preventing multiple clicks on a button.Hi Everybody, I am developing a weblproject in C# using .net2005. In my page i have a Gridview, some text boxes, dropdown lists to enter data and a button to create a new row in the Grid. The functionality is when user enters data in the textboxes and selects using dropdown and he has to click create button to create a new row in the Grid. It is working fine when user clicks the create button once. When user clicks the button multiple times (continously) then that no of data rows are creating in the gird. Here i need only one row in the Grid. How can i overcome this problem. Thanks in Advance Ramu
-
Enabling other controls on the page on doubleclick of a row in the GirdView controlHi, I am developing a webproject in C#.net using .net2005. My project contains two pages. First page displays data from the database in a datagrid view. when i double clicks a row in the datagrid it directs to the second page. for this i am writing the following code in the rowcreated event of the datagrid. e.Row.Attributes.Add("ondblclick", String.Format("window.location='" + Columns[i].ToString() + "'")); here the arraylist Columns contains the following sample data Columns.Add( "frmOtherPage.aspx?ListType=Empty&ViewType=Invoice&UniqueId=" + uniqueid.ToString()); In the datagrid i am not displaying this unique id. on double click of the row i am getting the uniqueid of that particular row in the second page. In second page i am displaying the data of the selected row in detail and diplaying the sub activities of this row in a data grid. In this grid also i am not displaying the activityid. Here i have to display some controls to create a new sub activity. I am placing all these controls in a panel and displaying (.visible = true) them when user clicks the create sub activity button. Here what i want is, on doubleclicking a row on the sub activities grid the panel for creating activity must be visible and i have to display the data of that row in those controls of the panel. Please Help me. Its urgent. Thanks in Advance Ramu
-
SQL Problem.Thank Q
-
SQL Problem.Thank Q
-
SQL Problem.Hi, I am developing a C# windows application(.net 2003). The functionality of this application is to import all the records from a csv file to a table in a SQL Server 2000. For this i am opening a sql connection and I am using Sql command. Here i set sqlcommand timeout to 500. I am using a for loop to insert each record into sql table. After finishing all records i am closing and disposing sql connection. This is working fine. For some tables it is necessary to get primary key from another table and insert that primary key along with the current table's data. For extracting that primary key i wrote funtion. This function opens a new sql connection and sql command having timeout 500. After fetching data i am disposing that sql connection. This funtion is called for each record in the csv file. After inserting approximately 200 records it is giving an Exception Message "Timeout Expired. The timeout period elapsed prior to obtaining a connection form the pool. This may have occured because all pooled connections were in use and max pool size was reached". How to overcome this problem. It's urgent Any one please help me. Thanks in Advance. Ramu
-
Data Grid problemThank you for your reply. I dont know how to use invoke. If you know any links regarding the invoke and triggering events please provide them to me. Thanks in Advance Thanks and Regards Ramu
-
Data Grid problemHi I am developing a windows application (VS 2003) in which it contains some buttins and a grid. The Grid has to show all the data from a csv file, for this i am reading all the data from csv file into datatable and giving that datatable as a datasource to data grid. dtTable = new DataTable(); dtTable.Columns.Add("Name"); dtTable.Columns.Add("Time1"); dtTable.Columns.Add("Time2"); dtTable.Columns.Add("Path"); dtTable.Columns.Add("IconName"); dtTable.AcceptChanges(); if(File.Exists(Application.StartupPath + "\\Recordings.csv")) { StreamReader sreader = new StreamReader(Application.StartupPath + "\\File.csv"); string strval = sreader.ReadLine(); while (strval != null) { DataRow row1 = dtTable.NewRow(); string[] str = strval.Split(','); for(int i = 0; i < str.Length; i++) { row1[i] = str[i]; } dtTable.Rows.Add(row1); strval = sreader.ReadLine(); } dtTable.AcceptChanges(); sreader.Close(); // } dtGrid.DataSource = dtTable; dtGrid.Refresh(); I am using the above code for showing the contents of file to Grid. if user clicks start button on the form, after completing the action i want to add a row to grid. For this i am writing the new row to the CSV file and calling the above code. But it is giving error: "Controls created on one thread cannot be parented to a control on a different thread." Any one please help me. Thanks in Advance
-
Object reference problem in a windows application.Hi I am developing an windows application in C#.Net(2003). My form has some textboxes, button and a datagrid. The functionality of the application is in a DLL. The functionality is like this. Enter input parameters in text boxes (one parameter belongs to time) Click Start Button ==> the control goes to the DLL. based up on the time it has to perform the functionality.(suppose for example if we give 4 hours) After completing a specific period (for example say 1hour) we have to enter a row in the data grid. THis action is done from the form. For this i am using a timer in the form, on the elapsed time i am entering a row to the data grid by using a datatable. Also notice one thing, I am using notify icon to show my application in system tray when it is minimized. If the addition of row is done when the form is in the minimized state, if i double click on the icon in the system tray then it is giving an exception "Object reference is not set" from the code in the notify icon Click. In this i am using a statement this.ShowInTaskbar = true; when the form is in normal state, adding a row to grid is happening correctly but the form is not responding after performing this action. Any one please help me. Thanks in Advance Thanks and Regards Ramu
-
Button Appearance on the form ?Thank you Very much. Thanks and Regards Ramu
-
Button Appearance on the form ?Hi i am developing a windows application in C# (in 2003). My form consists of buttons. I set Flat style to system in properties window. But no change in the appearance of the button. It is looking normal. How can i get this(System Style) affect. Thanks in Advance Ramu Medida
-
Is it possible to enable controls on the form from a class.Thank you very much. Ramu
-
Is it possible to enable controls on the form from a class.plz tell me how to do it? (Any guidelines of code) Thanks for your reply
-
Is it possible to enable controls on the form from a class.Hi I am developing a C# windows application in .net1.1 In this i have a form, in which i am taking the input parameters, if the parameters are valid i am passing the paramers to a method which is in another class. while passing the paramers i am disabling some buttons on the form. After completing the process i want to enable the buttons on the form from the class. Is it possible to enable controls on the form from a class. Thanks in Advance Ramu
-
Create a folder by using C#we can create a a folder by using the statement Directory.SetCurrentDirectory("C:\\"); Directory.CreateDirectory("Foldername"); Direcotry is a class which is under the System.IO namespace.
-
Capturing Mouse Pointer?Thank you very much. Thanks and regards Ramu
-
Capturing Mouse Pointer?Is there any mechanism to take the screenshot of the desktop along with the mouse pointer? Here what i need is an image of the desktop in which it contains the mouse pointer. Thanks in Advance Ramu Medida.
-
How to start C# application along with windows.Thank you very much for providing an excellent link. Once again Thank You. Ramu
-
How to start C# application along with windows.Thank You very much.