Click here to Skip to main content
15,899,124 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Does ASP.NET use Javascript to do postbacks? Pin
Cfer837-Aug-07 8:30
Cfer837-Aug-07 8:30 
GeneralRe: Does ASP.NET use Javascript to do postbacks? Pin
Guffa7-Aug-07 9:17
Guffa7-Aug-07 9:17 
Questionis session affect on site speed ? Pin
mohamed antar7-Aug-07 6:46
mohamed antar7-Aug-07 6:46 
AnswerRe: is session affect on site speed ? Pin
kubben7-Aug-07 7:13
kubben7-Aug-07 7:13 
GeneralRe: is session affect on site speed ? Pin
mohamed antar7-Aug-07 7:22
mohamed antar7-Aug-07 7:22 
AnswerRe: is session affect on site speed ? Pin
wEb GuRu...7-Aug-07 7:13
wEb GuRu...7-Aug-07 7:13 
GeneralRe: is session affect on site speed ? Pin
mohamed antar7-Aug-07 7:24
mohamed antar7-Aug-07 7:24 
QuestionGridView RowDeleting with multiple data sources Pin
coderlikeme7-Aug-07 6:17
coderlikeme7-Aug-07 6:17 
Hi. I have an issue that I can't seem to solve. I have a gridview defined in my HTML like this:

<asp:GridView id="selectedMetrics"
AutoGenerateColumns="false"
runat="server"
autogeneratedeletebutton="true">
<Columns>
<asp:BoundField HeaderText="Selected Metrics"
DataField="ClientMetricDesc" />
<asp:TemplateField
HeaderText="Category">
<ItemTemplate>
<asp:DropDownList
id="ddlCategory"
runat="server" DataTextField="RptCategory" DataValueField="RptCategory" DataSource='<%# GetReportCategories(Eval("RptCategory").ToString())> '
SelectedIndex='<%#GetSelIndex(Container.DataItem("ClientMetricDesc")) %>' >
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>


As you can see I have a BoundField and a Template field. The bound field I bind to a datatable in the pageload event of the VB.NET code behind. And the dropdownlist I populate from a function. Now, since I have the autogeneratedeletebutton set to true I see delete buttons in the gridview. In the rowdeleting event of the gridview I try and print out some values for debugging like this:

Trace.Write("Object type is " & sender.ToString())
Trace.Write("Row index of row being deleted is " & e.RowIndex().ToString())
Trace.Write("The number of values is " & e.Values().Count().ToString())
Trace.Write("The number of keys is " & e.Keys().Count().ToString())

The correct row displays in the 2nd debug line above but the last 2 say zero. It says the number of values is 0 and the number of keys is 0. For some reason I can get the index to the row being deleted but I can't seem to "see" the data from the row being deleted. Anyone have any ideas? Thanks in advance.
AnswerRe: GridView RowDeleting with multiple data sources [modified] Pin
coderlikeme7-Aug-07 8:23
coderlikeme7-Aug-07 8:23 
Questionnot able to redirect pages in iframe Pin
rama charan7-Aug-07 6:09
rama charan7-Aug-07 6:09 
AnswerRe: not able to redirect pages in iframe Pin
wEb GuRu...7-Aug-07 7:15
wEb GuRu...7-Aug-07 7:15 
GeneralRe: not able to redirect pages in iframe Pin
rama charan7-Aug-07 7:50
rama charan7-Aug-07 7:50 
GeneralRe: not able to redirect pages in iframe Pin
Not Active7-Aug-07 8:51
mentorNot Active7-Aug-07 8:51 
GeneralRe: not able to redirect pages in iframe Pin
rama charan7-Aug-07 9:16
rama charan7-Aug-07 9:16 
GeneralRe: not able to redirect pages in iframe Pin
Not Active7-Aug-07 9:48
mentorNot Active7-Aug-07 9:48 
GeneralRe: not able to redirect pages in iframe Pin
Guffa7-Aug-07 9:27
Guffa7-Aug-07 9:27 
GeneralRe: not able to redirect pages in iframe Pin
Not Active7-Aug-07 9:44
mentorNot Active7-Aug-07 9:44 
AnswerRe: not able to redirect pages in iframe Pin
Guffa7-Aug-07 12:27
Guffa7-Aug-07 12:27 
GeneralRe: not able to redirect pages in iframe Pin
Not Active7-Aug-07 15:15
mentorNot Active7-Aug-07 15:15 
GeneralRe: not able to redirect pages in iframe Pin
Guffa7-Aug-07 16:17
Guffa7-Aug-07 16:17 
QuestionEmail Pin
.NET- India 7-Aug-07 5:43
.NET- India 7-Aug-07 5:43 
AnswerRe: Email Pin
ToddHileHoffer7-Aug-07 7:46
ToddHileHoffer7-Aug-07 7:46 
QuestionIIS alternatives... Pin
Rob 387-Aug-07 5:27
Rob 387-Aug-07 5:27 
AnswerRe: IIS alternatives... Pin
originSH7-Aug-07 6:31
originSH7-Aug-07 6:31 
GeneralRe: IIS alternatives... Pin
Rob 387-Aug-07 22:45
Rob 387-Aug-07 22:45 

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.