|
|
Check the Page_Load event. Usually when the button click is delayed it is because of something running outside of If Not IsPostBack .
Cleako
|
|
|
|
|
Have you set validation group setting on all validators and save button? Sounds like the validator is still running on the cancel button which presumably you dont want to happen because the user has pressed cancel so the textbox values wont be used.
The validation occurs when focus is taken of off the control to validate. So if you fill in an unvalidated control and then click on save, the validation event only occurs then. This also prevents the buttons click event from occurring and going back to the server. Therefore you must press the button again to continue
|
|
|
|
|
I have a report that I created in crystal reportss and imported in visual studio.net 2003. I am using Crystal reports version7. The report displays only when i save the data with report in Crystal report.
If i deactvate that savedata with report option it is giving an error "Logon Failed".If use that savedata with report, the data in the report is old and out of date. What changes i have to make for this???
The code i have given for this is
On the page load------->
Try
dbconnection()
Dim rpt As ReportDocument = New ReportDocument
CrystalReportViewer1.DisplayGroupTree = False
rpt.Load(Server.MapPath("rptCentre.rpt"))
CrystalReportViewer1.ReportSource = rpt
CrystalReportViewer1.DataBind()
Catch ex As Exception
CrystalReportViewer1.Visible = False
Response.Write(ex.Message)
Finally
con.Close()
End Try
What might be the reason for this type of error??Give me an idea
Thanks in advance
Regards
kissy
kissy
|
|
|
|
|
provide your database info
//set the database loggon information.
//**Note that the third parameter is the DSN name
// and not the Database or System name
reportDocument.SetDatabaseLogon("pchitriv", "Windows2000",
"TestDB_DSN", "testDB", false);
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi.
I need to add the following line to the Http Header of a request to a web service:
"Accept: application/dime"
Do you have any suggestion on how to achieve that?
Very important: I use WSE 2.0.
Thanks in advance.
|
|
|
|
|
The follwing code authenticates properly from my computer, but when deployed on www.testdomain.com it doesnt authenticate properly with mail.testdomain.com. The admin of the server said said my problem was because they use Pop-before-SMTP authentication... Is that not what I'm doing here? Or could something else be causing this problem?
<br />
<br />
MailMessage message = new MailMessage("mailer@testdomain.com", "testreciever@gmail.com", "feedback", "WOOT!");<br />
<br />
SmtpClient mailClient = new SmtpClient("mail.testdomain.com");<br />
<br />
mailClient.Port = 25;<br />
mailClient.UseDefaultCredentials = false;<br />
mailClient.Credentials = new NetworkCredential("mailer@testdomain.com", "testpasswd");<br />
<br />
mailClient.DeliveryMethod = SmtpDeliveryMethod.Network;<br />
mailClient.Send(message);<br />
message.Dispose();<br />
<br />
Thanks in advance, Curt
|
|
|
|
|
|
I replaced my code with the System.Web.Mail version and still have the exact same problem... Im beginning to think maybe somehow the web server is being blocked by a router or something.
New Error. (System.Web.Mail)
<br />
The message could not be sent to the SMTP server. The transport error code was 0x800ccc7c. The server response was 530 PLESK.home ESMTP MailEnable Service, Version: 1.95-- denied access at 02/21/07 20:37:50<br />
Old Error. (System.Net.Mail)
<br />
The SMTP server requires a secure connection or the client was not authenticated. The server response was: PLESK.home ESMTP MailEnable Service, Version: 1.95-- denied access at 02/21/07 21:12:25<br />
|
|
|
|
|
I searched for the transport error code in the New Error message and it seems that my host must be blocking their own webserver IP address
here
|
|
|
|
|
Are you sure you need to Authenticate? Sometimes depending on your setup you can just do:
MailMessage message = new MailMessage("mailer@testdomain.com", "testreciever@gmail.com", "feedback", "WOOT!");
SmtpClient mailClient = new SmtpClient("mail.testdomain.com");
mailClient.Send(message);
message.Dispose();
If you do need to Authenticate, have you tried code like:
mailClient.Port = 25;
mailClient.UseDefaultCredentials = true;
Hope that helps.
Ben
|
|
|
|
|
Here's one for the hall of stupid! I changed the domain to "localhost" instead of "mail.testdomain.com" ...
Wish they would have said that the web and mail server were the same machine!
|
|
|
|
|
Well why didnt you say so the first time??? I could have helped you out more!
CleAkO
|
|
|
|
|
hi..
how is it better to save user data like user name,email,etc in sessons or cookies?comparing both security and performance issues.
generally is it ok to store the data which is used in all pages at session variables and remaining data in cookies or how to decide about it.
suggestions or on Any link which helps me to decide about this is also welcom
thnks for help in advance
-- modified at 6:44 Wednesday 21st February, 2007
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
Cookies are not secure, generally speaking session variables are. If you have sensetive data to be stored use the session, and make sure the session data is stored server-side.
Using cookies will reduce the memory footprint of your application on the server, but will add more data for the user to download. Its a tough question if you have large amounts of data to store - who takes the hit, user or server? I'd normally opt for the server (sessions), its easy to throw RAM at a machine, not as easy to extend users patience while a page downloads.
|
|
|
|
|
hi..
thanks for the suggestion...
if you know any links for also pls suggest .
can anyone explain in detail ...
thnks in advance
-- modified at 9:46 Wednesday 21st February, 2007
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
I will try to explain you in more details.
Session Vs Cookies
1) Session objects are stored in server memory e.g IIS memory on the other hand cookies stored at client machine.
2) Now when it is stored at client machine then we can have some concerns like
security, cookieless browser, user delete the cookies etc...
3) Issues with Session is, if your server goes down then you loose the session value if you are using inproc session mgt.
4) Session can not be used in case of web farming (Load balancing)
SO now it is upto you as application arch, where you want to store....And if you need more information then google it...Session Vs Cookies....
Thanks
Amit
|
|
|
|
|
thanks for reply ...its very clear
its new thing i learnt that " session cannot be used in webfarming "<--can i know why? then only way to solve the issue then is to use cookies?
i want to make my question once again clear that i am asking when to use what ,
may be some realtime scenarios if possible or what tradeoff or tips we can use for making a balanced application .maybe like what data can be used for sessions data and what data can be used for storing in cookies?
anyone more who want to share your views more about when to use cookies and when to use sessions are please welcome to write it down here......
thnks for your effort and time in advance
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
"may i know the life cycle of web server control"
with regards
ravi kiran
|
|
|
|
|
|
|
hi all ,
i have need to get the pdf file from the byte[].
byte[] bytePdf = _objCashier.CreateRaiseCCLimitPDF("username");
now i have need to lounch the pdf file from the aspx page.
please help.
Thanks in advance
Srinandan
|
|
|
|
|
What do you mean with 'launch' the pdf file?? Do you want to open it?? And do you want to open it server side, or client side??
I reckon you store the byte[] in a file and link to that file using a hyperlink...
|
|
|
|
|
thanks.
lauch mean i have to provide the option to save or open the pfd file which will create from the byte[].
Srinandan
|
|
|
|
|
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.Buffer = true;
Response.ContentType = "application/pdf";
Response.BinaryWrite(bytePdf);
Response.Flush();
Response.End();
-- modified at 6:00 Wednesday 21st February, 2007
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|