Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:818265
More Search Options
RSS Available
Matching Posts
Re: Event Not Firing from a Dynamically Created Control
Hi, Did you set the AutoPostback property of the dropdown to true? If it's not set to true, the selected index changed event won't fire. Andrei
Posted to
Data Presentation Controls
(Forum)
by
acroitoriu
on 2/6/2009
Re: Adding a hyperlink to Rowdatabound in a gridview
you already have the region value in the txt variable try something like: hl.NavigateUrl = "natm.aspx?region=" & txt Andrei
Posted to
Data Presentation Controls
(Forum)
by
acroitoriu
on 12/22/2008
Re: Adding a hyperlink to Rowdatabound in a gridview
What do you need to put in there? if it's NAT or PHL - you already have the value in the txt variable if it's something else that's already present in the row you can get the value as you got the NAT, PHL label text - just get it from the appropriate cell. This way you wouldn't need to modify your approach. Andrei
Posted to
Data Presentation Controls
(Forum)
by
acroitoriu
on 12/19/2008
Re: Adding a hyperlink to Rowdatabound in a gridview
try something like this: If e.Row.RowType = DataControlRowType.DataRow Then Dim txt As String = e.Row.Cells(1).Text 'get the current text Dim hl As New HyperLink() 'add new HyperLink to cell instead of text If txt.Equals( "NAT") Then hl.Visible = false 'just hide the link Else hl.Text = txt hl.NavigateUrl = "natm.aspx" e.Row.Cells(1).Controls.Clear() e.Row.Cells(1).Controls.Add(hl) End If End If this was what I meant. Andrei
Posted to
Data Presentation Controls
(Forum)
by
acroitoriu
on 12/19/2008
Re: Adding a hyperlink to Rowdatabound in a gridview
in this case use the code you provided for the datarowbount event and based of the text in the cell create or not the hyperlink. you can not do: e.row.rowtype=="NAT", but you can compare the value from the label and if it matches your criterie (PHL) then create the hyperlink and add it to the cell. Andrei
Posted to
Data Presentation Controls
(Forum)
by
acroitoriu
on 12/19/2008
Re: Adding a hyperlink to Rowdatabound in a gridview
ok, understood I don't understand why you don't create the hyperlink in the first place from the template of the gridview? Any reason for not having something like: <asp:TemplateField HeaderText="link"> <ItemTemplate> <asp:HyperLink ID="link" runat="server" NavigateUrl="<%# CreateLink((string)Eval("Property")) %>" Text="Link" /> </ItemTemplate> </asp:TemplateField> public void CreateLink(string
Posted to
Data Presentation Controls
(Forum)
by
acroitoriu
on 12/19/2008
Re: how to get linkbutton value ?
you can add another property to your link button -CommandArgument and pass in this the value you want. <asp:LinkButton ID="LinkButton1" OnClick="click" CommandArgument="2" runat="server">LinkButton</asp:LinkButton> Also, you'll have to treat the OnClick event to get the value: protected void click(object sender, EventArgs e) { LinkButton b = (LinkButton)sender; string value = b.CommandArgument; } Hope this helps! Andrei
Posted to
Web Forms
(Forum)
by
acroitoriu
on 12/19/2008
Re: Adding a hyperlink to Rowdatabound in a gridview
hi, you have a few problems to solve: first of all index in VB starts a 1 from what I know - so you should get Cell(2) in case you want to modify region cell second, you should try something like e.Row.Cells(2).Controls[label_index] in order to get the label NAT or PHL - use debug to see what's the index of the label that displays the text you want get the label, use the Text property and then try to insert your Hyperlink control Hope this helps! Andrei
Posted to
Data Presentation Controls
(Forum)
by
acroitoriu
on 12/19/2008
Re: AJAX update panels work on my laptop but not with colleague
does the have javascript disabled in the browser? ajax won't work if javascript is disabled. Andrei
Posted to
ASP.NET AJAX Discussion and Suggestions
(Forum)
by
acroitoriu
on 12/12/2008
Re: Button column problem in datagrid
use something like this .... didn't try to test it, but this should be the idea: <asp:TemplateColumn> <ItemTemplate> <asp:Button ID="myButton" runat="server" Text="Button text" CommandArgument='<%# Eval("MyDataSourceField") %>' OnClick="button_click" /> </ItemTemplate> </asp:TemplateColumn> protected void button_click(object sender, EventArgs e) { var btn = (Button)sender; string arg = btn.CommandArgument;
Posted to
Data Presentation Controls
(Forum)
by
acroitoriu
on 12/2/2008
Page 1 of 16 (160 items) 1
2
3
4
5
Next >
...
Last »
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online