Click here to Skip to main content
15,915,703 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA9-Sep-16 3:45
professionalJANAZA9-Sep-16 3:45 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
Richard Deeming9-Sep-16 4:11
mveRichard Deeming9-Sep-16 4:11 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA9-Sep-16 4:27
professionalJANAZA9-Sep-16 4:27 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
Richard Deeming9-Sep-16 4:35
mveRichard Deeming9-Sep-16 4:35 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA9-Sep-16 8:08
professionalJANAZA9-Sep-16 8:08 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA11-Sep-16 19:52
professionalJANAZA11-Sep-16 19:52 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA11-Sep-16 22:37
professionalJANAZA11-Sep-16 22:37 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
Richard Deeming12-Sep-16 1:55
mveRichard Deeming12-Sep-16 1:55 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA12-Sep-16 2:23
professionalJANAZA12-Sep-16 2:23 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
Richard Deeming12-Sep-16 2:29
mveRichard Deeming12-Sep-16 2:29 
PraiseRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA12-Sep-16 3:01
professionalJANAZA12-Sep-16 3:01 
Questionfinal year project Pin
Member 127233156-Sep-16 6:07
Member 127233156-Sep-16 6:07 
AnswerRe: final year project Pin
OriginalGriff6-Sep-16 6:10
mveOriginalGriff6-Sep-16 6:10 
AnswerRe: final year project Pin
#realJSOP7-Sep-16 1:24
professional#realJSOP7-Sep-16 1:24 
QuestionASP.Net MVC File upload Pin
Dani_el1-Sep-16 4:01
Dani_el1-Sep-16 4:01 
AnswerRe: ASP.Net MVC File upload Pin
NotPolitcallyCorrect1-Sep-16 4:11
NotPolitcallyCorrect1-Sep-16 4:11 
GeneralRe: ASP.Net MVC File upload Pin
Dani_el1-Sep-16 4:16
Dani_el1-Sep-16 4:16 
GeneralRe: ASP.Net MVC File upload Pin
Simon_Whale1-Sep-16 4:21
Simon_Whale1-Sep-16 4:21 
GeneralRe: ASP.Net MVC File upload Pin
NotPolitcallyCorrect1-Sep-16 4:34
NotPolitcallyCorrect1-Sep-16 4:34 
QuestionInvoking GetIPGlobalProperties from Unmanaged Application Pin
Derek Tortonian29-Aug-16 12:28
Derek Tortonian29-Aug-16 12:28 
AnswerRe: Invoking GetIPGlobalProperties from Unmanaged Application Pin
#realJSOP31-Aug-16 3:22
professional#realJSOP31-Aug-16 3:22 
GeneralRe: Invoking GetIPGlobalProperties from Unmanaged Application Pin
Derek Tortonian31-Aug-16 10:22
Derek Tortonian31-Aug-16 10:22 
AnswerRe: Invoking GetIPGlobalProperties from Unmanaged Application Pin
#realJSOP7-Sep-16 1:29
professional#realJSOP7-Sep-16 1:29 
QuestionCalling e.Row.Parent.ClientID generate another ID for its GridView Pin
Andrés Leiva23-Aug-16 6:51
Andrés Leiva23-Aug-16 6:51 
Greetings...
The problem is simple: In a ASP.NET GridView, if the property e.Row.Parent.ClientID is used in the RowDataBound event, .NET generates another identifier for the GridView, and if you had javascripts in your page that used the ClientID for the GridView, they wont work.

To replicate the problem, you have to create a WebForm with one GridView, one Client HTML Button has to access the GridView identifier like this:

<input id="Button1" type="button" value="Test" onclick="alert('The next message does not have to be null: ' + document.getElementById('<%=gridViewTest.ClientID %>'))" />

If in gridViewTest_RowDataBound you don't use the e.Row.Parent.ClientID property, everything will be fine, but if you use e.Row.Parent.ClientID for some purpose, .NET will generate another ID for the GridView and the HTML Button will not work anymore.

Is that the expected behavior, or it is a bug?

modified 24-Aug-16 10:00am.

AnswerRe: Calling e.Row.Parent.ClientID generate another ID for its GridView Pin
Pete O'Hanlon24-Aug-16 0:01
mvePete O'Hanlon24-Aug-16 0:01 

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.