|
Thanks Very much, It worked fantastic!.Thanks once againe
I have one more question. Now i am preparing verious master. some of then are very similar. Like branch master(which has branch name and branch description),
Unit master(which has unit code and unit description). So i wanted to make one form and based on menu item selection(Bcoz i used asp:menu).so by using navigationurl. i redirect it to corresponding web Page.
Is My idea is correct. Or i have to do it other way.
Please help.
Anyway thanks you once againe
regards
imran khan
|
|
|
|
|
sorry man,
i don't work much on ASP, my basic work is C# but i have passed through ASP for my own knowledge only.
I am not sure about the answer i will give you but i think that what u said is logic and will work.
Hope u get the best out of it.
Note: for next time please post the ASP questions in the ASP MessageBoard
Good Luck
|
|
|
|
|
Actuaaly in page load event other file , i just want to fetch the selected item menu in other page. that is i have form called home.aspx where i have defined menu.based on selected item menu. i will write code in(C#) other form
master.aspx.cs So i want to fetch selected menu item in master.aspx.cs how i can do that that i want to know.
thanks
regards
imran khan
|
|
|
|
|
Ur in the wrong forum. Look in the asp.net forum, I have replied there to a similar question there.
BTW, Alerts \ Confirm are used to pop up messages.
Regards,
Bhupi Bhai.
|
|
|
|
|
Exactly right. You can not pop up MessageBox.Show("") in ASP.NET. You will get this error. "Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.".
You should only use Alert or Confirm. Especially in your case Confirm should work fine.
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
u are wrong
you can use the messagebox.show
follow what i wrote in the previous post(reply) and u will see how.
|
|
|
|
|
Try using this.
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Windows.Forms;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
MessageBox.Show("Hi");
}
}
Main thing is how MesageBox.Show("") will generate a dialog box at client side? MessageBox object is very specific to desktop. If you have tried the same I'll like to see that code.
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
Wow, is it ??
I too would like to c the code.
Regards,
Bhupi Bhai.
|
|
|
|
|
you are idiot
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
What??????
Are you talk to me ?
|
|
|
|
|
|
what u are writing. quickSmart code is absolutly write and It worked. thacks quickSmart.
regards
imran khan
|
|
|
|
|
Good !!
So ur happy, now let's close this topic.
Thanks
Regards,
Bhupi Bhai.
|
|
|
|
|
are you nuts ? how its working
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
just do as i wrote and u will see that it worked
now all know who is the idiot here.
a**hole
|
|
|
|
|
your welcome
let us skip what idiots like Tamimi - Code write in this blog.
Some people think that they know everything but actually they know nothing cause they don't accept a new thing to learn.
take care,
happy to help at any time
|
|
|
|
|
man maybe iam idiot.
but did exactly what you wrote, and this what i got.
-------------
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification
-------------
so what si this !!!!
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
hi,
i haven't seen that error before, but i don't write things just to add a post to my score. I write things when i am sure that it will work. And a proof for that is what the real poster wrote that it worked with him as it worked with me several times before.
see what is really giving that error.
debug it and see at what line it is going
|
|
|
|
|
man jdkulkarni also metion my error !!
realy i don't think so.....................
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
i checked that again now and it worked fine
i don't know what is wrong with your code. What version of VS are you using
mine is VS 2005
Look, just follow these steps:
1) create a new web application
2) go to the designer
3) add a button
4) double click the button
5) click on the project in the main menu.
6) add reference
7) in the .NET tab go to the System.Windows.Forms and click add
8) go to the source code of ur project.
9) add this name space using System.Windows.Forms
10) in the onClick event of the button write:
MessageBox.Show("quiteSmart is very smart ");
and it will work
|
|
|
|
|
man please stop kidding with me, that what i did exactly.
i tried it on VS2005 and VS2003 and its working and it gives the same error.
are you running under windows ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
yea i am running under windows XP SP2
I told u what i know. Sorry if it is not working
|
|
|
|
|
VS2003 does not support this and I am sure VS2005 will also not !!
Regards,
Bhupi Bhai.
|
|
|
|
|
me and many other's for example the first poster tried it and it works so don't be sure of something u didn't try
|
|
|
|
|
now we need a judge !!
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|