|
First You need to nuget. You can download from here http://nuget.org/[^]
After install this Opentheproject >> VisualStudio >> Tools >> LibraryPackageManager>>Select Package Manager Console
from the command window type the command for the package you want to install such as Structuremap,EntityFrameWork etc.The command you got from the link that i have provided earlie
|
|
|
|
|
We are using a web service(asmx) to communicate with service provider.
Problem: We are getting a web exception while sending and receiving response.
Exception Details :
1) Exception Message : The request was aborted: The operation has timed out.
2) Exception Status : timeout
We are getting this timeout status within 40 seconds whereas we have set webrequests timeout property to 180 seconds.
Can anybody please suggest me the solution of this problem??
Vishal
|
|
|
|
|
Double check your time again, the WebRequest class uses timeout in milliseconds, so if you did something like
webRequest.Timeout = 180;
That just means that it will expire in 180 milliseconds and not the expected 180 seconds.
If your time is correct, then check with the server and make sure that the server does not close the connection after sometime without completing the request.
|
|
|
|
|
Thanks for reply friend,
My timeout time is correct, I have set webRequest.Timeout = 180000;
I am getting two types of webExceptions :
1)
Exception Message : The request was aborted: The operation has timed out.
Exception Status : timeout
This timeout happens within 40 seconds, whereas I have set timeout 180 seconds for my webrequest.
2)
Exception Message : The operation has timed out.
Exception Status : timeout
This is normal timeout. It happens after 180 seconds.
|
|
|
|
|
Thanks for reply friend,
My timeout time is correct, I have set webRequest.Timeout = 180000;
I am getting two types of webExceptions :
1)
Exception Message : The request was aborted: The operation has timed out.
Exception Status : timeout
This timeout happens within 40 seconds, whereas I have set timeout 180 seconds for my webrequest.
2)
Exception Message : The operation has timed out.
Exception Status : timeout
This is normal timeout. It happens after 180 seconds.
Problem is in 1st exception case.....
Please tell me the solution to this problem....
|
|
|
|
|
How to fetch facebook wall of a user programatically in .net
|
|
|
|
|
|
hello
i want add checkbox in ever row of flexgrid in mvc.
please help me.
thanks.....
|
|
|
|
|
|
|
thanks but i want add to flexgrid in mvc
flexgrid in mvc is not a server control.it is a html control...
|
|
|
|
|
Hello, I'm a web developer who has worked with PHP and I'm delving into the ASP.Net world. Now how do I remove all the default styling (the inline-css) from these web controls? I can't use !important everywhere, it just seems silly.
|
|
|
|
|
css like width is added when you assign a value to width,
really need to see an example first of what you want to remove.
|
|
|
|
|
what is the benifit of entity faramework
|
|
|
|
|
Please help me How to create web crawler. what are the main things that could build a web crawler.
|
|
|
|
|
Here is the code:
protected void cmdLogin_Click(object sender, EventArgs e)
{
Class1.con = CreateConnection();
string str = "SELECT Ad_Regid from Admin_Profile WHERE Ad_Regid LIKE @TempPasscode";
cmd = new SqlCommand(str, Class1.con);
cmd.Parameters.AddWithValue("@TempPasscode", txtcurrentpwd.Text.Trim());
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
if (dr[4].ToString() == txtcurrentpwd.Text)
{
cmd = new SqlCommand("_insertAdminLogin", Class1.con);
cmd.CommandType = System.Data.CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@AdminType", ddltype.SelectedItem.Text);
cmd.Parameters.AddWithValue("@AdminUsrname", txtuname.Text);
cmd.Parameters.AddWithValue("@AdminPwd", txtconfirmpwd.Text);
cmd.ExecuteNonQuery();
}
else
{
ClientScript.RegisterStartupScript(GetType(), "Warning", "javascript:alert('Temporary Password Does not Match!');", true);
}
}
Sp:
CREATE PROCEDURE [dbo].[_insertAdminLogin]
(
@AdminType VARCHAR(100),
@AdUsrname VARCHAR(12),
@AdminPwd varchar(12)
)
AS BEGIN
INSERT INTO dbo.AdminLogin (AdminType, AdminUsrname, AdminPwd)
VALUES (@AdminType, @AdUsrname, @AdminPwd)
END
}
|
|
|
|
|
Here is the code:
just check ur code this line if (dr[4].ToString() == txtcurrentpwd.Text)
dr[4].ToString() the index value 4 is correct or not.
protected void cmdLogin_Click(object sender, EventArgs e)
{
Class1.con = CreateConnection();
string str = "SELECT Ad_Regid from Admin_Profile WHERE Ad_Regid LIKE @TempPasscode";
cmd = new SqlCommand(str, Class1.con);
cmd.Parameters.AddWithValue("@TempPasscode", txtcurrentpwd.Text.Trim());
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
if (dr[4].ToString() == txtcurrentpwd.Text)
{
cmd = new SqlCommand("_insertAdminLogin", Class1.con);
cmd.CommandType = System.Data.CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@AdminType", ddltype.SelectedItem.Text);
cmd.Parameters.AddWithValue("@AdminUsrname", txtuname.Text);
cmd.Parameters.AddWithValue("@AdminPwd", txtconfirmpwd.Text);
cmd.ExecuteNonQuery();
}
else
{
ClientScript.RegisterStartupScript(GetType(), "Warning", "javascript:alert('Temporary Password Does not Match!');", true);
}
}
Sp:
CREATE PROCEDURE [dbo].[_insertAdminLogin]
(
@AdminType VARCHAR(100),
@AdUsrname VARCHAR(12),
@AdminPwd varchar(12)
)
AS BEGIN
INSERT INTO dbo.AdminLogin (AdminType, AdminUsrname, AdminPwd)
VALUES (@AdminType, @AdUsrname, @AdminPwd)
END
}
modified 9-Jul-13 6:41am.
|
|
|
|
|
I have created xml file with node element and child elelement. I have created asp.net application using VS2008 and am unable to write to that XML file. Its giving already another process is using. Access dinied.
How to do this.
If anybody knows please reply me.
Thanks in advance.
|
|
|
|
|
Do not post your question in different places.
|
|
|
|
|
This question has nothing to do with ASP.NET at all.
|
|
|
|
|
Which is the best data object caching technique in asp.net
among
1. cache class
2. objectcache class
3. enterprise caching block
or some other ?
|
|
|
|
|
Hello Everyone,
I am using asp:menu to build my web site
When i add a new page the menu is displayed vertical like
Mobile->HTC
but ,i want it this way
MOBILE
-------
Samgsun
Nokia
HTC
COMPUTERS
---------
Lenovev
Dell
i.e below my main menu ,it is appearing to the right side
How am i supposed to do it???
|
|
|
|
|
Hi,
my need is very simple, but I'm not able to discover a solution. My gridview has a fixed number of rows and columns and I'd like to change a cell background color when the user click on the cell, without postback.
I appreciate any help.
Thanks.
Michele
|
|
|
|
|
|
Many thanks Vani,
I appreciate your help but i need to change only the cell backcolor and not the complete row backcolor.
Michele
|
|
|
|