Click here to Skip to main content
15,890,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSQLDataSource Pin
recono11-Nov-07 4:38
recono11-Nov-07 4:38 
AnswerRe: SQLDataSource Pin
dataminers1-Nov-07 6:59
dataminers1-Nov-07 6:59 
GeneralRe: SQLDataSource Pin
dataminers1-Nov-07 14:07
dataminers1-Nov-07 14:07 
QuestionFirefox script Pin
Mr.Sam1-Nov-07 3:45
Mr.Sam1-Nov-07 3:45 
AnswerRe: Firefox script Pin
Guffa1-Nov-07 9:21
Guffa1-Nov-07 9:21 
AnswerRe: Firefox script Pin
Pete O'Hanlon1-Nov-07 11:53
mvePete O'Hanlon1-Nov-07 11:53 
QuestionPageRequestManagerServerErrorException 12030 when clicking a Button Pin
Herman<T>.Instance1-Nov-07 3:02
Herman<T>.Instance1-Nov-07 3:02 
QuestionProblem while finding control inside gridview Pin
rahul.net111-Nov-07 2:50
rahul.net111-Nov-07 2:50 
Hi to all
I am new to asp.net 2.0.
i am having one problem in gridview. I have a gridview in that i have
set datakeyname as blgid. On rowcommand i need selected row id and
text of selected row (which is a linkbutton).I have set command argument
property of linkbutton as blgid. i got the id properly of each and every
row and i am finding control using index of the clicked row.When i am
finding text of linkbutton it got index as commandargument(blgid)
if the row index was 3 and id of that row was 8 then it got the text of
linkbutton whose indes was 8. my code is as follow.
the code for link button inside gridview as follow

<asp:TemplateField HeaderText="BlogTitle"><br />
                            <ItemTemplate><br />
                             <asp:LinkButton ID="blgname" runat="server" CommandName="blogname" CommandArgument=<%# Eval("blgid") %> ForeColor="black" Height="12px" Text='<%# (container.dataitem("blogtitle")) %>' CssClass="textforum"></asp:LinkButton><br />
                            </ItemTemplate><br />
                                <HeaderStyle CssClass="textforum" ForeColor="White" /><br />
                            </asp:TemplateField>


and the code on rowcommand is as follow.

Dim id As Integer = Convert.ToInt32(e.CommandArgument)<br />
            Dim lnkbname As LinkButton<br />
Dim rowindex As Integer = CInt(e.CommandArgument)<br />
            Dim row As GridViewRow = grd_allblogs.Rows(rowindex)<br />
            lnkbname = DirectCast(row.FindControl("blgname"), LinkButton)<br />
            Session("blgname") = lnkbname.Text<br />
<br />
<br />
            Response.Redirect("BlogDetails.aspx?id=" & id)<br />


Please help me to solve the problem?

People Laugh on me Because i am
Different but i Laugh on them
Because they all are same.

AnswerRe: Problem while finding control inside gridview Pin
Imran Khan Pathan1-Nov-07 3:08
Imran Khan Pathan1-Nov-07 3:08 
GeneralRe: Problem while finding control inside gridview Pin
rahul.net111-Nov-07 3:52
rahul.net111-Nov-07 3:52 
AnswerRe: Problem while finding control inside gridview Pin
Herman<T>.Instance1-Nov-07 3:12
Herman<T>.Instance1-Nov-07 3:12 
GeneralRe: Problem while finding control inside gridview Pin
rahul.net111-Nov-07 3:53
rahul.net111-Nov-07 3:53 
GeneralRe: Problem while finding control inside gridview Pin
Herman<T>.Instance1-Nov-07 4:01
Herman<T>.Instance1-Nov-07 4:01 
GeneralRe: Problem while finding control inside gridview Pin
rahul.net111-Nov-07 4:05
rahul.net111-Nov-07 4:05 
GeneralRe: Problem while finding control inside gridview Pin
rahul.net111-Nov-07 4:11
rahul.net111-Nov-07 4:11 
GeneralRe: Problem while finding control inside gridview Pin
Herman<T>.Instance1-Nov-07 4:23
Herman<T>.Instance1-Nov-07 4:23 
GeneralRe: Problem while finding control inside gridview Pin
rahul.net111-Nov-07 5:33
rahul.net111-Nov-07 5:33 
Questiontimer in asp.net Pin
prachishah1-Nov-07 2:35
prachishah1-Nov-07 2:35 
AnswerRe: timer in asp.net Pin
InsDev1-Nov-07 2:37
InsDev1-Nov-07 2:37 
Answertimer in asp.net Pin
Sarani Ravindran1-Nov-07 2:48
Sarani Ravindran1-Nov-07 2:48 
AnswerRe: timer in asp.net Pin
Saksida Bojan1-Nov-07 2:48
Saksida Bojan1-Nov-07 2:48 
AnswerRe: timer in asp.net Pin
Paddy Boyd1-Nov-07 6:35
Paddy Boyd1-Nov-07 6:35 
GeneralRe: timer in asp.net Pin
jaygross9-Nov-07 9:10
jaygross9-Nov-07 9:10 
Questiontwo columns in dopdownlist Pin
Sonia Gupta1-Nov-07 2:22
Sonia Gupta1-Nov-07 2:22 
AnswerRe: two columns in dopdownlist Pin
InsDev1-Nov-07 2:26
InsDev1-Nov-07 2:26 

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.