Click here to Skip to main content
15,885,278 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: cross query Pin
GlobX17-Feb-11 14:45
GlobX17-Feb-11 14:45 
GeneralRe: cross query Pin
C#Coudou17-Feb-11 14:58
C#Coudou17-Feb-11 14:58 
GeneralRe: cross query Pin
GlobX17-Feb-11 15:08
GlobX17-Feb-11 15:08 
GeneralRe: cross query Pin
C#Coudou17-Feb-11 15:15
C#Coudou17-Feb-11 15:15 
GeneralRe: cross query Pin
thatraja17-Feb-11 15:28
professionalthatraja17-Feb-11 15:28 
AnswerRe: cross query Pin
Lisa Z. Morgan23-Feb-11 6:10
Lisa Z. Morgan23-Feb-11 6:10 
AnswerRe: cross query Pin
Anurag Gandhi17-Feb-11 22:13
professionalAnurag Gandhi17-Feb-11 22:13 
QuestionStrange Behavior in DevExpression Ajax Pin
Vimalsoft(Pty) Ltd17-Feb-11 8:15
professionalVimalsoft(Pty) Ltd17-Feb-11 8:15 
Good Evening My friends

I have been helping you , now its your turn to help Smile | :)

Due to Limitations in the Telerik, meaning that there is no nice Pop Control , and i want to create my own as i did in my previous article. I have used the DevExpress Popup Control and i have a Telerik Gridview inside it and i can nicely search for records and i can select the record from the Grid and i have a button that saves take an ID of that record like

protected void btnselect_Click(object sender, EventArgs e)
   {
       String Ref =null;

       foreach (GridDataItem dataItem in grdactsandbills.MasterTableView.Items)
       {

           CheckBox chkselect = (CheckBox)dataItem.FindControl("chkselect");

           if (chkselect.Checked)
           {

               Label lblReferenceNumberID = (Label)dataItem.FindControl("lblID");

               Ref = lblReferenceNumberID.Text;
           }

       }
       txtreferencenumber.Text = Ref;
   }


this Button is in a PopupModal(DevExpress) , when this button is Clicked if assign that value to a textbox that is not part of the modal. and you can see i am doing it on the server side and the break point goes there and the watch shows that yes the value has been assigned to the textbox, but after i close the pop, the Textbox is empty. I am just buffled by this. Below is my markup
 <asp:UpdatePanel ID="Update1"  runat="server">
<ContentTemplate>

<asp:Panel ID="ModalPanel" runat="server" HorizontalAlign="Center" Style="display: none" BackColor="Green">

 <br />
<asp:Label ID="Label7" runat="server"></asp:Label>

<asp:Button ID="btnCancel" runat="server" Text="Close Me" />

</asp:Panel><table class="style1">
<tr>
    <td>
        <asp:Button ID="btnadd" runat="server" Text="Add" onclick="btnadd_Click"
            Height="31px" Width="63px" />
    </td>
    <td>
        <asp:Button ID="btnsearch" runat="server" Text="Search"
            onclick="btnsearch_Click" Height="33px" Width="77px"
            onclientclick="ShowLoginWindow() ;" />
    </td>
        </table>
    <dx:ASPxPopupControl ID="DevxPopup" runat="server"
    PopupHorizontalAlign="WindowCenter"  PopupVerticalAlign="WindowCenter"
    ClientInstanceName="DevxPopup" ClientIDMode="AutoID"
        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
     HeaderText=".:::Search:::." Modal="True" AllowDragging="True"
        AllowResize="True" AppearAfter="100" CloseAction="CloseButton"
        DragElement="Window" Width="100%">
    <ContentCollection>
    <dx:PopupControlContentControl runat="server">
   <asp:Panel ID="Panel" runat="server">
         
        <br />
        <table class="style3">
            <tr>
                <td>
                    <asp:Label ID="Label6" runat="server" Style="Float:right" Text="Reference Number:"></asp:Label>
                </td>
                <td class="style4">
                    <asp:TextBox ID="txtRefNumber" runat="server"></asp:TextBox>
                </td>
                <td class="style6">
                    <asp:Button ID="Button2" runat="server" OnClick="btnsearch_Click"
                        Text="Search" />
                </td>
                <td>
                    <asp:Button ID="btnselect" runat="server" Height="27px"
                        OnClick="btnselect_Click" Text="Pick" Width="73px"
                        OnClientClick="GetValue();" />
                </td>
            </tr>
        </table>
        <br />
   </asp:Panel>

            <telerik:RadGrid ID="grdactsandbills" runat="server"
                AllowFilteringByColumn="True" AllowMultiRowSelection="True" AllowPaging="True"
                AllowSorting="True" AutoGenerateColumns="False" GridLines="None"
                ShowGroupPanel="True" Skin="Black">
                <MasterTableView>
                    <Columns>
                        <telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkselect" runat="server"
                                  />
                                <asp:Label ID="lblID" runat="server" Text='<%# Eval("FilesID")%>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Subject Title">
                            <ItemTemplate>
                                <asp:Label ID="lblSubjectTitleofbilActRef" runat="server"
                                    Text='<%# Eval("Dateentered")%>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Date Received">
                            <ItemTemplate>
                                <asp:Label ID="lblDateReceived" runat="server"
                                    Text='<%# Eval("Dateneeded")%>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Ministry ID">
                            <ItemTemplate>
                                <asp:Label ID="lblMinistryID" runat="server" Text='<%# Eval("Daysavailablebeforebringup")%>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Date to AG">
                            <ItemTemplate>
                                <asp:Label ID="lblDatetoAGr" runat="server" Text='<%# Eval("Reasonsforbringup")%>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Datereceived from AG">
                            <ItemTemplate>
                                <asp:Label ID="lblDatereceivedfromAG" runat="server"
                                    Text='<%# Eval("Neededby")%>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Date send M Signature">
                            <ItemTemplate>
                                <asp:Label ID="lblReferenceNumber" runat="server"
                                    Text='<%# Eval("ReferenceNumber")%>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Date send CS">
                            <ItemTemplate>
                                <asp:Label ID="lblDatesendCSr" runat="server" Text='<%# Eval("Dateentered")%>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Date send HE signature">
                            <ItemTemplate>
                                <asp:Label ID="lblDatesendHEsignature" runat="server"
                                    Text='<%# Eval("Enteredby")%>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                    <CommandItemSettings ExportToPdfText="Export to Pdf" />
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                </MasterTableView>
                <SelectedItemStyle BackColor="#FF9966" />
                <ClientSettings AllowDragToGroup="True">
                    <Selecting AllowRowSelect="True" />
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                    <Animation AllowColumnReorderAnimation="True"
                        AllowColumnRevertAnimation="True" />
                </ClientSettings>
            </telerik:RadGrid>
    </dx:PopupControlContentControl>
    </ContentCollection>
    </dx:ASPxPopupControl>
</ContentTemplate>
</asp:UpdatePanel>


Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

QuestionList of Object Pin
fififlowertot17-Feb-11 0:40
fififlowertot17-Feb-11 0:40 
AnswerRe: List of Object Pin
Ravi Sant17-Feb-11 0:57
Ravi Sant17-Feb-11 0:57 
GeneralRe: List of Object Pin
Dalek Dave4-Mar-11 13:42
professionalDalek Dave4-Mar-11 13:42 
QuestionAdding a C# UserControl DLL in ASP Web Page Pin
Pawan_bhat16-Feb-11 21:58
Pawan_bhat16-Feb-11 21:58 
AnswerRe: Adding a C# UserControl DLL in ASP Web Page Pin
Anurag Gandhi16-Feb-11 23:25
professionalAnurag Gandhi16-Feb-11 23:25 
Questionxml generation Pin
Ramkumar_S16-Feb-11 15:33
Ramkumar_S16-Feb-11 15:33 
AnswerRe: xml generation Pin
Bernhard Hiller16-Feb-11 22:41
Bernhard Hiller16-Feb-11 22:41 
GeneralRe: xml generation Pin
Ramkumar_S17-Feb-11 21:44
Ramkumar_S17-Feb-11 21:44 
QuestionApp_Offline.htm Pin
Jamie Nordmeyer16-Feb-11 7:52
Jamie Nordmeyer16-Feb-11 7:52 
AnswerRe: App_Offline.htm Pin
Shahriar Iqbal Chowdhury/Galib16-Feb-11 10:28
professionalShahriar Iqbal Chowdhury/Galib16-Feb-11 10:28 
GeneralRe: App_Offline.htm Pin
Jamie Nordmeyer17-Feb-11 4:27
Jamie Nordmeyer17-Feb-11 4:27 
QuestionProblem already solved!!!! Pin
Dhyanga16-Feb-11 4:23
Dhyanga16-Feb-11 4:23 
AnswerRe: Problem already solved!!!! Pin
thatraja16-Feb-11 9:32
professionalthatraja16-Feb-11 9:32 
GeneralRe: Problem already solved!!!! Pin
Dhyanga16-Feb-11 9:55
Dhyanga16-Feb-11 9:55 
QuestionOpen document from server on client Pin
yftah198915-Feb-11 1:16
yftah198915-Feb-11 1:16 
AnswerRe: Open document from server on client Pin
Paulo Zemek15-Feb-11 2:38
mvaPaulo Zemek15-Feb-11 2:38 
GeneralRe: Open document from server on client Pin
yftah198915-Feb-11 3:04
yftah198915-Feb-11 3:04 

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.