Click here to Skip to main content
15,899,314 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionChange Gridview ImageButton and back Pin
GianFiume19-Nov-07 5:03
GianFiume19-Nov-07 5:03 
AnswerRe: Change Gridview ImageButton and back Pin
SABhatti19-Nov-07 9:46
SABhatti19-Nov-07 9:46 
GeneralRe: Change Gridview ImageButton and back Pin
GianFiume19-Nov-07 21:11
GianFiume19-Nov-07 21:11 
Questioni want the path where the file was saved Pin
jagan12319-Nov-07 3:42
jagan12319-Nov-07 3:42 
AnswerRe: i want the path where the file was saved Pin
pmarfleet19-Nov-07 4:24
pmarfleet19-Nov-07 4:24 
AnswerRe: i want the path where the file was saved Pin
Malcolm Smart19-Nov-07 12:19
Malcolm Smart19-Nov-07 12:19 
Questiondisable button on one webform from other Pin
rocky81119-Nov-07 3:34
rocky81119-Nov-07 3:34 
AnswerRe: disable button on one webform from other Pin
Michael Sync19-Nov-07 4:20
Michael Sync19-Nov-07 4:20 
You should use the Session object or Cache to pass the information between the different forms.

As your example, there is two buttons called "Edit" and "New" on WebForm1. If the user clicks the "New" button, you wanna enable the "Save" button and disable "Edit" button on WebForm2.

then, write the following code in WebForm1

In btnNew_Click() event,

Session["IsNew"] = true;

In btnEdit_Click() event,

Session["IsNew"] = false;


In Page_Load() event of WebForm2 ~

<br />
btnSave.Enabled = Session["IsNew"];<br />
btnUpdate.Enabled != Session["IsNew"];


Note: You should check whether the session is already exist or not.. If this session object is not exist then you will get the error..

Hope it helps..



Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

GeneralRe: disable button on one webform from other Pin
rocky81119-Nov-07 4:56
rocky81119-Nov-07 4:56 
GeneralRe: disable button on one webform from other Pin
Michael Sync19-Nov-07 5:18
Michael Sync19-Nov-07 5:18 
GeneralRe: disable button on one webform from other Pin
rocky81119-Nov-07 5:27
rocky81119-Nov-07 5:27 
Questionhow can i send mails automatically in web application using C# code. Pin
Rajeshwar Code- Developer19-Nov-07 3:06
Rajeshwar Code- Developer19-Nov-07 3:06 
AnswerRe: how can i send mails automatically in web application using C# code. Pin
Michael Sync19-Nov-07 4:09
Michael Sync19-Nov-07 4:09 
GeneralRe: how can i send mails automatically in web application using C# code. Pin
Rajeshwar Code- Developer19-Nov-07 19:06
Rajeshwar Code- Developer19-Nov-07 19:06 
GeneralRe: how can i send mails automatically in web application using C# code. Pin
Michael Sync20-Nov-07 4:50
Michael Sync20-Nov-07 4:50 
GeneralRe: how can i send mails automatically in web application using C# code. Pin
Rajeshwar Code- Developer20-Nov-07 17:49
Rajeshwar Code- Developer20-Nov-07 17:49 
Questionsplit function in stored procedure Pin
Sonia Gupta19-Nov-07 3:01
Sonia Gupta19-Nov-07 3:01 
AnswerRe: split function in stored procedure Pin
Michael Sync19-Nov-07 4:04
Michael Sync19-Nov-07 4:04 
AnswerRe: split function in stored procedure Pin
Gandalf_TheWhite19-Nov-07 19:03
professionalGandalf_TheWhite19-Nov-07 19:03 
QuestionAccessing a particular cells Address on click in a gridview Pin
sangramkp19-Nov-07 2:56
sangramkp19-Nov-07 2:56 
AnswerRe: Accessing a particular cells Address on click in a gridview Pin
SABhatti19-Nov-07 9:43
SABhatti19-Nov-07 9:43 
GeneralRe: Accessing a particular cells Address on click in a gridview Pin
sangramkp19-Nov-07 17:28
sangramkp19-Nov-07 17:28 
GeneralRe: Accessing a particular cells Address on click in a gridview Pin
SABhatti19-Nov-07 18:00
SABhatti19-Nov-07 18:00 
GeneralRe: Accessing a particular cells Address on click in a gridview Pin
sangramkp19-Nov-07 20:17
sangramkp19-Nov-07 20:17 
GeneralRe: Accessing a particular cells Address on click in a gridview Pin
SABhatti20-Nov-07 7:47
SABhatti20-Nov-07 7:47 

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.