Click here to Skip to main content
15,879,844 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Jscript in content pages Pin
Dennis E White8-Nov-11 17:45
professionalDennis E White8-Nov-11 17:45 
AnswerRe: Jscript in content pages Pin
Dennis E White8-Nov-11 15:20
professionalDennis E White8-Nov-11 15:20 
GeneralRe: Jscript in content pages Pin
MalarGayu8-Nov-11 15:24
MalarGayu8-Nov-11 15:24 
AnswerRe: Jscript in content pages Pin
Brij8-Nov-11 22:42
mentorBrij8-Nov-11 22:42 
GeneralRe: Jscript in content pages Pin
MalarGayu9-Nov-11 11:57
MalarGayu9-Nov-11 11:57 
GeneralRe: Jscript in content pages Pin
MalarGayu9-Nov-11 14:37
MalarGayu9-Nov-11 14:37 
GeneralRe: Jscript in content pages Pin
Brij9-Nov-11 17:03
mentorBrij9-Nov-11 17:03 
Questionquestion on gridview logic Pin
classy_dog8-Nov-11 6:24
classy_dog8-Nov-11 6:24 
Since I am new to working on C# webforms 2010, I have the following questions to ask so I can understand what is occuring in the following code:

1. In the code listed below, what does the '|' mean in the line 'rowState | DataControlRowState.Edit'? In addition can you explain what is occuring in the line of code for <pre> 'row = base.CreateRow(rowIndex, dataSourceIndex, rowType, rowState | DataControlRowState.Edit);'


protected override GridViewRow CreateRow(int rowIndex, int dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState)
{
GridViewRow row;

if (this.BulkEdit)
row = base.CreateRow(rowIndex, dataSourceIndex, rowType, rowState | DataControlRowState.Edit);
else
row = base.CreateRow(rowIndex, dataSourceIndex, rowType, rowState);

return row;
}</pre>

2. In the aspx file, I see the following Namespace="BulkEditGridView". Can you explain or point me to a reference show I can understand how the "BulkEditGridView" namespace is wired into making the webpage work?
<pre>
<%@ Page Title="" Language="C#" MasterPageFile="~/ModuleBase.master" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="Support.Manage"
<%@ Register Assembly="Support" Namespace="BulkEditGridView" TagPrefix="test" %> </pre>

3. When I step through the code, I see the following items being referred to in the .aspx file. Can you explain what is occurring?
<pre>
<ItemTemplate>
<asp:CheckBox ID="chkL" OnCheckedChanged="CheckRoleChanged" AutoPostBack="true"
Checked='<%# Convert.ToBoolean( Eval ("L")) %>' runat="server" />
</ItemTemplate
</pre>
The code is called from ' row = base.CreateRow(rowIndex, dataSourceIndex, rowType, rowState | DataControlRowState.Edit);' that was listed above.
AnswerRe: question on gridview logic Pin
Dennis E White8-Nov-11 8:17
professionalDennis E White8-Nov-11 8:17 
GeneralRe: question on gridview logic Pin
classy_dog8-Nov-11 9:03
classy_dog8-Nov-11 9:03 
GeneralRe: question on gridview logic Pin
Dennis E White8-Nov-11 9:17
professionalDennis E White8-Nov-11 9:17 
GeneralRe: question on gridview logic Pin
classy_dog8-Nov-11 9:50
classy_dog8-Nov-11 9:50 
GeneralRe: question on gridview logic Pin
Dennis E White8-Nov-11 15:26
professionalDennis E White8-Nov-11 15:26 
GeneralRe: question on gridview logic Pin
classy_dog8-Nov-11 17:59
classy_dog8-Nov-11 17:59 
GeneralRe: question on gridview logic Pin
Dennis E White8-Nov-11 18:13
professionalDennis E White8-Nov-11 18:13 
GeneralRe: question on gridview logic Pin
classy_dog9-Nov-11 5:37
classy_dog9-Nov-11 5:37 
SuggestionRe: question on gridview logic Pin
RaviRanjanKr19-Nov-11 9:56
professionalRaviRanjanKr19-Nov-11 9:56 
QuestionI want to catch event when user close page. Pin
buffering837-Nov-11 20:51
buffering837-Nov-11 20:51 
AnswerRe: I want to catch event when user close page. Pin
Anuj Banka8-Nov-11 0:53
Anuj Banka8-Nov-11 0:53 
GeneralRe: I want to catch event when user close page. Pin
buffering838-Nov-11 12:40
buffering838-Nov-11 12:40 
GeneralRe: I want to catch event when user close page. Pin
Anuj Banka8-Nov-11 19:16
Anuj Banka8-Nov-11 19:16 
Questionseveral input sources for web form 2010 control Pin
Member 82175177-Nov-11 16:54
Member 82175177-Nov-11 16:54 
Questionsupply data for web control field Pin
Member 82175177-Nov-11 6:23
Member 82175177-Nov-11 6:23 
AnswerRe: supply data for web control field Pin
Richard MacCutchan7-Nov-11 7:41
mveRichard MacCutchan7-Nov-11 7:41 
GeneralRe: supply data for web control field Pin
Member 82175177-Nov-11 8:32
Member 82175177-Nov-11 8: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.