View Complete Post
I managed to add a tool bar IE using the BandObjectLib which is written in C# and uses DESKBANDINFO struct and others the thing is I want to attach a window when a button is clicked that has some input like button and lists etc..The window is not part of
the toolbar, but rather it is The project I am using is the following
I created a separate window control but it's appearing as if it is a separate unit. I just wanna be able to detect the exact location of the toolbar button relative to the screen..
Here's my code
If rdvalue = "Dept" And ddldeptr.SelectedValue <> "" Then
Button1.PostBackUrl = "~\Reports\Hrmis\CrvGpDept.aspx?fromd=" & txtfrom.Text & " &tod=" & txtto.Text & "&dep=" & ddldeptr.SelectedValue & ""
ElseIf rdvalue = "Sect" And ddlsectr.SelectedValue <> "" Then
Button1.PostBackUrl = "~\Reports\Hrmis\CvGpSect.aspx?fromd=" & txtfrom.Text & " &tod=" & txtto.Text & "&sec=" & ddlsectr.SelectedValue & ""
ElseIf rdvalue = "Desig" And ddldesigr.SelectedValue <> "" Then
Button1.PostBackUrl = "~\Reports\Hrmis\CrvGpdesig.aspx?fromd=" & txtfrom.Text & " &tod=" & txtto.Text & "&desi=" & designation & ""
ElseIf rdvalue = "Emp" And txtempidr.Text <> "" Then
Button1.PostBackUrl = "~\Reports\Hrmis\CrvGpemp.aspx?fromd=" & txtfrom.Text & " &tod=" & txtto.Text & "&emp=" & empid & ""
Button1.PostBackUrl = "~\Reports\Hrmis\CrvGpall.aspx
i am facing a problem to make a button onclick to pop up a new window with pass a value. it only working on second click on onwards.
i check the checkbox from a table then pass the ID for each data to another page.
below is my coding: hope anyone can help me. this is i add in button click; the PIID is a value i want to pass
Protected Sub btn_download_in_excel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_download_in_excel.Click
Dim keyID As String = ""
Dim CheckedItems As SortedList = ViewState("CheckedItems")
Dim ChkBxIndex As String = ""
Dim strPsId As String = ""
Dim PIID As String = ""
Dim rows() As DataRow
Dim CheckedItemsKeys As ICollection = CheckedItems.Keys
Dim keys As IEnumerator = CheckedItemsKeys.GetEnumerator
If Not IsNothing(CheckedItems) Then
ChkBxIndex = keys.Current
keyID = ChkBxIndex
rows = pLookupDataSet.Tables("CCL_TB_PART").Select("PIID = " & Cmn.QStr(keyID))
If String.IsNullOrEmpty(PIID) Then
PIID = keyID
When I enter the value manually, all is fine. However, when I do it through the popup window the value is correctly written in the parent window and the popup is closed, but the click event of the submit button is not raised when i submit the form. The Page Load event is raised and the IsPostBack is set to false.
What could be the problem?
I got an Export button in the form. I like the button text color that change from original black to white when I press it. I can change the background color of the button, but I am not sure how to change the Export text color to white. Please help. Thanks