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:849732
More Search Options
RSS Available
Matching Posts
How to Cancel (stop) execution of my page in Page_Load event after a Postback?
Hi all! I have a question about handling the postbacks. In my aspx page i have some buttons. When a user presses a button, if he isn't an authorized user, then i want to stop the postback event. In Page_Load event i have that simple code: If Not isAuthorizedUser() Then 'I want to stop the page's execution now End If What i must write there to stop the postback? Is there any e.Cancel() or stopPostBackOperation() function? If i use Exit Sub, then the control goes to button1_Click... I try
Posted to
Web Forms
(Forum)
by
MinimalTech
on 7/20/2009
Re: How to Cancel (stop) execution of my page in Page_Load event after a Postback?
Thank you very much for your quick responses! Venkatu, you said me to "// end the operation". How can i do that? How to "End" the operation. I don't want to check on every button's handler if isAuthorizedUser(). I want to check only once ! I want a central check only once in PageLoad event. Do you know any possible central-based solution to check only once if isAuthorizedUser()? P.S. I'm reading your article now to see the AJAX solution...
Posted to
Web Forms
(Forum)
by
MinimalTech
on 7/20/2009
Re: How to clear aspx markup code dynamically on code behind?
How to move them in code behind?
Posted to
Web Forms
(Forum)
by
MinimalTech
on 7/19/2009
Re: How to clear aspx markup code dynamically on code behind?
Any solution?
Posted to
Web Forms
(Forum)
by
MinimalTech
on 7/10/2009
How to clear aspx markup code dynamically on code behind?
Hello! I have a simple problem! I have a Test.aspx and a Test.aspx.vb pages. In Test.aspx page, i have an <asp:Table>, some text, some buttons and some other controls. When the page_load event is raised and when x = 0 , i want to clear the output markup code (clear <asp:Table>, text, buttons and others) and show to the user a blank page. How can i do that? How can i clear the html-markup-aspx output by code behind in VB? Note that i'm using MasterPage. Test.aspx uses the MasterPage
Posted to
Web Forms
(Forum)
by
MinimalTech
on 7/9/2009
Filed under: aspx, clear, buffer, markup
Re: How to clear aspx markup code dynamically on code behind?
yes, thank you but i've already know that. I know that i can do that for ex. by using an asp:panel and set visible=true or false, depending on my needs. But i don't want that! I want way/solution to do that by clearing the output. I want something like Response.Clear() or Page.InnerHtml.clear() or something simillar to clear the Test's.aspx code dynamically and returns nothing (blank file)... -OR- I want a way to clear the "ContentPlaceHolder2" that loads that text inside the
Posted to
Web Forms
(Forum)
by
MinimalTech
on 7/9/2009
Re: How to clear aspx markup code dynamically on code behind?
System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)
Posted to
Web Forms
(Forum)
by
MinimalTech
on 7/9/2009
Re: how do i get the javascript value i got and use it in vb.net?
Terrific solution! NC01, you 're the best in JS and Client-Side developing! That's one of my problems too. I used to solve these issues by using "hidden" variables and then reading them from aspx.vb codefile. But now, i got the rigth way to do this via Javascript. Thank you! Greetings my friend!
Posted to
Client Side Web Development
(Forum)
by
MinimalTech
on 6/30/2009
Re: How to define a variable
Hello khparhami , if i understand well, your proble is that your public values are NULL after you press the first button. If this is really your problem, then the "NULL" values resulted due to the postback event. To fix this, after the execution of code of btnFetch_Click, continue by store the String variables in hidden control: 1st) put this in aspx code: <asp:HiddenField ID="hidden_ARP_CODE" runat="server" value="" /> 2nd) write in C# after the "
Posted to
Getting Started
(Forum)
by
MinimalTech
on 6/27/2009
Re: change calendar control text
Hi, read these articles: http://michaelsync.net/2006/11/06/aspnet-calendar-control-and-yahoouicalendar http://blogs.technet.com/monicaboris/archive/2004/02/16/74482.aspx they should help you...
Posted to
Custom Server Controls
(Forum)
by
MinimalTech
on 6/27/2009
Page 1 of 18 (173 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