|
in your datagrid have a template column. the header template of the template column must have a check box so the when we click that the check boxes of the item template will get seleted. and the have a button as delete selected.
Nizha
|
|
|
|
|
is this button "delete selected. " in bulid or i have to write the code for this. if u can help with this
Regards
|
|
|
|
|
Add the delete button in template column.
In Initialise_components,
wire the delete link for the datagrid.
datagrid.deletecommand = ....
(press tab twice)
Them write the code to delete the row in the function generated.
If you fail for the first time , call it version 1.0.
|
|
|
|
|
U have a template column then u can easily delete teh record
suresh babu.k
|
|
|
|
|
i am working on a project in asp.net and all pages contain the same banner ans navigation links. i would like to save this banner and links in a seperate file and include them in all other pages. can you help me...........
Nizha
|
|
|
|
|
If you are using ASP.NET 2.0 then take a look at Master pages (google it up). If you are using ASP.NET 1.x then make a UserControl out of your banner and then put that into every page.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
We use only asp.net 1.x.. i'll try now and let you know
Nizha
|
|
|
|
|
u can also include an html page into an aspx page..
|
|
|
|
|
sir/madam
sir i am fresher.i am working on job portal.how we pass information fron one page to anther page and save in database.like jobseeker form.please send me the coding of this portion
Thanks
mritunjai
|
|
|
|
|
you can either pass them through session or query string. then insert them.
suppose your first page is first.aspx then
a href = "first.aspx?name=sss & ?jobc=j200"
and retrieve this in second page as request.querysyring("name")
Nizha
|
|
|
|
|
|
Check this example in order to transfer information from page 1 to page 2
This Example transfer the text and date string from page 1 and capture the information on page 2
page1.aspx
Five Controls
TextBox1
Calendar1
Button1
Button2
Label1
codeBehind for page1.aspx
<br />
public partial class page1 : System.Web.UI.Page<br />
{<br />
string text1 = "";<br />
string text2 = "";<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
<br />
}<br />
protected void Button1_Click(object sender, EventArgs e)<br />
{<br />
text1 = TextBox1.Text;<br />
text2 = Calendar1.SelectedDate.ToShortDateString();<br />
Label1.Text = text1 + text2;<br />
}<br />
protected void Button2_Click(object sender, EventArgs e)<br />
{<br />
text1 = TextBox1.Text;<br />
text2 = Calendar1.SelectedDate.ToShortDateString();<br />
Response.Redirect("page2.aspx?message1="+text1+"&message2="+text2 ,true);<br />
}<br />
}<br />
Page2.aspx
Two Controls
Label1
Button1
code behind for page2.aspx
<br />
public partial class page2 : System.Web.UI.Page<br />
{<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
<br />
}<br />
<br />
protected void Button1_Click(object sender, EventArgs e)<br />
{<br />
string ms1 = Request.QueryString["message1"].ToString();<br />
string ms2 = Request.QueryString["message2"].ToString();<br />
<br />
Label1.Text = ms1 + ms2;<br />
}<br />
}<br />
keep Learning and you never will be out of date...
|
|
|
|
|
sir/madam
sir i am fresher.i am working on job portal.how we pass information fron one page to anther page and save in database.like jobseeker form.please send me the coding of this portion
Thanks
|
|
|
|
|
|
Dim con As SqlConnection = New SqlConnection("data source=localhost;database=jwdbc;integrated security=sspi")
con.Open()
Dim cmd As SqlCommand
cmd = New SqlCommand("roll2", con)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add(t1.Text, SqlDbType.Char, 10, "@rollnumber")
Dim ad As New SqlDataAdapter(cmd)
Dim ds As New DataSet
ad.Fill(ds)
gv1.DataSource = ds
gv1.DataBind()
con.Close()
Problem is in bold and underlined.
t1 is textbox
|
|
|
|
|
|
I want to know the underlined and bold line has the correct syntax.
|
|
|
|
|
mmm. but it's much simpler to figure out the problem if you have run the code and got an error.
|
|
|
|
|
I just want to know are the parameters given to the add function are accordingly given or or ther is some hotch potch.
|
|
|
|
|
hi all,
I have a Same Web Service on 3 differnt Comp . i want to add only one of these 3 services Dynamically ,Can Any one tell me how to do this .
|
|
|
|
|
Hey all
I have a formView control on my page and I want to add a programmatically created insert item template to it. Is there any way to create the template with controls already on it and then add it to the formView?
Thanks in advance
|
|
|
|
|
|
Cheers mate, my google search techniques must be poor as I didn't come accross that
|
|
|
|
|
How to create dynamic menu in asp.net 1.1
Is there any menu free tool available?
"Aim to go where U have never been B4 and Strive to achieve it"
http://groups.yahoo.com/subscribe/dotnetforfreshers
http://himabinduvejella.blogspot.com
|
|
|
|
|
There are a few approaches you can take:
One is using Javascript (I haven't tried it)
Another is creating a table and an indenting structure to represent a heirarchy. IDing those rows, you can toggle visibility on and off from code behind.
Last approach is.. try looking up Tree View.
Hope this helps.
Happy Coding.
|
|
|
|