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:782989
More Search Options
RSS Available
Matching Posts
Re: how to post data to another url with out redirecting
Hi cnu123, Based on my experience,you can HttpWebRequest to send post data to another webpage. And you should add the __VIEWSTATE and __EVENTVALIDATION item and post data. I write the example for you, please check the following code: Login page: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Backup4_Login" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1
Posted to
Web Forms
(Forum)
by
Hua-Jun Li - MSFT
on 12/31/2009
Re: Prevent direct access to image files?
Hi hypercode, Because you use the IIS "wildcard mapping", it pass the right to the to aspnet_isapi.dll. So the image will not displayed. You should create your own httphandler to read the image stream, and send it to the user. Also you can add some condition to decide whether you send the stream to user.
Posted to
Security
(Forum)
by
Hua-Jun Li - MSFT
on 12/31/2009
Re: pass values between dynamically loaded user controls
Hi BigFan, Because you use parent class, you can't refer the variable of sub class. You should register the usercontrol at the page directive. <%@ Register Src="Test1.ascx" TagName="Test1" TagPrefix="uc1" %> Then use it in the following way: control2 c2 = (control2 )LoadControl( "control2.ascx" ); this.Controls.Add(c2); Then you can use it.
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
Hua-Jun Li - MSFT
on 12/31/2009
Re: Cannot access textbox inside tabpanel
Hi tiwas, Because it is inside the container control, so you can't see it. You should use 'findcontrol' method to retrieve it. tabpanel,updatepannel,gridview, all this belong to container control, you should find them one by one. How to find controls inside a TabPanel's ContentTemplate http://forums.asp.net/t/1078571.aspx How to find control In update panel http://forums.asp.net/p/1113896/1721230.aspx Accessing GridView Header and Footer http://www.highoncoding.com/Articles/120_Accessing_GridView_Header_and_Footer
Posted to
Web Forms
(Forum)
by
Hua-Jun Li - MSFT
on 12/31/2009
Re: membership problem
Hi grewalsonali, You can set enablePasswordRetrieval="true" and passwordFormat="Encrypted" in the web.config of your application. If the password format is set to Hashed , then users will not be able to retrieve their existing password from the database. If you have passwordFormat= "Hashed" you can't retrieve your password, because the password hashed never decrypted. But if you change passwordFormat= "Hashed" to passwordFormat= "Encrypted" and
Posted to
Security
(Forum)
by
Hua-Jun Li - MSFT
on 12/31/2009
Re: WebRequest
Hi as7685, I think you can regular expression to catch the particular content. Other way is that you can use 'substring' and 'index' function to substring the particular content. Please check the following link: http://www.codeproject.com/KB/dotnet/regextutorial.aspx http://aspnet101.com/tutorials.aspx?id=35
Posted to
Web Forms
(Forum)
by
Hua-Jun Li - MSFT
on 12/30/2009
Re: RegularExpressionValidator - web address validation
Hi lindows, Please check the following regular expression. ^http\://(\S*)?$ Please check the following link: http://www.regexlib.com/Search.aspx?k=url http://www.codeproject.com/KB/dotnet/regextutorial.aspx
Posted to
Web Forms
(Forum)
by
Hua-Jun Li - MSFT
on 12/30/2009
Re: How to call a page in another project?
Hi eternalzx, (1)Firstly you should check whether the url path is right, you can post it into browser and check it. (2)You can try o get a detailed error message to help with debugging your dynamic web page you need to Turn Off Friendly HTTP Error messages in Internet Explorer (IE). Please check the following link: http://www.webwizguide.com/kb/asp_knowledgebase/500_internal_server_error.asp
Posted to
Web Forms
(Forum)
by
Hua-Jun Li - MSFT
on 12/30/2009
Re: Prevent direct access to image files?
Hi Boddam, You should protect a file or folder by using the IHttpHandler. It can protect the the file. Please check the following link: http://www.codeproject.com/KB/web-security/HttpHandlersInAspNet.aspx http://www.codeproject.com/KB/web-security/imagehandler.aspx
Posted to
Security
(Forum)
by
Hua-Jun Li - MSFT
on 12/30/2009
Re: Images is not loaded in rewrited urls
Hi tabasum.pervez, (1)Move to an ASP.NET Image control. Then the '~' will work. Or add the runat attribute to the image tag. The URL will be resolved before it is sent down, so it will look like an absolute path client side. (2)Resolve it a ASP.NET script tag: <img src="<%=Page.ResolveUrl("~/image/myimage.jpg")>" /> Please check the following link: http://channel9.msdn.com/forums/TechOff/250382-Absolute-Image-Locations-and-Master-Pages/
Posted to
Web Forms
(Forum)
by
Hua-Jun Li - MSFT
on 12/30/2009
Page 1 of 228 (2275 items) 1
2
3
4
5
Next >
...
Last »
ASP.NET:
Death to confirmation dialogs with jquery.undoable
Channel 9:
E2E: Brian Beckman and Erik Meijer - Co/Contravariance in Physics and Programming, 1 of 2
TechNet Edge:
Windows Server 2008 R2 Quick Look #3 - PowerShell V2
ASP.NET:
2009 Blogged - Greatest Hits
WindowsClient:
2009 Blogged - Greatest Hits
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
Channel 9:
MEF & Silverlight 4 Beta - Part 2, Imports & Exports
Channel 9:
MEF & Silverlight 4 Beta - Part 1, Introduction
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online