Click here to Skip to main content
15,897,371 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCrystal Report Pin
mgomathi18-Jan-10 4:53
mgomathi18-Jan-10 4:53 
QuestionDivide single column into five in gridview Template [modified] Pin
trinhitc18-Jan-10 3:24
trinhitc18-Jan-10 3:24 
AnswerRe: Divide single column into five in gridview Template Pin
Anurag Gandhi19-Jan-10 1:58
professionalAnurag Gandhi19-Jan-10 1:58 
QuestionClient Centric or Server Centric Pin
AndyInUK18-Jan-10 2:18
AndyInUK18-Jan-10 2:18 
AnswerRe: Client Centric or Server Centric Pin
RichardGrimmer18-Jan-10 4:30
RichardGrimmer18-Jan-10 4:30 
GeneralRe: Client Centric or Server Centric Pin
AndyInUK18-Jan-10 4:59
AndyInUK18-Jan-10 4:59 
GeneralRe: Client Centric or Server Centric Pin
RichardGrimmer18-Jan-10 6:11
RichardGrimmer18-Jan-10 6:11 
QuestionHelp: AJAX disables my Server Code from running! Pin
awedaonline18-Jan-10 1:06
awedaonline18-Jan-10 1:06 
Hello guys,

I declared AJAX ModalPopupExtender in a GridView control in-place of loading a new page to get details of a selected data from the GridView. I succeeded in displaying the Popup but can't my server code running.

Below is my .aspx and code behinde codes:

<asp:gridview id="gvAssets" runat="server" allowpaging="True"
="" allowsorting="false" autogeneratecolumns="false" datakeynames="SN" emptydatatext="No asset found." emptydatarowstyle-cssclass="descriptor" emptydatarowstyle-borderstyle="Solid" emptydatarowstyle-borderwidth="1px" emptydatarowstyle-bordercolor="#3366CC" emptydatarowstyle-width="400px" emptydatarowstyle-height="20px" style="margin-bottom: 0px" &gt;
="" <columns="">
<asp:templatefield>
<headertemplate>
<asp:linkbutton id="DeleteButton" runat="server" onclick="DeleteAsset" style="color: #FFFFFF; text-decoration:none;">Delete

<itemtemplate>
<asp:checkbox id="selectCheckBox" runat="server">


<asp:boundfield datafield="SN" headertext="Asset Code" sortexpression="SN">
...
...
...
<asp:templatefield headertext="Vendor Code">
<itemtemplate>
<asp:linkbutton id="lbGetVendorDetail" runat="server" text="<%# DataBinder.Eval(Container.DataItem, "VendorCode") %>"
="" commandargument="<%# DataBinder.Eval(Container.DataItem, "VendorCode") %>" oncommand="GetVendorDetails">

<ajaxtoolkit:modalpopupextender id="mpeVendorDetails" runat="server" targetcontrolid="lbGetVendorDetail"
="" popupcontrolid="pnlVendorDetails" backgroundcssclass="modalBackground" cancelcontrolid="cancelButton">




<selectedrowstyle backcolor="#CCCCCC">
<headerstyle backcolor="#999999" borderstyle="None" font-bold="True"
="" forecolor="White">
<alternatingrowstyle backcolor="White">


The Code Behinde is:

Protected Sub GetVendorDetails(ByVal sender As Object, ByVal e As CommandEventArgs)
VendorCodeLabel.Text = e.CommandArgument.ToString()

Dim vendor As New VendorObject(VendorCodeLabel.Text.Trim())

If vendor.GetVendor() Then
VendorNameLabel.Text = vendor.VendorName.ToString()
VendorAddressLabel.Text = vendor.Address.ToString()
VCategoryLabel.Text = vendor.Category.ToString()
ContactPersonLabel.Text = vendor.ContactPerson.ToString()
PhoneNosLabel.Text = vendor.PhoneNo.ToString()
EmailLabel.Text = vendor.Email.ToString()
WebsiteLabel.Text = vendor.Website.ToString()
GLCodeCrLabel.Text = vendor.GLCodeCr.ToString()
GLCodeDrLabel.Text = vendor.GLCodeDr.ToString()
End If
End Sub

What could be run with the above code?

I also want to know how to code my CSS file to customize GridView control instead of having to declare (GridView) properties as about.

Please help me out.

Thanks for your usual assistance.
AnswerRe: Help: AJAX disables my Server Code from running! Pin
Not Active18-Jan-10 2:03
mentorNot Active18-Jan-10 2:03 
GeneralRe: Help: AJAX disables my Server Code from running! Pin
awedaonline18-Jan-10 3:21
awedaonline18-Jan-10 3:21 
GeneralRe: Help: AJAX disables my Server Code from running! Pin
Not Active18-Jan-10 5:00
mentorNot Active18-Jan-10 5:00 
QuestionASP.NET ChatRoom (With C# Coding) Pin
jojoba201018-Jan-10 0:33
jojoba201018-Jan-10 0:33 
AnswerRe: ASP.NET ChatRoom (With C# Coding) Pin
Steve Westbrook18-Jan-10 4:53
Steve Westbrook18-Jan-10 4:53 
QuestionSeperate Comment line.. Pin
Ramkumar_S18-Jan-10 0:20
Ramkumar_S18-Jan-10 0:20 
AnswerRe: Seperate Comment line.. Pin
dan!sh 18-Jan-10 0:48
professional dan!sh 18-Jan-10 0:48 
GeneralRe: Seperate Comment line.. Pin
Ramkumar_S18-Jan-10 18:48
Ramkumar_S18-Jan-10 18:48 
GeneralRe: Seperate Comment line.. Pin
meeram39518-Jan-10 19:48
meeram39518-Jan-10 19:48 
GeneralRe: Seperate Comment line.. Pin
dan!sh 18-Jan-10 20:37
professional dan!sh 18-Jan-10 20:37 
QuestionUpdate Online MySql Database from Client Side desktop service Pin
JayKhatri18-Jan-10 0:00
JayKhatri18-Jan-10 0:00 
Questionweb site and date format Pin
Zeyad Jalil17-Jan-10 22:46
professionalZeyad Jalil17-Jan-10 22:46 
AnswerRe: web site and date format Pin
SeMartens17-Jan-10 22:55
SeMartens17-Jan-10 22:55 
GeneralRe: web site and date format Pin
Zeyad Jalil17-Jan-10 23:08
professionalZeyad Jalil17-Jan-10 23:08 
GeneralRe: web site and date format Pin
SeMartens18-Jan-10 0:31
SeMartens18-Jan-10 0:31 
AnswerRe: web site and date format Pin
keyur satyadev18-Jan-10 0:12
keyur satyadev18-Jan-10 0:12 
Questiondelete persistent cookie Pin
hi_everybody17-Jan-10 22:32
hi_everybody17-Jan-10 22:32 

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.