Click here to Skip to main content
15,902,938 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to show raw data into browser as pdf formate(generate pdf file on runtime) Pin
Christian Graus17-Jun-09 18:44
protectorChristian Graus17-Jun-09 18:44 
GeneralRe: how to show raw data into browser as pdf formate(generate pdf file on runtime) Pin
mkashifbutt17-Jun-09 20:28
mkashifbutt17-Jun-09 20:28 
QuestionDisplaying Square character instead of showing a line space Pin
shijivijayan17-Jun-09 18:26
shijivijayan17-Jun-09 18:26 
AnswerRe: Displaying Square character instead of showing a line space Pin
Abhijit Jana17-Jun-09 18:29
professionalAbhijit Jana17-Jun-09 18:29 
AnswerRe: Displaying Square character instead of showing a line space Pin
Christian Graus17-Jun-09 18:46
protectorChristian Graus17-Jun-09 18:46 
QuestionGridView Problem Pin
BhavinBhatt17-Jun-09 18:08
BhavinBhatt17-Jun-09 18:08 
AnswerRe: GridView Problem Pin
CrazyCoder2617-Jun-09 19:28
CrazyCoder2617-Jun-09 19:28 
QuestionDataGridView with AJAX Modal popup extender Pin
cocoonwls17-Jun-09 17:32
cocoonwls17-Jun-09 17:32 
hi all,

I am using VS 2005,C# with framework 2.0 and AJAX toolkit. I got a datagridview and already create a CommandField, button type. I would like to display particular row details by modalpopup extender.

Currently i am using code behind (gridview_SelectedIndexChanged to get neccesarry data) and method modalpopupextender.Show() to acheive it,but its is pretty slow when browse via internet (its ok if browse locally). My coding is show like below:


aspx:

<asp:GridView ID="DataGridProduct" runat="server" <code>OnSelectedIndexChanged="DataGridProduct_SelectedIndexChanged"</code> AutoGenerateColumns="False">
<Columns>
   <asp:CommandField ButtonType="Image" ShowSelectButton="True" HeaderText="View" />
   <asp:BoundField DataField="ProdCode" HeaderText="Code" ReadOnly="True" SortExpression="ProdCode"
   </asp:BoundField>
   <asp:BoundField DataField="ProdDesc" Visible="False" />
        <asp:TemplateField>
              <HeaderTemplate>Description&lt;/HeaderTemplate>
              <ItemTemplate><%# Limit(Eval("ProdDesc"),25)%></ItemTemplate>
        </asp:TemplateField>
</Columns>



modalpopup
<cc1:ModalPopupExtender <code>ID="mpeProduct"</code> runat="server" TargetControlID="Button1" PopupControlID="panelProduct" CancelControlID="btnClose" BackgroundCssClass="modalBackground" PopupDragHandleControlID="panelDrag" Drag="true">
                    </cc1:ModalPopupExtender>


aspx.cs

protected void DataGridProduct_SelectedIndexChanged(object sender, EventArgs e)
{
      if (DataGridProduct.SelectedDataKey[4].ToString() == "Horizontal")
      {
           lblProductCode.Text = DataGridProduct.SelectedDataKey[0].ToString();
           lblProductName.Text = DataGridProduct.SelectedDataKey[1].ToString();
           txtProductSpec.Text = DataGridProduct.SelectedDataKey[2].ToString();
           txtProductDescription.Text = DataGridProduct.SelectedDataKey[3].ToString();
           ImgDisplay.ImageUrl = DataGridProduct.SelectedDataKey[5].ToString().Trim();
           <code>mpeProduct.Show();</code>
       }
}



so,can i use client script to acheive it, get datagridrow's data and display in modalpopup extender?

any advice and tips are welcome,
thanks in advance

regards
cocoonwls
QuestionGridview onchange Pin
Peterson Luiz17-Jun-09 15:24
Peterson Luiz17-Jun-09 15:24 
AnswerRe: Gridview onchange Pin
Xmen Real 17-Jun-09 15:33
professional Xmen Real 17-Jun-09 15:33 
GeneralRe: Gridview onchange Pin
Peterson Luiz17-Jun-09 15:38
Peterson Luiz17-Jun-09 15:38 
AnswerRe: Gridview onchange Pin
Xmen Real 17-Jun-09 16:54
professional Xmen Real 17-Jun-09 16:54 
GeneralRe: Gridview onchange Pin
Peterson Luiz17-Jun-09 17:02
Peterson Luiz17-Jun-09 17:02 
GeneralRe: Gridview onchange Pin
Xmen Real 17-Jun-09 17:11
professional Xmen Real 17-Jun-09 17:11 
QuestionASP.net web controls Pin
mahichandu17-Jun-09 10:07
mahichandu17-Jun-09 10:07 
AnswerRe: ASP.net web controls Pin
Christian Graus17-Jun-09 11:03
protectorChristian Graus17-Jun-09 11:03 
GeneralRe: ASP.net web controls Pin
mahichandu17-Jun-09 11:33
mahichandu17-Jun-09 11:33 
GeneralRe: ASP.net web controls Pin
Christian Graus17-Jun-09 13:28
protectorChristian Graus17-Jun-09 13:28 
AnswerRe: ASP.net web controls Pin
DoctorMick17-Jun-09 23:21
DoctorMick17-Jun-09 23:21 
Question??Ajax Pop-up Window?? Pin
CSharpBeginner17-Jun-09 9:15
CSharpBeginner17-Jun-09 9:15 
AnswerRe: ??Ajax Pop-up Window?? Pin
Christian Graus17-Jun-09 11:28
protectorChristian Graus17-Jun-09 11:28 
GeneralRe: ??Ajax Pop-up Window?? Pin
CSharpBeginner17-Jun-09 15:22
CSharpBeginner17-Jun-09 15:22 
GeneralRe: ??Ajax Pop-up Window?? Pin
Christian Graus17-Jun-09 16:01
protectorChristian Graus17-Jun-09 16:01 
QuestionHow can I pass a asp.net text box value to an input text box name txtSearch2 Pin
HistoricalSocietyMember17-Jun-09 8:44
HistoricalSocietyMember17-Jun-09 8:44 
AnswerRe: How can I pass a asp.net text box value to an input text box name txtSearch2 Pin
Christian Graus17-Jun-09 11:04
protectorChristian Graus17-Jun-09 11: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.