Click here to Skip to main content
16,009,176 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWhich is best: Attached DB (App_Data) and Local DB (MSSQLEXPRESS), Precompiled or XCopy? Pin
tunsten23-Feb-10 21:41
tunsten23-Feb-10 21:41 
Questionhi selvamglobal, are u there? i hav a question for u Pin
diyaa_0823-Feb-10 21:35
diyaa_0823-Feb-10 21:35 
QuestionHow to Save the webpage in pdf format using dotnet1.1 Pin
K.Safvi23-Feb-10 19:12
K.Safvi23-Feb-10 19:12 
AnswerRe: How to Save the webpage in pdf format using dotnet1.1 Pin
Gaurav Dudeja India23-Feb-10 19:16
Gaurav Dudeja India23-Feb-10 19:16 
GeneralRe: How to Save the webpage in pdf format using dotnet1.1 Pin
K.Safvi23-Feb-10 19:42
K.Safvi23-Feb-10 19:42 
QuestionCapturing Radio button and dropdown value in postback Pin
deltadmz23-Feb-10 18:59
deltadmz23-Feb-10 18:59 
AnswerRe: Capturing Radio button and dropdown value in postback Pin
Gaurav Dudeja India23-Feb-10 19:05
Gaurav Dudeja India23-Feb-10 19:05 
QuestionDisabling the Submit after once Click in MVC asp.NEt application Pin
Sandeep Akhare23-Feb-10 18:40
Sandeep Akhare23-Feb-10 18:40 
Questionaspnet_wp.exe consume al memory, then it's too slow on runtime Pin
yetrus23-Feb-10 12:11
yetrus23-Feb-10 12:11 
AnswerRe: aspnet_wp.exe consume al memory, then it's too slow on runtime Pin
Kannan Ar23-Feb-10 17:31
professionalKannan Ar23-Feb-10 17:31 
GeneralRe: aspnet_wp.exe consume al memory, then it's too slow on runtime Pin
yetrus24-Feb-10 0:31
yetrus24-Feb-10 0:31 
Questionlogin Pin
arkiboys23-Feb-10 11:22
arkiboys23-Feb-10 11:22 
AnswerRe: login Pin
Jörgen Andersson23-Feb-10 11:55
professionalJörgen Andersson23-Feb-10 11:55 
GeneralRe: login Pin
arkiboys23-Feb-10 12:40
arkiboys23-Feb-10 12:40 
GeneralRe: login Pin
Jörgen Andersson23-Feb-10 19:15
professionalJörgen Andersson23-Feb-10 19:15 
GeneralRe: login Pin
arkiboys24-Feb-10 11:33
arkiboys24-Feb-10 11:33 
QuestionConvert decimal number into Italian formate while export to excel. Pin
attalurisubbu23-Feb-10 8:47
attalurisubbu23-Feb-10 8:47 
AnswerRe: Convert decimal number into Italian formate while export to excel. Pin
Jörgen Andersson23-Feb-10 11:17
professionalJörgen Andersson23-Feb-10 11:17 
GeneralRe: Convert decimal number into Italian formate while export to excel. Pin
attalurisubbu24-Feb-10 3:21
attalurisubbu24-Feb-10 3:21 
GeneralRe: Convert decimal number into Italian formate while export to excel. Pin
Jörgen Andersson24-Feb-10 3:40
professionalJörgen Andersson24-Feb-10 3:40 
Questioncalling web method in asp.net web page Pin
dalila y23-Feb-10 8:43
dalila y23-Feb-10 8:43 
Hi everyone,

I have the following web method as shown below. Can anyone tell me how can i call this web method in an asp.net webpage? The result that i want to obtain from calling this web method would redirect me to another web page. thanks in advance.

[WebMethod]
public int DoIT()
{

// Get the hostname
string myHost = System.Net.Dns.GetHostName();

string connect = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=C:\\inetpub\\wwwroot\\Request\\App_Data\\TV.mdb";
string query = "SELECT COUNT(IPAddress) FROM Request WHERE IPAddress = ?";
int result = 0;

using (OleDbConnection conn = new OleDbConnection(connect))
{
using (OleDbCommand cmd = new OleDbCommand(query, conn))
{
cmd.CommandType = CommandType.Text;
cmd.Parameters.AddWithValue("IPAddress", myHost);

conn.Open();
result = (int)cmd.ExecuteScalar();
}
}

return result;

}
AnswerRe: calling web method in asp.net web page Pin
mrMercury23-Feb-10 8:48
mrMercury23-Feb-10 8:48 
AnswerRe: calling web method in asp.net web page Pin
Sandeep Mewara21-Mar-10 21:09
mveSandeep Mewara21-Mar-10 21:09 
QuestionLossing Sessions and static varaibles becoming null [modified] Pin
Satish - Developer23-Feb-10 3:02
Satish - Developer23-Feb-10 3:02 
AnswerRe: Lossing Sessions and static varaibles becoming null Pin
Parwej Ahamad23-Feb-10 4:58
professionalParwej Ahamad23-Feb-10 4:58 

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.