Click here to Skip to main content
15,927,592 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: datarelation Pin
niki_nilu21-Feb-08 3:16
niki_nilu21-Feb-08 3:16 
GeneralRe: datarelation Pin
Not Active21-Feb-08 3:46
mentorNot Active21-Feb-08 3:46 
GeneralRe: datarelation Pin
niki_nilu21-Feb-08 20:25
niki_nilu21-Feb-08 20:25 
GeneralRe: datarelation Pin
Not Active22-Feb-08 2:25
mentorNot Active22-Feb-08 2:25 
QuestionUpload files from client machine to server Pin
MayyMagdy21-Feb-08 0:46
MayyMagdy21-Feb-08 0:46 
GeneralRe: Upload files from client machine to server Pin
hartertobak21-Feb-08 9:27
hartertobak21-Feb-08 9:27 
GeneralPlz help me abt login controls [modified] Pin
Member 387988121-Feb-08 0:10
Member 387988121-Feb-08 0:10 
QuestionProblem with Sessions Pin
kolag21-Feb-08 0:10
kolag21-Feb-08 0:10 
Hi All,
I have a datagrid with check box in each row at first column; our requirement is looks like hot mail and yahoo mail working system, after selected mail(s) using check box user can delete mail. In the same way, we would also develop functionality for edit, delete buttons only when checked row from the datagrid.
I have started like this, whenever I click on the edit button after I selected check box(s), I need to open a popup window only for the checked rows, for this I have created a session in first page and passing the parameters to second page (Popup).

Edit button
Dim rowCount As Integer = 0
Dim mySelection As StringBuilder = New StringBuilder
Dim DemoGridItem As DataGridItem
For Each DemoGridItem In DGWHPkg.Items
Dim myCheckbox As checkbox=CType(DemoGridItem.Cells(0).Controls(1, CheckBox)
If myCheckbox.Checked = True Then
rowCount += 1
mySelection.AppendFormat("'" & "{0}" & "'" & ",", DemoGridItem.Cells(2).Text)
End If
Next
lblChosen.Text = mySelection.ToString().Substring(0, mySelection. ToString().Length - 1)
Session.Add ("Chosen", lblChosen.Text)

Popup window
If Not Page.IsPostBack Then
Dim cScript As String
cScript = "<script language='javascript'> opener.location.href = 'WebForm4.aspx'; </script>"
RegisterStartupScript("parentwindow", cScript)
lblChosen.Text = Session.Item("Chosen")

Now the problem is only few times the session is calling from main page to child (popup) page.
How to add the session to next page, whenever the edit button clicked?
But I am unable to do it. Please suggest me how to solve it. Guidance for Delete button too.

Don't take any decisions when you are Angry,
Don't make any promises when you are Happy.

QuestionNew Features in 3.5 [modified] Pin
Kuricheti20-Feb-08 23:42
Kuricheti20-Feb-08 23:42 
GeneralRe: New Features in 3.5 Pin
Not Active21-Feb-08 2:18
mentorNot Active21-Feb-08 2:18 
GeneralRe: New Features in 3.5 Pin
Kuricheti21-Feb-08 4:51
Kuricheti21-Feb-08 4:51 
GeneralRe: New Features in 3.5 Pin
Not Active21-Feb-08 5:13
mentorNot Active21-Feb-08 5:13 
QuestionDataGrid Property Builder ??? Pin
John Sundar20-Feb-08 23:28
John Sundar20-Feb-08 23:28 
Questionleft trim Pin
Sonia Gupta20-Feb-08 23:18
Sonia Gupta20-Feb-08 23:18 
GeneralConfiguration error Pin
Member 387988120-Feb-08 22:55
Member 387988120-Feb-08 22:55 
GeneralThread: GridView isn't showing up Pin
Albert8320-Feb-08 21:43
Albert8320-Feb-08 21:43 
Generalhtml table sort and scroll with fixed header Pin
venky45620-Feb-08 21:01
venky45620-Feb-08 21:01 
GeneralRe: html table sort and scroll with fixed header Pin
Christian Graus20-Feb-08 21:09
protectorChristian Graus20-Feb-08 21:09 
QuestionSQL Pin
senthilsstil20-Feb-08 21:00
senthilsstil20-Feb-08 21:00 
GeneralRe: SQL Pin
Christian Graus20-Feb-08 21:06
protectorChristian Graus20-Feb-08 21:06 
GeneralVallidation Expression for string values Pin
SreejithAchutan20-Feb-08 20:51
SreejithAchutan20-Feb-08 20:51 
GeneralRe: Vallidation Expression for string values Pin
Christian Graus20-Feb-08 22:17
protectorChristian Graus20-Feb-08 22:17 
GeneralRe: Vallidation Expression for string values Pin
Usharva21-Feb-08 1:17
Usharva21-Feb-08 1:17 
GeneralRe: Vallidation Expression for string values Pin
SreejithAchutan21-Feb-08 16:15
SreejithAchutan21-Feb-08 16:15 
QuestionChanges is not applying [modified] Pin
~V~20-Feb-08 20:24
~V~20-Feb-08 20:24 

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.