Click here to Skip to main content
15,892,059 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Restore database via XML Pin
Christian Graus2-Feb-09 22:32
protectorChristian Graus2-Feb-09 22:32 
GeneralRe: Restore database via XML Pin
RajaAhmed2-Feb-09 22:47
RajaAhmed2-Feb-09 22:47 
GeneralRe: Restore database via XML Pin
SeMartens2-Feb-09 22:51
SeMartens2-Feb-09 22:51 
GeneralRe: Restore database via XML Pin
SeMartens2-Feb-09 22:54
SeMartens2-Feb-09 22:54 
GeneralRe: Restore database via XML Pin
RajaAhmed2-Feb-09 23:03
RajaAhmed2-Feb-09 23:03 
GeneralRe: Restore database via XML Pin
Christian Graus2-Feb-09 22:53
protectorChristian Graus2-Feb-09 22:53 
GeneralRe: Restore database via XML Pin
N a v a n e e t h2-Feb-09 22:56
N a v a n e e t h2-Feb-09 22:56 
Questionmodal popup extender not handling aspx code behind function Pin
hyperalergelo2-Feb-09 21:55
hyperalergelo2-Feb-09 21:55 
I am having trouble on calling a function on my code behind.. here's my code..

MPEConfirm = New AjaxControlToolkit.ModalPopupExtender
Dim popup As LiteralControl = New LiteralControl
PnlConfirm = New Panel
btnConOK = New Button
btnConCancel = New Button
'asp panel for modal popup
With PnlConfirm
.ID = "PnlConfirm"
.CssClass = "modalPopup"
.Attributes.Add("Style", "display: none")
.Height = 100
.Width = 233
End With

With btnConOK
.ID = "btnConOK"
.CssClass = "Buttons"
.Text = "Yes"
.Width = 50
End With
arrbtnConOK(l) = btnConOK
AddHandler btnConOK.Click, AddressOf btnConOK_Click

With btnConCancel
.ID = "btnConCancel"
.CssClass = "Buttons"
.Text = "No"
.Width = 50
End With
AddHandler btnConCancel.Click, AddressOf btnConCancel_Click

popup = New LiteralControl("&lt;br /><div align='center'>")
PnlConfirm.Controls.Add(popup)
'popup = New LiteralControl("&lt;span style='font-size:10px;color:white;font-family:Verdana'>Are you sure you want to continue without saving?</span><br /><br />")
'PnlConfirm.Controls.Add(popup)
popup = New LiteralControl("&lt;span style='font-size:10px;color:white;font-family:Verdana'>Do you want to save the changes that you made?</span><br /><br />")
PnlConfirm.Controls.Add(popup)
PnlConfirm.Controls.Add(btnConOK)
popup = New LiteralControl("&nbsp")
PnlConfirm.Controls.Add(popup)
PnlConfirm.Controls.Add(btnConCancel)
popup = New LiteralControl("&lt;/div>")
PnlConfirm.Controls.Add(popup)

For l = 0 To dt.Rows.Count - 1

imgExpand = New ImageButton
With imgExpand
.ID = "imgExpand_" & l
.ImageUrl = "~/Files/images/expand_blue.gif"
.CommandName = l
.CommandArgument = dt.Rows(l)("core_id")
End With
AddHandler imgExpand.Click, AddressOf imgExpand_Click

'modalpopup extender
With MPEConfirm
.ID = "MPEConfirm" & l
.TargetControlID = "imgExpand_" & l
.PopupControlID = "PnlConfirm"
.BackgroundCssClass = "modalBackground"
'.OkControlID = "btnConOK"
'.CancelControlID = "btnConCancel"
End With
arrMPEConfirm(l) = MPEConfirm
PnlCoreComp.Controls.Add(imgExpand)
PnlCoreComp.Controls.Add(arrMPEConfirm(l))
Next
PnlCoreComp.Controls.Add(PnlConfirm)

i disabled okControlID and CancelControlID to be able to disregard the client script and the button would go directly to the function on my code behind.. my problem is, my function won't trigger even if i added event handler on my button.. any idea?

yours truly,
hyperalergelo

QuestionGlobal resourse file [modified] Pin
Chetan_pawar2-Feb-09 21:55
Chetan_pawar2-Feb-09 21:55 
QuestionError:Object reference not set to an instance of an object Pin
M.Ambigai2-Feb-09 21:54
M.Ambigai2-Feb-09 21:54 
AnswerRe: Error:Object reference not set to an instance of an object Pin
Abhijit Jana2-Feb-09 22:10
professionalAbhijit Jana2-Feb-09 22:10 
AnswerRe: Error:Object reference not set to an instance of an object [modified] Pin
mr_muskurahat2-Feb-09 22:12
mr_muskurahat2-Feb-09 22:12 
GeneralRe: Error:Object reference not set to an instance of an object Pin
Abhijit Jana2-Feb-09 22:19
professionalAbhijit Jana2-Feb-09 22:19 
QuestionDifference b/n session and cache Pin
NidhiKanu2-Feb-09 21:54
professionalNidhiKanu2-Feb-09 21:54 
AnswerRe: Difference b/n session and cache Pin
anujbanka17842-Feb-09 22:01
anujbanka17842-Feb-09 22:01 
GeneralRe: Difference b/n session and cache Pin
NidhiKanu2-Feb-09 22:18
professionalNidhiKanu2-Feb-09 22:18 
AnswerRe: Difference b/n session and cache Pin
Abhijit Jana2-Feb-09 22:15
professionalAbhijit Jana2-Feb-09 22:15 
GeneralRe: Difference b/n session and cache Pin
NidhiKanu2-Feb-09 22:33
professionalNidhiKanu2-Feb-09 22:33 
GeneralRe: Difference b/n session and cache Pin
Abhijit Jana2-Feb-09 22:41
professionalAbhijit Jana2-Feb-09 22:41 
GeneralRe: Difference b/n session and cache Pin
NidhiKanu2-Feb-09 22:49
professionalNidhiKanu2-Feb-09 22:49 
GeneralRe: Difference b/n session and cache Pin
N a v a n e e t h2-Feb-09 23:38
N a v a n e e t h2-Feb-09 23:38 
QuestionProblem with gridview Pin
sarang_k2-Feb-09 21:50
sarang_k2-Feb-09 21:50 
AnswerRe: Problem with gridview Pin
anujbanka17842-Feb-09 21:58
anujbanka17842-Feb-09 21:58 
AnswerRe: Problem with gridview Pin
Anurag Gandhi2-Feb-09 22:00
professionalAnurag Gandhi2-Feb-09 22:00 
GeneralRe: Problem with gridview Pin
Abhijit Jana2-Feb-09 22:29
professionalAbhijit Jana2-Feb-09 22:29 

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.