Click here to Skip to main content
15,891,253 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCancel Postback of Textbox if it is blank Pin
meeram39512-Jun-09 4:01
meeram39512-Jun-09 4:01 
AnswerRe: Cancel Postback of Textbox if it is blank Pin
ToddHileHoffer12-Jun-09 6:42
ToddHileHoffer12-Jun-09 6:42 
Questionhow to see controls from another page in asp.net Pin
LucBite12-Jun-09 3:56
LucBite12-Jun-09 3:56 
AnswerRe: how to see controls from another page in asp.net Pin
Colin Angus Mackay12-Jun-09 4:14
Colin Angus Mackay12-Jun-09 4:14 
General[Message Deleted] Pin
LucBite13-Jun-09 1:47
LucBite13-Jun-09 1:47 
GeneralRe: here is my scenario Collin Pin
LucBite13-Jun-09 2:03
LucBite13-Jun-09 2:03 
AnswerRe: how to see controls from another page in asp.net Pin
Vimalsoft(Pty) Ltd13-Jul-09 3:58
professionalVimalsoft(Pty) Ltd13-Jul-09 3:58 
QuestionIs it possible to kill all events for a control? Pin
thomasa12-Jun-09 3:30
thomasa12-Jun-09 3:30 
I have a page with a bunch og events for buttons and textchanged.

At page load I want to validate an object I have added to Chash, an if it fails I
want to kill the event that the user has triggerd, something like
protected void Page_Load(object sender, EventArgs e)
{
if (MyChachItem == null)
{
// Kill the event so it is not triggerd 
MyAntemPlaceHolder.Visible = true;
ShowMessage(MyAntemPlaceHolder, "Can not continue, please click on the list button and start over.")                   
}
}


So the user clicks a button (btnSave) on the page, that triggers the btnSave_Click(..) event.
Thus, by the time the MyChachItem is null, as validate at Page_Load, and within that if() I want to kill the btnSave_Click(..) event, so it isn't triggerd.

I think it's possible to use somthing like:
btnSave.Click -= btnSave_Click(..)

But my problem is that the MyHugeWebControl.ascx contains a lot of controlers with different events,
and I was wondering if there where something I could do to kill all the events within that control.

Thanks
Thomas
QuestionGridView - NullReferenceException Pin
ffowler12-Jun-09 2:39
ffowler12-Jun-09 2:39 
AnswerRe: GridView - NullReferenceException Pin
N a v a n e e t h12-Jun-09 2:55
N a v a n e e t h12-Jun-09 2:55 
GeneralRe: GridView - NullReferenceException Pin
ffowler12-Jun-09 3:02
ffowler12-Jun-09 3:02 
AnswerRe: GridView - NullReferenceException Pin
saanj12-Jun-09 3:02
saanj12-Jun-09 3:02 
AnswerRe: GridView - NullReferenceException Pin
Abhijit Jana12-Jun-09 3:06
professionalAbhijit Jana12-Jun-09 3:06 
QuestionTable Controls clear Pin
kanadoss12-Jun-09 2:08
kanadoss12-Jun-09 2:08 
AnswerRe: Table Controls clear Pin
saanj12-Jun-09 2:22
saanj12-Jun-09 2:22 
GeneralRe: Table Controls clear Pin
kanadoss12-Jun-09 2:33
kanadoss12-Jun-09 2:33 
GeneralRe: Table Controls clear Pin
N a v a n e e t h12-Jun-09 2:50
N a v a n e e t h12-Jun-09 2:50 
GeneralRe: Table Controls clear Pin
saanj12-Jun-09 2:53
saanj12-Jun-09 2:53 
QuestionASP.Net Server control Pin
Amit Patel198512-Jun-09 1:55
Amit Patel198512-Jun-09 1:55 
AnswerRe: ASP.Net Server control Pin
saanj12-Jun-09 2:19
saanj12-Jun-09 2:19 
AnswerRe: ASP.Net Server control Pin
Abhijit Jana12-Jun-09 3:20
professionalAbhijit Jana12-Jun-09 3:20 
QuestionGenerating word document and saving to a particular location in c#.net Pin
YazhiniP12-Jun-09 1:04
YazhiniP12-Jun-09 1:04 
AnswerRe: Generating word document and saving to a particular location in c#.net Pin
Christian Graus12-Jun-09 1:15
protectorChristian Graus12-Jun-09 1:15 
AnswerRe: Generating word document and saving to a particular location in c#.net Pin
YazhiniP12-Jun-09 1:47
YazhiniP12-Jun-09 1:47 
Questionerror is \\The parameterized query '(@img_type nvarchar(4000),@img_stream nvarchar(4000))INSERT INTO' expects the parameter '@img_type', which was not supplied. Pin
jigneshp2512-Jun-09 1:03
jigneshp2512-Jun-09 1:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.