Click here to Skip to main content
15,916,846 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Send Mail, Max limit of TO, CC, BCC Pin
Manas Bhardwaj14-Aug-08 1:46
professionalManas Bhardwaj14-Aug-08 1:46 
GeneralRe: Send Mail, Max limit of TO, CC, BCC Pin
Jay_se14-Aug-08 17:20
Jay_se14-Aug-08 17:20 
AnswerRe: Send Mail, Max limit of TO, CC, BCC Pin
The Web Developer14-Aug-08 2:15
The Web Developer14-Aug-08 2:15 
QuestionRe: Send Mail, Max limit of TO, CC, BCC Pin
Jay_se14-Aug-08 17:15
Jay_se14-Aug-08 17:15 
QuestionHow to create reference map to store information [modified] Pin
mohindar_kks14-Aug-08 1:03
mohindar_kks14-Aug-08 1:03 
QuestionI have to make a gridview which has the posibility of dinamically adding new rows and then to save it. Pin
Member 465900114-Aug-08 0:47
Member 465900114-Aug-08 0:47 
AnswerRe: I have to make a gridview which has the posibility of dinamically adding new rows and then to save it. Pin
Christian Graus14-Aug-08 1:12
protectorChristian Graus14-Aug-08 1:12 
GeneralRe: I have to make a gridview which has the posibility of dinamically adding new rows and then to save it. Pin
Member 465900114-Aug-08 1:52
Member 465900114-Aug-08 1:52 
i have addeded new row but it does not seems so satisfactory(as my requirement is) but bcos as code for generating the new row is in Prerender event

so when u fill the record and click to addnew row button .
then bcos of postback all created row gone and so i dont find myself be able to prevent this



code is

Protected Sub GridView1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.PreRender

Dim GV As GridView = CType(sender, GridView)
Dim intr As Integer = GV.Controls.Count
Dim Tbl As Table = CType(GV.Controls(0), Table)
Tbl.Controls.AddAt(GV.Controls(0).Controls.Count, AddEmptyRow)
'Tbl.Controls.AddAt(GV.Controls(0).Controls.Count, AddEmptyRow)


If a = True Then
Dim i As Integer

For i = 0 To count
Tbl.Controls.AddAt(GV.Controls(0).Controls.Count, AddEmptyRow)
' Tbl.Controls.AddAt(GV.Controls(0).Controls.Count, AddEmptyRow)
Next

End If
End Sub


Function AddEmptyRow() As GridViewRow

Dim GVR As GridViewRow = New GridViewRow(GridView1.Rows.Count, 0, DataControlRowType.EmptyDataRow, DataControlRowState.Insert)
Dim myTableCell As TableCell = New TableCell


For i As Integer = 1 To 3
Dim myHyperLink As TextBox
myHyperLink = New TextBox()
myHyperLink.Width = New Unit(225)
myTableCell.BorderStyle = BorderStyle.Solid
myTableCell.BorderWidth = New Unit(1)
myTableCell.Width = New Unit(700)
myTableCell.BorderColor = Drawing.Color.Black
myTableCell.BackColor = Drawing.Color.MistyRose
myTableCell.Style.Add("text-align", "center")
myTableCell.Controls.Add(myHyperLink)

GVR.Cells.Add(myTableCell)

Next

Return GVR


End Function

Protected Sub b1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles b1.Click
count = count + 1
Dim grsidview As Table = CType(GridView1.FindControl("Tbl"), Table)
GridView1.DataBind()
a = True
End Sub

Raghvendra

GeneralRe: I have to make a gridview which has the posibility of dinamically adding new rows and then to save it. Pin
Member 465900114-Aug-08 1:53
Member 465900114-Aug-08 1:53 
GeneralRe: I have to make a gridview which has the posibility of dinamically adding new rows and then to save it. Pin
Christian Graus14-Aug-08 2:37
protectorChristian Graus14-Aug-08 2:37 
QuestionASP.NET to PHP - Suggest me ! Pin
Nizam Quadri14-Aug-08 0:37
Nizam Quadri14-Aug-08 0:37 
AnswerRe: ASP.NET to PHP - Suggest me ! Pin
eyeseetee14-Aug-08 0:44
eyeseetee14-Aug-08 0:44 
AnswerRe: ASP.NET to PHP - Suggest me ! Pin
Christian Graus14-Aug-08 1:06
protectorChristian Graus14-Aug-08 1:06 
GeneralRe: ASP.NET to PHP - Suggest me ! Pin
The Web Developer14-Aug-08 2:08
The Web Developer14-Aug-08 2:08 
GeneralRe: ASP.NET to PHP - Suggest me ! [modified] Pin
eyeseetee14-Aug-08 2:37
eyeseetee14-Aug-08 2:37 
GeneralRe: ASP.NET to PHP - Suggest me ! Pin
J4amieC14-Aug-08 2:52
J4amieC14-Aug-08 2:52 
QuestionCalender Pin
Assaf8214-Aug-08 0:29
Assaf8214-Aug-08 0:29 
Question[Message Deleted] Pin
mukesh.mr0314-Aug-08 0:18
mukesh.mr0314-Aug-08 0:18 
AnswerRe: Connection class Pin
Christian Graus14-Aug-08 0:25
protectorChristian Graus14-Aug-08 0:25 
Questionimage is displaying correct in firefox but not in internet explorer? Pin
subbu.sk14-Aug-08 0:08
subbu.sk14-Aug-08 0:08 
AnswerRe: image is displaying correct in firefox but not in internet explorer? Pin
eyeseetee14-Aug-08 0:18
eyeseetee14-Aug-08 0:18 
GeneralRe: image is displaying correct in firefox but not in internet explorer? Pin
subbu.sk14-Aug-08 0:25
subbu.sk14-Aug-08 0:25 
General[Message Deleted] Pin
subbu.sk14-Aug-08 0:30
subbu.sk14-Aug-08 0:30 
GeneralRe: image is displaying correct in firefox but not in internet explorer? Pin
eyeseetee14-Aug-08 0:33
eyeseetee14-Aug-08 0:33 
GeneralRe: image is displaying correct in firefox but not in internet explorer? Pin
subbu.sk14-Aug-08 0:33
subbu.sk14-Aug-08 0:33 

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.