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:817013
More Search Options
RSS Available
Matching Posts
Re: Passing C# variable using RegisterClientScriptBlock
The best place to bind the variable is during the Load_Complete or the Pre_Render event for the page. This will ensure that you have the latest value after all the change and postback events are fired. This MSDN article will give you a better description and the sequence of events for the page. http://msdn.microsoft.com/en-us/library/ms178472.aspx I hope this helps.
Posted to
Client Side Web Development
(Forum)
by
AMR_PHASE
on 5/11/2009
Re: How to call body onload from UserControl?
You can use the RegisterStartupScript() function of the ClientScriptManager. You can find a quick sample here: http://msdn.microsoft.com/en-us/library/z9h4dk8y.aspx
Posted to
Client Side Web Development
(Forum)
by
AMR_PHASE
on 5/11/2009
Re: Restrict functionality for role
Depending on the structure of your project, you can do this by checking the user roles via the User object on the page. If User.IsInRole( "Administrator" ) Then ' do something for administrators else if User.IsInRole( "Writer" ) then ' do something for writers else ' do the default action. end if if (User.IsInRole( "Administrator" )) { // Do something for administrators } else if (User.IsInRole( "Writer" )) { // do something for writers } else
Posted to
Security
(Forum)
by
AMR_PHASE
on 5/11/2009
Re: Need help debugging code with DateTime fields to get total minutes
Since you are reading data directly from the row you may want to make sure you call HttpUtility.HtmlDecode() to make sure any encoded characters are decoded back into a string. totalMins = DateTime.Parse(HttpUtility.HtmlDecode(e.Row.Cells[6].Text)); This may help solve your parsing issues.
Posted to
C#
(Forum)
by
AMR_PHASE
on 5/11/2009
Re: Change Ajax response to a regular one
You may want to consider setting up the PDF button as a PostBack Trigger vs a callback. This will ensure that when the Create PDF button is clicked a full request is sent to the page. This article discusses the async vs postback triggers as well as to how to set them up in markup. http://blog.joelowrance.com/archive/2007/07/24/asyncpostbacktrigger-vs-postbacktrigger.aspx Hopefully this helps you reach a solution.
Posted to
ASP.NET AJAX Discussion and Suggestions
(Forum)
by
AMR_PHASE
on 5/11/2009
Re: Purchase self study material for VS 2008 study + Exams
You probably already know this but, the microsoft learning site http://www.microsoft.com/learning has quite a few free resouces that can help you prepare for the exams you are looking for, they have free virtual labs and complete training courses. Also, you can use the topics and search On Demand events for demos and related materials. Of course there are always MSPress books, some of which you can get for free as well... also, the are you certifiable game offers very realistic test questions.
Posted to
Free For All
(Forum)
by
AMR_PHASE
on 5/11/2009
Re: How to best handle Unique constraint during data insert/update?
You may want to first identify why the system is attempting to do a second insert with the same information. It is better to address the reason why the second insert attempt is happening vs ignoring or handling the error.
Posted to
Web Forms
(Forum)
by
AMR_PHASE
on 5/11/2009
Re: How can I get those that ordered more 1 year from another
SELECT X.CLIENTID, X.TOTALPERIOD1, X.TOTALPERIOD2, CASE WHEN X.TOTALPERIOD2 > X.TOTALPERIOD1 THEN 'Yes' ELSE 'No' END Period2IsGreater FROM ( SELECT CLIENTID, SUM ( CASE WHEN ORDERDATE >= STARTDATE1 AND ORDERDATE <= ENDDATE1 THEN ORDERTOTAL ELSE 0 END ) TOTALPERIOD1, SUM ( CASE WHEN ORDERDATE >= STARTDATE2 AND ORDERDATE <= ENDDATE2 THEN ORDERTOTAL ELSE 0 END ) TOTALPERIOD2 FROM TBLORDERS WHERE CLIENTID = @CLIENTID GROUP BY CLIENTID ) X Something like this may do the
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
AMR_PHASE
on 5/11/2009
Re: How to delete or move those sent files?
Do you have the stack trace information?
Posted to
Web Forms
(Forum)
by
AMR_PHASE
on 11/24/2008
Re: GridView disappears after postback.
I believe it is going a way because you calling the databind method, but you are not setting a datasource, I would suggest replacing GridView1.DataBind() with a call to LoadData() again.... When you set the datasource, and do databind the association goes away once it is bound, that is why datasource shows up as null, so when the databind is called again, there is nothing to bind to.
Posted to
Data Presentation Controls
(Forum)
by
AMR_PHASE
on 11/4/2008
Page 1 of 17 (165 items) 1
2
3
4
5
Next >
...
Last »
TechNet Edge:
WinRE and free stuff with Sean Kearney
WindowsClient:
XslCompiledTransform and large template elements
WindowsClient:
The Future of Client App Dev : WPF and Silverlight Convergence
Channel 9:
PDC09 GeekFest Party
Channel 10:
How to Use "Play to" and "Remote Media Streaming" in Windows 7
Channel 9:
The Visual Studio Documentary: Jeff Hadfield Full Length Interview
TechNet Edge:
Managing Your Entire World - Tech Focus November 2009 Part 3
Channel 9:
The Access Show: Managing Access Databases with SharePoint
Channel 10:
Show Us Your Tech - Mark Pendergrast Edition
TechNet Edge:
Mark Russinovich interview at TechEd EMEA 09
TechNet Edge:
IT Manager Podcast #31: Talking About Virtualization
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 1: Introduction
WindowsClient:
MSXML XHTML DTDs - making the web better
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Channel 10:
Bing's Top Searches Reveal Our Celeb Obsessions
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online