Click here to Skip to main content
15,902,879 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: HTML production Pin
minhpc_bk12-Jul-06 4:13
minhpc_bk12-Jul-06 4:13 
QuestionJavascript Merge Excel Cells Pin
Old Gun11-Jul-06 22:24
Old Gun11-Jul-06 22:24 
AnswerRe: Javascript Merge Excel Cells Pin
Old Gun12-Jul-06 21:46
Old Gun12-Jul-06 21:46 
Questioni want to see "web form designer generated code" in dotnet 2.0 Pin
Khawar Abbas111-Jul-06 20:39
Khawar Abbas111-Jul-06 20:39 
AnswerRe: i want to see "web form designer generated code" in dotnet 2.0 Pin
minhpc_bk11-Jul-06 21:50
minhpc_bk11-Jul-06 21:50 
AnswerRe: i want to see "web form designer generated code" in dotnet 2.0 Pin
Paddy Boyd11-Jul-06 22:45
Paddy Boyd11-Jul-06 22:45 
GeneralRe: i want to see "web form designer generated code" in dotnet 2.0 Pin
Khawar Abbas111-Jul-06 23:42
Khawar Abbas111-Jul-06 23:42 
QuestionDatagrid footer Pin
kuwl_mark11-Jul-06 20:06
kuwl_mark11-Jul-06 20:06 
Imanage to insert data from textbox into data table and bind that datatable to datagrid. actually I want following things

I am making an application in which I have to insert data in data table .and bind that datatable to datagrid.

1) but i want to insert this values from datagrid footer or datatable footer how to do that.

2) also i want to update the row of data grid . I am not using database for that . how to update a single row of datagrid from using data table there is no transection with database.
************************************************************
The code i wrote is follow
Dim TB As DataTable
Dim TR1 As Data.DataRow
Dim td1 As DataColumn
Dim TD2 As DataColumn
Dim td As DataColumn

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Me.IsPostBack = False Then
Display()
End If
End Sub

Function Display()
TB = New DataTable
td1 = New DataColumn
td1.ColumnName = "SHAPE"
td1.DataType = GetType(String)
td1.AllowDBNull = False
TB.Columns.Add(td1)

TD2 = New DataColumn
TD2.ColumnName = "SIZE"
TD2.DataType = GetType(String)
TD2.AllowDBNull = False
TB.Columns.Add(TD2)

Datagrid1.DataSource = TB
Datagrid1.DataBind()

Session("DiaDetails") = TB

End Function
Sub AddToCart(ByVal sender As System.Object, ByVal e As System.EventArgs)
TB = Session("DiaDetails")
TR1 = TB.NewRow
TR1("Shape") = txtshape.Text
TR1("Size") = txtsize.Text
TB.Rows.Add(TR1)
Datagrid1.DataSource = TB
Datagrid1.DataBind()
Session("DiaDetails") = TB
End Sub


Sub Delete_Item(ByVal s As Object, ByVal e As DataGridCommandEventArgs)

TB = Session("diadetails")
TB.Rows(e.Item.ItemIndex).Delete()
Datagrid1.DataSource = TB
Datagrid1.DataBind()
Session("diadetails") = TB

End Sub





Private Sub Datagrid1_EditCommand(ByVal source As Object, ByVal e As tem.Web.UI.WebControls.DataGridCommandEventArgs) Handles Datagrid1.EditCommand
Datagrid1.EditItemIndex = e.Item.ItemIndex

End Sub

Private Sub Datagrid1_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles Datagrid1.UpdateCommand

Dim strshape As String = CType(Datagrid1.Items(Datagrid1.EditItemIndex).Cells(1).Controls(0), TextBox).Text
Dim strid As String = Datagrid1.Items(Datagrid1.EditItemIndex).Cells(0).Text
Datagrid1.EditItemIndex = -1

End Sub

pls Send code if possible
Pls its urgent
QuestionRSS Feed Code Pin
Amit Agarrwal11-Jul-06 20:04
Amit Agarrwal11-Jul-06 20:04 
AnswerRe: RSS Feed Code Pin
minhpc_bk11-Jul-06 21:55
minhpc_bk11-Jul-06 21:55 
QuestionUsing Outlook in ASP.Net Pin
aaraaayen11-Jul-06 19:53
aaraaayen11-Jul-06 19:53 
AnswerRe: Using Outlook in ASP.Net Pin
Saifi Hasan11-Jul-06 23:03
Saifi Hasan11-Jul-06 23:03 
GeneralRe: Using Outlook in ASP.Net Pin
aaraaayen12-Jul-06 0:11
aaraaayen12-Jul-06 0:11 
QuestionRoles and logins? Pin
kbalias11-Jul-06 19:41
kbalias11-Jul-06 19:41 
AnswerRe: Roles and logins? Pin
kumarprabhakar7411-Jul-06 22:09
kumarprabhakar7411-Jul-06 22:09 
Questionreturning values form jagged arrays Pin
mehnazash11-Jul-06 19:00
mehnazash11-Jul-06 19:00 
AnswerRe: returning values form jagged arrays Pin
Guffa11-Jul-06 20:55
Guffa11-Jul-06 20:55 
QuestionDoubt In Datalist Pin
Vipin Venugopal11-Jul-06 18:05
Vipin Venugopal11-Jul-06 18:05 
AnswerRe: Doubt In Datalist Pin
minhpc_bk11-Jul-06 21:58
minhpc_bk11-Jul-06 21:58 
QuestionArrgghh! How to disable vs automatically adding style settings for controls? Pin
Member 9611-Jul-06 12:03
Member 9611-Jul-06 12:03 
AnswerRe: Arrgghh! How to disable vs automatically adding style settings for controls? Pin
minhpc_bk11-Jul-06 22:01
minhpc_bk11-Jul-06 22:01 
GeneralRe: Arrgghh! How to disable vs automatically adding style settings for controls? Pin
Member 9612-Jul-06 5:18
Member 9612-Jul-06 5:18 
QuestionHow to send client side data to server side using any method(hidden field or AJAX) Pin
B Desai11-Jul-06 11:55
B Desai11-Jul-06 11:55 
AnswerRe: How to send client side data to server side using any method(hidden field or AJAX) Pin
minhpc_bk11-Jul-06 22:05
minhpc_bk11-Jul-06 22:05 
QuestionRegularExpressionValidator make me crazy! Pin
tranky11-Jul-06 10:19
tranky11-Jul-06 10:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.