.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

display output to textbox

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :ASP.Net

Hiiiii Frnds,

I have an sql scalar function (FN_GET_ENQ_NO()) which returns a unique enquiry no.

Now i want to display this enquiry no. to my asp:textbox on web page.

I have made all the connection strings to my sql server database. Even i had pulled the data from stored procedures. But clueless in above issue. 

How can i achieve this?

plz rep asap

thanx and regards

View Complete Post

More Related Resource Links

formula to display all combination output


hi all

i am now think of how to get all the output for all the combinations


given : 1234

output = 1234,1243,2143......and so on.....all 24 possible output

if given : 123

output = all 12 output

if given 12345 , all 120 output...

can someone provide me the algorithm or formula for that ?


How I display output as per given data?

Hi, I want to solve my assaignment as per following given data Table  from SQL Server 2005:- Date       Shift         Tons 7/1/2009   Days         23.63 7/1/2009   Night          12.2 7/2/2009    Days           1.23 7/2/2009    Night           10.23 7/2/2009    Swings          11.2 7/3/2009    Days            1.25 7/3/2009    Night            2.23 7/4/2009    Days            4.52 7/4/2009     Night           5.63 7/5/2009     Days           4.32 7/6/2009     Night           15.2 7/7/2009     Swings         16.2 I want to sho

Form input to output as a link on the display page (need help please)

 I have a form, the form works great and displays the information perfectly on a designated display page I have set up from its database.  One problem, I want to display it as a link to the site instead of how it is now, just plain text. Thus the user would put in the text box the site and hit submit and the site would appear of the display page.  Can anyone please assist me on this, and where to drop the hyperlink control? in the form page? or in the display page?    Below is my form code page:     <p><strong><font face="Verdana, Arial, Helvetica, sans-serif">International Access Entry      Form</font></strong></p><p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Please enter information      international contact information below. This if for authorized staff only.</font></p><table width="548" border="0" cellpadding="0" cellspacing="10" bgcolor="f0f0f0">  <tr>    <td width="528"><form name="INTL_Form" method="post" action="INTL-results.asp">      <p><font face="Verdana, Arial, Helvetica, sans-serif"> </f

Display/capture loginname value in textbox

Hi.I have a code here where the loginname will display the computer name.I have another textbox,where i want the same loginname value to be displayed in the textbox.Any ideas on how to do this,guys?Here's my code :<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <asp:LoginView ID="LoginView1" runat="server"> <LoggedInTemplate> <br /> <br /> <br /> welcome <asp:LoginName ID="LoginName1" runat="server" />//THIS LOGIN NAME TO BE DISPLAYED IN TEXTBOX 2 BELOW <br /> <br /> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ASPNETDBConnectionString %>" SelectCommand="SELECT [ApplicationName], [LoweredApplicationName] FROM [vw_aspnet_Applications]"> </asp:SqlDataSource> <br /> <asp:FormView ID="FormView1" runat="server" DataSourceID=&quo

display color in textbox inside Gridview

Please let me know how to display background color of text box  inside a grid view.The Color value will be obtained from the DB.   eg. #00033

How Do I display only the last line of a Multiline TextBox when rows=1?


hi all,

This is the current code I am using:

                      <asp:TextBox ID="txtBoxComments" runat="server" MaxLength="5000" ReadOnly="true" Rows="1" Text='<%# Eval("Comments") %>'
                       TextMode="MultiLine" Width="100%" Wrap="true" />

 Thank you!


nslookup - suggestions when entering IP address in textBox - output needs to be resolved FQDN


I am looking for suggestions on how to run nslookup (or similiar utility) when an ip address is entered into a textbox.  My ideal goal would it to automatically resolve to the fqdn once you tab out of the textbox into the next field?  I have a form that needs to be posted - hopefully with the newly resolved fqdn!  :)

Any suggestions?


How to return looped procedure results so that they display as multiple rows of a single output inst


I understand that the below fragment will return a separate 1-row results set for each successful loop (also unnecessarily repeating the column header each time). How can I alter my procedure so that each value returned by the loop is appended underneath the previous value as multiple rows of a single results set? Do I have to store each return value in a temp table or someother storage object? It would be nice to just be able to spit them out row by row as each loop returned. Possible? Easy? Hard? I really appreciate the help I've received here so far.

SELECT (whatever)

OPEN techCursor;
FETCH NEXT FROM techCursor INTO @techNumLoop;
EXECUTE pr_FindExpenses4Tech @techNumLoop, @itemCount OUTPUT
SELECT @itemCount Item_Count

Trying to display only the last line of a Multiline TextBox


Hi all,

On my Asp.Net GridView I am binding a textbox to a field in SQL. Sometimes the content of the textbox is more than 1 line and I
need to show only the LAST line. How can I do that? Here is part of my code...notice that I use Rows=1 on purpose so that
I am able to show only 1 line but I need it to scroll all the way down and have it show only the last line of the whole content:

  <asp:TextBox ID="txtBoxComments" runat="server" MaxLength="5000" ReadOnly="true" Rows="1" Text='<%# Eval("Comments") %>'
      TextMode="MultiLine" Width="100%" Wrap="true" />

 Thank you!

regarding display textbox and image in same line using ajax ...


iam uing ajax to check availblity of username from sql. evrythng is working fine ...only the thing is the image i want to dispaly aftr the text using:http://encosia.com/2007/07/02/aspnet-username-availability-checking-via-ajax/ but how to display images aftr the text box...it displays in next line ..please can u help me ..how to display images next to texbox...

perform sum of textbox values and display the total in gridview footer row textbox


i have a gridview in which i have added two textboxes .

the second textbox is placed in footer of gridview

wht i want is when the user enters values in the first textbox the total of these textboxes should be displayed in footer row.

Pls help

Details should be display gridview's TextBox


Dear Friends,
   I am using gridwiew.
  To display Name, Sex, DOB, and Message(From SQL-server 2005)
   I want The message coloumn datails should be display in textbox(textbox placed in inside the gridwiew) 

How to display page no from only the 3page of report output in .rdl report in BIDS ?



well i am having a problem in..

How to display page no from only the 3page of report output in .rdl report in BIDS ?

so can any body help me out..



cancel/stop textbox display



I develop a C# code and read data from serial port and display it in a textbox;

I want to stop display if when I recive repetitive data. and when receive another data display start again.

Would you please help me?

May I?

Display output from example


I'm looking at this DateTimeFormatInfo Class example at http://msdn.microsoft.com/en-us/library/system.globalization.aspx

The example shows the output of the code-behind.  Can someone show me what the code for the example would be the the aspx page to replicate the output?

From Example:

using System;
using System.Globalization;

public class SamplesDTFI {

public static void Main() {

// Creates and initializes a DateTimeFormatInfo associated with the en-US culture.
DateTimeFormatInfo myDTFI = new CultureInfo( "en-US", false ).DateTimeFormat;

// Creates a DateTime with the Gregorian date January 3, 2002 (year=2002, month=1, day=3).
// The Gregorian calendar is the default calendar for the en-US culture.
DateTime myDT = new DateTime( 2002, 1, 3 );

Textbox Editable GridView in ASP.NET

This article describes how I made a fully editable gridview in C# using ASP.NET 2. The idea is that the GridView looks and works like an Excel spreadsheet. You see all the cells in the table, and you can edit any of the cells you like, and they are automatically updated (i.e. saved to the database). This is very often how people expect data tables to work in web pages, and I've often seen people clicking in vain on un-editable gridview cells, somehow expecting to edit them, and not understanding that they need to click an Edit button at the end of the row.

Highlighting Rows with TextBox OnFocus

In another article I explained that how you can make the rows of the GridView control clickable and highlight them when they are clicked. In this article I will explain that how you can highlight the GridView rows when you focus on the TextBox which is contained inside the GridView control.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend