Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

we can able to display a MessageBox in asp .net without
using any script langages?

Answer Posted / rathika.k

using System;
using System.Runtime.InteropServices;

namespace ExternKey
{
class Class1
{
[DllImport("User32.dll")]
public static extern int MessageBox(int h,
string m, string c,int type);
static void Main(string[] args)
{
string mystring;
Console.Write("Enter Your
Message : ");
mystring = Console.ReadLine();
MessageBox(0,mystring,"Message",0);
}
}
}

Try like this. It will workout without using any Script
Language.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the difference between viewstate and sessionstate?

1127


Why select Web API?

1046


Name the tools or API for developing or testing web api?

997


there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?

3142


Tell me the code snippet to show how we can return 404 errors from HttpError?

1328


Explain the asp.net mvc folder conventions? : asp.net mvc

1039


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

2112


What is session authentication?

1039


What is http post and http get?

1065


What are the cookies types in asp.net?

1064


Can we store object in viewstate?

1018


What r the asp.net list controls and difference between them?

1084


What language does asp.net use?

1049


How is mvc different from asp.net? : Asp.Net MVC

1100


Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?

2524