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:686245
More Search Options
RSS Available
Matching Posts
Re: asp.net
there are different ways to do this. Say you have file content in a variable called fileContent. If it is plain text: bodyText = fileContent + " " + myOtherVariable; if it is not plain text, make sure and put a place holder in the file (<html><body>[[placeholder]]</body</html>). bodyText = fileContent.replace("[[placeholder]]",myOtherVariable); --JJ
Posted to
Web Forms
(Forum)
by
jose_jimenez
on 6/10/2008
Re: asp.net
Read the file in and set the body = to the contents of the file. ( http://aspnet.4guysfromrolla.com/articles/051802-1.aspx ) If it is plain text or html (without embeded images) this will do what you expect. If it is neither of those two (it is html with image tags or binary) you will have to do more work. --JJ
Posted to
Web Forms
(Forum)
by
jose_jimenez
on 6/9/2008
Re: using css class selector in code behind
If you are using asp.net 3.5 you can use LINQ to get what you want. See the code below: protected void Page_Load( object sender, EventArgs e) { string theClass; theClass = "myClass" ; var theControls = FindByClass(theClass); foreach (Control item in theControls) { //do something; if (item is WebControl) { ((WebControl)item).CssClass = ((WebControl)item).CssClass + " hideMe" ; } else { ((HtmlControl)item).Attributes[ "class" ] = ((HtmlControl)item).Attributes[ "class"
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
jose_jimenez
on 6/3/2008
Filed under: css LINQ
Re: using css class selector in code behind
I would do this client-side with a scripting library such as jquery (jquery.com). Css selectors are not really meant to be used on the server side code. You could use theming and change the theme of the site for the session so the controls were hidden. If you really want to do it server side: make sure each of your objects is grouped by having the same css class. put this in your head block < style runat= "server" id= "pagestyles" type= "text/css" > </ style
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
jose_jimenez
on 5/30/2008
Re: Displaying Employee Profiles using Active Directory
you have to know a bit about .net and activedirectory to get this to work. You also need to know something about your domain. Take a look at http://msdn.microsoft.com/en-us/library/system.directoryservices.directorysearcher(VS.80).aspx for information about the directory searcher you can create a directory entry to use as the root of the directory searcher (http://msdn.microsoft.com/en-us/library/system.directoryservices.directoryentry(VS.80).aspx). Construct it using LDAP syntax such as DE = new
Posted to
Active Directory and LDAP
(Forum)
by
jose_jimenez
on 5/30/2008
Re: Need help with "State information is invalid..."
Please clarify your issue. Do you get the error when debugging using Cassini (the web server built into ASP.Net 2.0)? Do you get the error when serving the application up through your desktop's web browser? Have you made sure you wait for the page to completely load before posting back? Is it in .net 2.0? 3.0? 3.5? 1.1? Is it possible your viewstate has not completely loaded in your browser before you post back? I have one application that takes a long time to render a treeview control based
Posted to
State Management
(Forum)
by
jose_jimenez
on 5/30/2008
Re: Server Application Unavailable Message
I'm glad it helped. Do you come to the UI Developer meetings? Email me a the UI.
Posted to
FAQ - Frequently Asked Questions
(Forum)
by
jose_jimenez
on 5/30/2008
Re: Dynamically Generate An Excel spreadsheet in asp.net
It has been quite a while since I looked at this, but ... when you get the strict parse error it gives you an error message, something like Details can be found in the file at.... and gives you a temporary file location. If you find that file, you should see some additional information in terms of the error. --JJ
Posted to
Tips & Tricks
(Forum)
by
jose_jimenez
on 5/30/2008
Re: To get the actual character of a password string, when its Ascii value is greater than 101
what is your database engine? Have you checked to make sure it will pass back characters outside of the ascii range? take a look at the article: http://en.wikipedia.org/wiki/ROT13 especially the section on rot47. Just because I can't not say it: Not good encryption. If you don't want to have anyone that can see the database know the password, use a salt value to encrypt the password using md5, sha, or des. store the encrypted value in the database. If someone tries to log in, encrypt the
Posted to
Visual Basic .NET
(Forum)
by
jose_jimenez
on 2/22/2008
Re: Event viewer
take a look at the web.config trace element (http://msdn2.microsoft.com/en-us/library/6915t83k.aspx). also take a look at the page life cycle (http://msdn2.microsoft.com/en-us/library/ms178472.aspx.) --JJ
Posted to
State Management
(Forum)
by
jose_jimenez
on 2/19/2008
Page 1 of 49 (481 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