423,498 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,498 IT Pros & Developers. It's quick & easy.

Cannot assign to 'Redirect' because it is a 'method group'

P: n/a
Hi guys,

Sorry but i am new to ASP.Net and C# so please bear with my pleb

I have the following in a C# class which is being inherited by my
ASP.Net page.

In this class i have an event for a button i have on the web page:
protected void btnAuthorise_Click(object sender, EventArgs e)
Page.Response.Redirect = "Authorisation.aspx?rqNo=";

When i attempt to build the website i am getting the error:
Cannot assign to 'Redirect' because it is a 'method group'

Can someone please explain to me this message? I have searched the
internet for this but i only got one forum which answered this question
but it was in Italian :(

Kind regards,

Mar 27 '06 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Hello Chino,

with my limited knowledge in C# I can still notice a small syntax error
in your response line,
after looking it up Im certain it has to be:



Mar 27 '06 #2

P: n/a
Thank you for pointing that out! I can't believe i did that.

Thanks for your help =]

Kind regards,

Mar 27 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.