|
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
|
|
|
|
|
ballameharmurali wrote: It is webgrid but not datagrid or gridview.
What is webgrid ? i never used it is ASP control ?
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... "
|
|
|
|
|
it is one of the tool for connecting to database.
ok byee
|
|
|
|
|
hello friends...
i m facing problems, while appending a file with (.txt) extention on server. I have a textarea on in a web page, user types some text and clicks save button. and the text in textarea must be replaced with the text in file on server named ( lets say mytextfile.txt).
i dont know any hint of how can i achieve this task... any help?
:- Rashid Ali -:
|
|
|
|
|
Its better to search on google first then ask if you didn't find anything Google is your best friend
Let it be
Use TextWriter to write into text file use streamWriter class to open the file
in the constructor of the streanWriter pass 2 parameters path and bool true or false to append the text to file like this
TextWriter textwriter = new StreamWriter("Path of mytextfile.txt", true);
textwriter.WriteLine(TextArea.Text.ToString()):
textwriter.Close();
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... "
|
|
|
|
|
StreamWriter write = File.AppendText("path");
write.Write("blah blah");
Hope it helps...
|
|
|
|
|
HI All
I have developed a site in English using asp.net 2.0. now the requirement is that i have need to launch the site in other language like the Swedish, Norse, Deutsch etc.
I have a master page which content the dropdownlist for the different languages. i want to change the all content( static and dynamic both content) of the site along the user selected language.
Please help..
Thanks in advance.
With Regards,
Srinandan..
|
|
|
|
|
Hi,
Do Search on "Localization", "Globalization", "Resource Files" and "Satellite Assemblies"
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Thank for reply,
I have worked like these problem using the localization. using localization only we can change the server control language not the whole page mean static content.
Regards,
Srinandan..
|
|
|
|
|
Hi,
Its obvious that static content u can not modify from the code coz u have hardcoded those things.
The contents which u want to modify as per the language selection should be loaded dynamically.
There is no other way.
Or
You can make as separate pages for each of the language which is not an advisable option so I would not suggest that.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Thanks again.
I suppose it not good to load the static contents in dynamic way.
Actually i suppose once we change the culture on the page level then the all content should goes under that culture. so the static text should also change along that language.
With Regards,
Srinandan..
|
|
|
|
|
Hi,
I doubt u can achieve this without using server controls and localization.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|