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:273965
More Search Options
RSS Available
Matching Posts
Re: Output Empty byte[]
If the result is null, and you write an emtpy byte array you are sending back errored data, that youare still labeling as contenttype img/jpg. I would if it's null, set content type to plain text if you want to send back an empty page. or if you want to send back an image, do something similar to your placeholder with a spacer; const string spacerPath = "..." ; In my opinion the "right" thing is to change the content type and return an empty response. you don't even need
Posted to
HttpHandlers and HttpModules
(Forum)
by
jminond
on 3/31/2009
Re: SiteMap roles not working
You said ". There is no point showing users nodes that contain urls they can't actually access, that kind of negates what I like about the sitemap in that it automatically trims the navigation UI to items the user can access." That is not true at all... very often people want to show menu nodes, even if people don't have access to hit the page. Often within organizations and websties there is a difference between "Can see" "Can access" and other subsets. There
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
jminond
on 3/31/2009
Re: Accessing ascx variable in javascript
You need ClientID From inside your usercotnrol you could do something like: var gbTextUserName = <% =txtUserName.ClientID%>; var txtUser = document.getElementById('gbTextUserName'); alert(txtUser.value); ClientID is the property that gives you the ID that will be rendered out to the HTML so it will take into account naming containers, etc... control hierarchy.
Posted to
Client Side Web Development
(Forum)
by
jminond
on 3/9/2009
Re: No Data Present
Once the databind is complete, the reader has probably been moved all the way to the end. what you probably want to do is attach to the RowDataBound event of the grid, and grab your values as they are being bound.... Note that I have no idea what your three fields are : EGC_IDx, EGC_TYP_CDx, STR_IDx < asp:GridView runat=" server " ID=" theGrid " OnRowDataBound=" Grid_OnRowDataBound " > < /asp:GridView > protected void Grid_OnRowDataBound( object sender, GridViewRowEventArgs
Posted to
Web Forms
(Forum)
by
jminond
on 3/9/2009
Re: whats wrong with this code behind for my submit button
Are you trying to tell me that if you do: Session[ "stat" ] = 'E' ; Trace.Write(Session[ "stat" ].ToString()); // At this point you are saying "stat" is not there? SqlDataSource2.Update(); Or... Are you saying when you come back to the page, or the next page, the session variable is not there? ---------------------------------------------------------------------------------------------------------------------------------------------------------- SqlDataSourceUpdate
Posted to
Web Forms
(Forum)
by
jminond
on 3/9/2009
Re: tracking user activity in a website
1) you need to extend the "Actiivy Log" database to support extra informatio you want to add. Such as adding columns or an XML field for your needs. Say you had a colum Action, Column OldValue, Column NewValue - Combined with the existing fields you have page, user, action, old and new value.... you can add more if you need / want. 2) From his sample, the method: protected void LogActivity( string activity, bool recordPageUrl) you would want to add string oldValue, string newValue (or whatever
Posted to
Security
(Forum)
by
jminond
on 3/9/2009
Re: Modify Xml attribute with SQL
Then your question belongs in a sql forum http://social.msdn.microsoft.com/forums/en-US/sqlxml/threads/
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
jminond
on 3/9/2009
Re: Modify Xml attribute with SQL
Then your question belongs in a SQL Forum: http://social.msdn.microsoft.com/forums/en-US/sqlxml/threads/
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
jminond
on 3/9/2009
Re: tracking user activity in a website
What you found on that site is fine. You need to 1) Extend Figure 1: The ActivityLog table models the activity log. 2) Extend this method: protected void LogActivity( string activity, bool recordPageUrl) 3) You need to extend by addint information based on the Actions you are talking about. You could do this a number of ways with enums, or simple strings, you will now based on what you have to do. You could store a piece of XML that states <oldvalue><newvalue><editedvalues> Whateeer
Posted to
Security
(Forum)
by
jminond
on 3/9/2009
Re: How can i do read utf-8 .txt file and save-as ansi with same name?
In short, something along the lines of this should work, I am not sure you might not have issues as UTF carries more info than ANSI, so some might get lost? Also, you probably want to dispose, try catch, etc.... System.IO. FileStream fs = System.IO. File .OpenRead("file.txt"); byte [] bytes = new byte [fs.Length]; fs.Read(bytes, 0, ( int )fs.Length); fs.Close(); System.Text. Encoding inputEnc = System.Text. Encoding .UTF8; System.Text. Encoding outputEnc = System.Text. Encoding .Default;
Posted to
C#
(Forum)
by
jminond
on 3/9/2009
Page 1 of 60 (592 items) 1
2
3
4
5
Next >
...
Last »
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
ASP.NET:
T4MVC now has a real home and a dedicated forum!
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online