I want to designed 2 tables in my aspx page. In table1 there is blank TextArea. In table2 there are button like(First Name,Last Name,Age,DOB) and these attributes are already entered in the database and i have entered corresponding symbols for these attributes (for e.g. for Firstname symbol is {F}, for last name symbol is {L} etc..)... My requirement is when i doubleclick on a button of Table2 (for e.g. FirstName) it will be displayed on TextArea of table1 like (Hi My Name is {F})...
5 1464
What have you done so far?
Where do you get stuck?
Have you read this http://bytes.com/topic/asp-net/answe...before-posting
We want to help you, not do the work for you. Ask specific questions, perform small steps, get one button to pop up a msgbox or something in that line, and build on that.
When you get stuck, give us the details.
Good luck
P:oD
I am beginner to asp.net and i am not getting any idea to solve it,thats why am asking for help not to do my whole task.....
OK, I understand you are a beginner. So answer my questions: What have you done so far?
Where do you get stuck?
I ve created an 1staspx page where if i give the first name it will show symbol F in the text area.... - using System;
-
using System.Collections.Generic;
-
using System.Linq;
-
using System.Web;
-
using System.Web.UI;
-
using System.Web.UI.WebControls;
-
using System.Data.SqlClient;
-
using System.Data;
-
using System.Web.UI.HtmlControls;
-
-
public partial class Default2 : System.Web.UI.Page
-
{
-
SqlConnection con = new SqlConnection(@"Data Source=AITPLCP72\SQLEXPRESS;Initial Catalog=Template;Integrated Security=True");
-
DataSet ds = new DataSet();
-
protected void Page_Load(object sender, EventArgs e)
-
{
-
if (IsPostBack)
-
{
-
SqlDataAdapter adp = new SqlDataAdapter("select field,Symbols from temp2", con);
-
adp.Fill(ds);
-
}
-
}
-
-
protected void btnfn_Click(object sender, EventArgs e)
-
{
-
Symbol("firstname");
-
}
-
protected void btnln_Click(object sender, EventArgs e)
-
{
-
Symbol("lastname");
-
}
-
protected void btnAge_Click(object sender, EventArgs e)
-
{
-
Symbol("age");
-
}
-
protected void btnDOB_Click(object sender, EventArgs e)
-
{
-
Symbol("dob");
-
}
-
-
protected void btnsubmit_Click1(object sender, EventArgs e)
-
{
-
//Session["text"] = TextArea1.InnerText;
-
//Response.Redirect("Default3.aspx");
-
string s = TextArea1.InnerHtml;
-
Response.Redirect("http://localhost:2482/Template1/Default3.aspx?text=" + s);
-
-
}
-
-
-
public void Symbol(string s)
-
{
-
foreach (DataRow row in ds.Tables[0].Rows)
-
{
-
if (row[0].ToString() == s.ToString())
-
{
-
string st = TextArea1.Value;
-
st += row["Symbols"];
-
TextArea1.Value = st;
-
}
-
}
-
}
-
-
}
-
-
after that I have created 2aspx page and there i had submit firstname,lastname,age,dob and it extract from db and show in textarea.. - using System;
-
using System.Collections.Generic;
-
using System.Linq;
-
using System.Web;
-
using System.Web.UI;
-
using System.Web.UI.WebControls;
-
using System.Data.SqlClient;
-
-
public partial class Default3 : System.Web.UI.Page
-
{
-
SqlConnection con = new SqlConnection(@"Data Source=AITPLCP72\SQLEXPRESS;Initial Catalog=Template;Integrated Security=True");
-
SqlCommand cmd = new SqlCommand();
-
protected void Page_Load(object sender, EventArgs e)
-
{
-
-
}
-
protected void btnsubmit_Click(object sender, EventArgs e)
-
{
-
string text1 = Request.QueryString["text"];
-
//string text1 = TextArea1.InnerHtml;
-
text1 = text1.Replace("{F}", txtfn.Text).Replace("{L}", txtln.Text).Replace("{A}", txtage.Text).Replace("{D}", txtdob.Text);
-
TextArea1.Value = text1;
-
}
-
-
}
now i want 2 add repeater to make template in my 2aspx page but how i will do this....
Sign in to post your reply or Sign up for a free account.
Similar topics
by: c_kubie |
last post by:
Ok. Access03 isn't allowing me to import an XLS file. So I imported
it into a table. Now I need to take the contents of table one and add
it to table two.
I'm not very access-literate. So...
|
by: Sunil Basu |
last post by:
Hi,
I have a interesting thing to know and discuss with you.
I am extracting data from an Excel file in a Delphi DbGrid through SQL. I want to create a criteria on a specific cell value of the...
|
by: runner7 |
last post by:
I used file_get_contents() to read a pdf into a string and then tried
to extract the encoded part between the "stream" and "endstream" words
using the strpos() and substr() functions. (I could not...
|
by: oLa.admins |
last post by:
Hi folks,
I have a textbox with some text in it, and what I am trying to do is
when user clicks the 'GO' button, take that text from the textarea and
put it into sql database. However I have no...
|
by: sgsiaokia |
last post by:
I need help in extracting data from another source file using VBA. I have problems copying the extracted data and format into the required data format. And also, how do i delete the row that is not...
|
by: Hetal |
last post by:
Hi..
I am working on VB.NET 2003 (windows form) application and using
ADO.NET to deal with databases. The table structure i am working with
is as follows.
DB1.Table1 (source)...
|
by: JSagar |
last post by:
Hello Expert !
I am new to python , i had done 'C' Code , which extracted file data , But i don't want to give my exe On remote side.
Following thing is it Possible using python?
-...
|
by: poolboi |
last post by:
hi guys
i've having some problem extracting data from a text file
example if i got a text file with infos like:
Date 2008-05-01 Time 22-10
Date 2008-05-01 Time 21-00
Date 2008-05-02 Time...
|
by: Tomkat53 |
last post by:
Hello, I'm not sure if this has been asked here before (wouldn't know what to search for).
Here's my situation...
I have records in Table1 that I need to insert into Table2.
However, there is...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |