|
In a web project references are placed in the bin folder. I'm not sure if just adding/deleting files from there will work though, you need to use the references part of the project properties to manage them.
|
|
|
|
|
Thanks for your Quick Response.
If i would like to add system.data dll then i can add it by add reference by right clicking the project in solution explorer.
My questions are
1. where that references has been added and how can view it. (In VS 2003 we can view them in the references folder in the same project in solution explorer)
2. Suppose i would like to remove that system.data dll. How can remove it (In VS 2003 by right click on the dll name we can remove it which is located in the references folder
pls help me
Thanks in advance
|
|
|
|
|
It is Bin folder i think right click to your project and click on Add reference
and add the dll you wanted to add it will get added in bin folder
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks for your Quick Response.
If i would like to add system.data dll then i can add it by add reference by right clicking the project in solution explorer.
My questions are
1. where that references has been added and how can view it. (In VS 2003 we can view them in the references folder in the same project in solution explorer)
2. Suppose i would like to remove that system.data dll. How can remove it (In VS 2003 by right click on the dll name we can remove it which is located in the references folder
pls help me
Thanks in advance
|
|
|
|
|
hi all,
i need to convert each page of pdf document into separate image file...
any links or reference?
pls help
thanx in advance.
|
|
|
|
|
|
--------------------------------------------------------------------------------
Hi, I found an error when I try to decrypt an encrypted array of bytes, but the following error occurs:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.Cryptography.CryptographicException: Bad Data.
|
|
|
|
|
I think you r passing worng data. Check your encriptio decription algo again
|
|
|
|
|
Hi in datagrid i given some of the columns visible=false...,
But those columns in runtime when i need that time it want view...,
How to do that plz tell me...,
Magi
|
|
|
|
|
Hi,
dg.Columns[colindex].visible = true;
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi, All
I have a critical problem. I have created a table which is completely dynamic having some textboxs, checkboxs, dropdowns etc. It contains data from database. I stuck when I click on Edit and then Update. The Update button's event handler is not able to access modified data rather it is accessing the old data. I am using c# and asp.net 2.0. I am using user control which contain this table. Is there any way to retrieve modified data from the textbox.
Plz Help me out..
Thanks
Sapan
If u don't succeed then try and try again, because man are born to succeed not to fail.
|
|
|
|
|
first you must save your changed data to session or some other way in page.
Then in update method use that value so you will get updated value.
|
|
|
|
|
Hi
Friends I had downloaded the control toolkit from Microsoft site how to use it in my
AjaxEnabledwebsite help me
came out of hardwork
|
|
|
|
|
More videos and examples are available in this site..
Take a time to watch the videos and do it
http://ajax.asp.net[^]
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi kumarjammula,
First of all install this toolkit. You will get new panel in Toolbox. You need to select Ajax enabled website when u will create a new website. Suppose you have one textbox and a button which generate postback event. You need put update panel from the Ajax panel in your webform. Then put the Textbox inside the update panel. write some code which chages the text of the textbox. You will relize not entire the web is being refreshed rather only update panel. For more information go for Google.
Thanks
Sapan
Hi all go for this...
|
|
|
|
|
Thanq for suggesting me...
came out of hardwork
|
|
|
|
|
I need to bypass the print process of crystal report. With so much searching over the net I found these codes. Its printing in VS 2005 Team Edition for Developers but when I publish it to the IIS 5.1 its not printing. Any tips?
using System.Web.UI;using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
public partial class _Default : System.Web.UI.Page
{
private ReportDocument northwindCustomersReport;
private void ConfigureCrystalReports()
{
northwindCustomersReport = new ReportDocument();
string reportPath = Server.MapPath("CrystalReport2.rpt");
northwindCustomersReport.Load(reportPath);
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.ServerName = "servername";
connectionInfo.DatabaseName = "dbname";
connectionInfo.UserID = "userid";
connectionInfo.Password = "password";
SetDBLogonForReport(connectionInfo,northwindCustomersReport);
CrystalReportViewer1.ReportSource = northwindCustomersReport;
northwindCustomersReport.PrintToPrinter(1, false, 1, 1);
}
private void Page_Init(object sender, EventArgs e)
{
ConfigureCrystalReports();
}
private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
{
Tables tables = reportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
{
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
}
}
}
|
|
|
|
|
What was d error you r getting?
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
it just doesnt print... no error message on the browser. thanks
|
|
|
|
|
i am storing cookie object which contains user name and password in it. i am storing both in encrypted format using RSA algorithm .code is like that
Dim myCookie As HttpCookie
myCookie = New HttpCookie("myCookie")
Response.Cookies.Remove("myCookie")
Response.Cookies.Add(myCookie)
Dim rsa As System.Security.Cryptography.RSACryptoServiceProvider = New System.Security.Cryptography.RSACryptoServiceProvider
Dim struser As String = txtusername.Text.ToString
Dim ciphertext() As Byte
ciphertext = rsa.Encrypt(Encoding.Unicode.GetBytes(struser), False)
Dim strpwd As String = txtPWD.Text.ToString
Dim ciphertext1() As Byte
ciphertext1 = rsa.Encrypt(Encoding.Unicode.GetBytes(strpwd), False)
myCookie.Values.Add("user", System.Text.Encoding.Unicode.GetString(ciphertext))
myCookie.Values.Add("pass", System.Text.Encoding.Unicode.GetString(ciphertext1))
Dim deathDate As DateTime
deathDate = DateTime.Now.AddDays(1)
Response.Cookies("myCookie").Expires = deathDate
Above code is in logon button when remember me check box is clicked.
Now in page load event, i want to get back cookie object's value.
Dim myCookie As HttpCookie
myCookie = New HttpCookie("myCookie")
Dim user() As Byte
Dim pwd() As Byte
user = Encoding.Unicode.GetBytes(cookie.Values("user"))
Dim DecryptedStrAsByt() As Byte
DecryptedStrAsByt = rsa.Decrypt(user, False)
Dim DecryptedStrAsString = System.Text.Encoding.Unicode.GetString (DecryptedStrAsByt)
Got exception:
Exception Details: System.Security.Cryptography.CryptographicException: Bad Data.
on this code lin:
DecryptedStrAsByt = rsa.Decrypt(user, False)
please provide guidance why it gives exception on this line
|
|
|
|
|
check whether you have data in "user"
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
I have tried to get back cookie's value in logon button and it is giving me perfect value but same is not working at page load event.
The added code in logon button's click event
Dim cookie As HttpCookie
cookie = Request.Cookies.Get("myCookie")
Dim user() As Byte
user = Encoding.Unicode.GetBytes(Cookie.Values("user"))
Dim DecryptedStrAsByt() As Byte
DecryptedStrAsByt = rsa.Decrypt(user, False)
Dim DecryptedStrAsString = System.Text.Encoding.Unicode.GetString(DecryptedStrAsByt)
Response.Write(DecryptedStrAsString)
and it is giving perfect value. but above code is giving me error at page load why?
|
|
|
|
|
Have you rewritten the cookie value again?
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
No. Cookie value is written in only logon button's click event. Not any other place
|
|
|
|
|
hello everyone,
I have a doubt regarding the WebGrid.
It is webgrid but not datagrid or gridview.
I have webgrid in an .aspx form.I want to add a
textbox column at the footer when the page loads.
Can anybody plz for me in this code.
regards,
murali..
murali
|
|
|
|