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:878145
More Search Options
RSS Available
Matching Posts
Re: Problem adding a Button to a GridView TemplateField
Here is an example that does the same thing as what you are trying to do... Master > Detail scenerio using a gridview and a formview.... In this example he uses a linkbutton... http://mattberseth.com/blog/2008/04/masterdetail_with_the_gridview.html In his example the linkbutton select the row and calls the SelectedIndexChanged event to display the formview with the other details about the record Perhaps this will help...
Posted to
Data Presentation Controls
(Forum)
by
tlanders99
on 12/3/2009
Re: How can I find from where an acction was called?
Your post is very vague... perhaps you should put some code or explain your problem further. From what you stated: I would assume you could handle something like this by simply adding a variable to your subroutine....(what are you calling? A subroutine or a function? in codebehind) i.e. - Sub ActionForViews(ByVal ViewName As String, .... and whatever else) SOME CODE if ViewName = "" then DISPLAY ..... end if end sub
Posted to
ASP.NET MVC
(Forum)
by
tlanders99
on 12/3/2009
Outputcache and Formview PageIndex
I have long debated how to cache my project and am looking for some suggestions.... My application is here >> http://www.travlanders.com/Teaching_Files/Moonkkang/Moonkkang_Class_Page.aspx I have a formview which dictates what the rest of the page output will be.... (In code behind I fill some accordion panes using some logic) So right now, not only am I calling the database everytime but I am also running through this logic everytime. I thought caching would be a good way to prevent this..
Posted to
State Management
(Forum)
by
tlanders99
on 12/2/2009
Filed under: AjaxControlToolkit Error
Re: Formview / PageIndex / linqdatasource
I tried to work out storing my data into a list and then caching it but I could not get it to work... do you know of a good example for VB..... everything I tried I ran into trouble.... once in a list can I query the list for subsets in memory?? This seems like it would be the most ideal way to interact with data... perhaps i am wrong though...
Posted to
Data Presentation Controls
(Forum)
by
tlanders99
on 11/20/2009
Re: Casting Error: DataRowView / DataItem (Selecting Items in a formview)
I understand a little of what you are saying because I believe I ran across examples like that BUT.... I really don't get it.... could you show me something with a little more code... This is the original code I had.... http://forums.asp.net/t/1493637.aspx I understand the suggestions here but I need to do my binding in code behind so the last tip won't really help me unless I could put my code in a different event handler than where I have it...
Posted to
Data Presentation Controls
(Forum)
by
tlanders99
on 11/20/2009
Re: Hyperlink Control
I agree with the above... If it is a data control it seems like the databound event would be the best place to put some codebehind logic to handle this... if it is not a data control you could simply add it to your page on load event and use something like..... Use a div tag on your page: <div runat="server" id="Print_Content"></div> Then inject your hyperlinks in with code behind.... Print_Content.InnerHtml = "<a href='www.webaddress.com?querysting="
Posted to
Web Forms
(Forum)
by
tlanders99
on 11/20/2009
Formview Custom Paging, Selecting Page Dynamically OnPageLoad(efficiency ?)
Wow... finally got to where I want to be but it seems like my answer is too complicated... I feel like i call the database too much... I was wondering if anyone could give some tips on making this code more efficient or faster... It does work... 'On page load I first determine what page I want to select on the formview based on a date 'After that I call a slightly different query to populate the formview 'Not sure if I could somehow combine this into one call Sub Moonkkang_Class_Page_Load
Posted to
Data Presentation Controls
(Forum)
by
tlanders99
on 11/17/2009
Re: Formview Custom Paging..... Selecting a page in code behind with record ID
Well ... I thought I had this sewn up but I tested it and it didn't work..... The only thing I was succressful at was producing an error.... I tried to work with your example and many other examples but I just can't get it or find it.... I keep getting the following casting error: Unable to cast object of type 'VB$AnonymousType_8`7[System.Int32,System.Nullable`1[System.DateTime],System.Nullable`1[System.DateTime],System.String,System.String,System.Nullable`1[System.DateTime],System.String
Posted to
Data Presentation Controls
(Forum)
by
tlanders99
on 11/17/2009
Casting Error: DataRowView / DataItem (Selecting Items in a formview)
Does anyone know what the work around is for this... I found several people talking about using code like this: DataRowView dataRow = (DataRowView)FormView1.DataItem; Dim row As DataRow = CType(FormView1.DataItem, DataRow) I put both the C# and VB but I am working in VB..... I am trying to cycle through all the ID fields of a recordset that is bound to a formview... Trying to get at the ID so I can compare it with something.... But I am stumped... I have tried examples with DataITem, DataRowView
Posted to
Data Presentation Controls
(Forum)
by
tlanders99
on 11/17/2009
Re: Casting Error: DataRowView / DataItem (Selecting Items in a formview)
It's a linqdatasource... perhaps that is my problem.. to clarify further... I am using linq to sql to bind to a formview in codebehind...
Posted to
Data Presentation Controls
(Forum)
by
tlanders99
on 11/17/2009
Page 1 of 5 (43 items) 1
2
3
4
5
Next >
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
TechNet Edge:
ISA to TMG Migration Guidance
Channel 9:
Life at Microsoft: Episode 3
TechNet Edge:
Microsoft Windows Server 2008 to AITP
ASP.NET:
How important is medium trust to you?
WindowsClient:
Microsoft Web Platform & You
WindowsClient:
New Book: Developing for Microsoft Surface
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online