Click here to Skip to main content
15,887,477 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
GeneralRe: Lossing Sessions and static varaibles becoming null Pin
Satish - Developer23-Feb-10 20:39
Satish - Developer23-Feb-10 20:39 
QuestionOrder by Pin
Qasim198423-Feb-10 2:48
professionalQasim198423-Feb-10 2:48 
AnswerRe: Order by Pin
R. Giskard Reventlov23-Feb-10 5:09
R. Giskard Reventlov23-Feb-10 5:09 
GeneralRe: Order by Pin
Qasim198423-Feb-10 5:13
professionalQasim198423-Feb-10 5:13 
GeneralRe: Order by Pin
R. Giskard Reventlov23-Feb-10 5:24
R. Giskard Reventlov23-Feb-10 5:24 
GeneralRe: Order by Pin
Qasim198423-Feb-10 5:29
professionalQasim198423-Feb-10 5:29 
Questionjava date validation Pin
Member 395625723-Feb-10 2:22
Member 395625723-Feb-10 2:22 
AnswerRe: java date validation Pin
R. Giskard Reventlov23-Feb-10 2:27
R. Giskard Reventlov23-Feb-10 2:27 
Questionlogin control - aspnet_regsql.exe Pin
arkiboys23-Feb-10 1:49
arkiboys23-Feb-10 1:49 
AnswerRe: login control - aspnet_regsql.exe Pin
Not Active23-Feb-10 1:55
mentorNot Active23-Feb-10 1:55 
GeneralRe: login control - aspnet_regsql.exe Pin
arkiboys23-Feb-10 2:30
arkiboys23-Feb-10 2:30 
GeneralRe: login control - aspnet_regsql.exe Pin
Not Active23-Feb-10 5:38
mentorNot Active23-Feb-10 5:38 
QuestionMaking url clickable in textbox Pin
sumit703423-Feb-10 0:38
sumit703423-Feb-10 0:38 

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.