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:687725
More Search Options
RSS Available
Matching Posts
Re: GridView update problem
Try the following: In your edit template, make sure that you use the Bind expression and not the Eval. Bind uses two-way data binding (Allowing you to not only read the data, but also write it) <EditItemTemplate> <asp:TextBox ID="txtErrMessage" runat="Server" Text='<%# Bind ("ERROR_MESSAGE") %>'></asp:TextBox> </EditItemTemplate> Let me know if that solves your issue.
Posted to
Data Presentation Controls
(Forum)
by
CSharpSean
on 7/17/2009
Re: GridView update problem
Nevermind, you are calling a method to update your form. Can you please post that method: fr.updateFreightException(cons_id, tEM.Text) Thanks!
Posted to
Data Presentation Controls
(Forum)
by
CSharpSean
on 7/17/2009
Re: SQL Statement: select data from a column where value starts with 'A' or any character.
try: SELECT ProductsCollection from MyProducts WHERE ProductsCollection like 'S%'
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
CSharpSean
on 7/14/2009
Re: Problem with AjaxControl kit error Compiler Error Message: CS0433: The type 'System.Web.UI.ScriptManager' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\WINDOWS\assem
Worked like a charm. . . .Thanks!
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
CSharpSean
on 7/1/2009
Re: Best way to handle delete on Gridview
OnClientClick event of a Delete LinkButton, OnClientClick = "return confirm('Are you sure you want to delete this record?');"
Posted to
Data Presentation Controls
(Forum)
by
CSharpSean
on 6/8/2009
Re: checkbox in gridview
Here is an example: <asp:TemplateField HeaderText="Active" SortExpression="Active"> <ItemTemplate> <asp:CheckBox ID="chkbxActive" runat="server" Checked='<%# Eval("Active") %>' AutoPostBack="true" /> </ItemTemplate> </asp:TemplateField> protected void chkbxActive_CheckedChanged(object sender, EventArgs e) { CheckBox chkActive = (CheckBox)sender; GridViewRow row = (GridViewRow)chkActive.NamingContainer;
Posted to
Web Forms
(Forum)
by
CSharpSean
on 5/26/2009
Re: acess selected row data value in grid view
well it depends on if your cell's value you want to retrieve is a BoundField or a TemplateField. The following code below will get you the row from which the button was clicked: Button btnExample = (Button)sender; GridViewRow row = (GridViewRow) btnExample.NamingContainer; Then from there you can get a value from a BoundField by within the row by: row.Cells[0].Text OR from a TemplateField by finding the control: row.FindControl("MyControl") Hope this helps.
Posted to
Data Presentation Controls
(Forum)
by
CSharpSean
on 5/26/2009
Re: Linq to SQL Override Select Command
Well in that case, I would recommend to try creating your own LinqtoSqlDatasource control by extending it (inherit) and overriding curtain events to do what you need. Then use your new control to use throughout your app. A little info can be found here: http://www.asp.net/learn/videos/video-297.aspx http://www.informit.com/articles/article.aspx?p=101748&seqNum=3 Hope this helps.
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
CSharpSean
on 5/22/2009
Re: Problems with binding checkbox in FormView
Hello, Is there a good reason that "required_flag" is of type int? It should only have two possible values right? 1 or 0? Turn your field into a bit type and all will be good :) If this field can have something other than an 1 or 0, then it doesnt need to be a checkbox (will create errors in the future) Otherwise, this MIGHT work for what you have: '<%# Convert.ToBoolean(Bind("required_flag") .ToString() ) %>' Hope this helps.
Posted to
Data Presentation Controls
(Forum)
by
CSharpSean
on 5/22/2009
Re: Linq to SQL Override Select Command
In the LinqDataSource, you can modify the select command through it's selecting event. For example, protected void linqDsRating_Selecting(object sender, LinqDataSourceSelectEventArgs e) { DatabaseDataContext db = new DatabaseDataContext(); e.Result = (from f in db.MyTable where f.MyField.Contains(txtSearch.Text.Trim()) && f.STATUS.Equals(ddlStatus.SelectedValue) select new {ID = f.MyField1, Name = f.MyField2}); }
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
CSharpSean
on 5/22/2009
Page 1 of 92 (914 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online