|
Hi,
Seen this article already (http://kbalertz.com/306162/Current-Culture-Programmatically-Application.aspx) while trying to figure out everything.
currenly the tag is set to <globalization culture="auto" uiculture="auto"> in the web.config. I am manually changing it by changing the currentthread's culture. this only functions if I have added that culture in the IE language settings.
Otherwise the culture is not changing when I change it from a list. This is what I am confused about. Why would it not change? I should be able to just change the thread's culture and have the same effect without having to change my language settings.
Please advise,
Shrini
|
|
|
|
|
I m using vb.net 2005. I dont want to hard code my connectionstring I want to be able to pass the Database name and teh server name to my connectionstring
any vb.net code will be appreciated.
How do i serach a domain or a network for the servers
t.aransiola
|
|
|
|
|
I created a class which is to declare constant string variables used to store messages shown for the users. But now I heard about the resource file. I am doubt which one is the better. Is there any another better method to store messages to users? Please let me know your valid advice.
Thanks and Regards,
Hogan
|
|
|
|
|
hogan.smith wrote: Is there any another better method to store messages to users?
I never seen a resource file storing messages to user or constants. I'd like to use a XML file to store user specific messages, and write a XML serializable class which gives access to all these values.
|
|
|
|
|
Hi,
How can I make a installation project for a web Application with Setup and deploy Project of VS2005,
in fact copy files to wwwroot, but Setup and deploy Project, copies them to Program Files.
Best wishes
|
|
|
|
|
|
Which is the best method to store the dataset to access on the entire page with protected functions?
ViewState, Session or Cache?
Thanks
|
|
|
|
|
ss.mmm wrote: with protected functions?
What do you mean by protected functions ?
ss.mmm wrote: ViewState, Session
I prefer session if the DataSet contains less amount of data. Viewstate will increase network bandwidth.
ss.mmm wrote: Cache?
This can be used, but multiple users who visits your page at same time will get same results.
|
|
|
|
|
I know you can debug code-behind pages using breakpoints, however I'm trying to find out it there's a way to step through and debug an aspx page as well.
v2.0 is a great improvement over v1.1 however one place I'm finding myself spending more time is in debugging and I'm wondering if I'm not utilizing all of the debugging tools available to me in vs2005.
My current problem is I have a gridview which contains a dropdownlist in one of the columns when the user clicks "Edit" on a single row. The problem however is this dropdownlist value isn't updating in the database when the user clicks "Update", however since I'm using zero code in my code-behind page to perform the update(using a sqldatasource control), I don't know how to step through my glitch to find the source of the problem (could be the dropdownlist, could be a problem with the update statement, parameter may not be inheriting the value correctly, etc).
So I'm just wondering if there's a way to step through the code of an aspx page and aquire values of controls and properties while debugging.
Thanks.
-Goalie35
|
|
|
|
|
Is there any of inheriting master page inside a master page.
Because I want have two master page one at the folder level and another one application level and I want my folder master page to be inherited from application level master page.
|
|
|
|
|
Yes.
search for "nesting master pages"[^]
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
How to access the Code behind variables from client side(Javascript)?
Is there any other way apart from putting it in a hidden variable?
Thanks
|
|
|
|
|
Generate JavaScript in your server-side code that declares and assigns values to some global variables and use the ClientScriptManager class to include the JavaScript code in your HTTP response.
Paul Marfleet
|
|
|
|
|
i have used this code for sending mail . code was successfully running but msg was not sent to the client. i have using this below information.
To yogesh_softworld@yahoo.co.in
From yogeshdewangan97@gmail.com
SMTP Server 66.249.89.19 (gmail server ip)
SMTP User 127.0.0.1 (local host)
SMTP Pass archana123
Subject test email
Body abcabcabc.........................bc
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Net.Mail;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// This tutorial is provided in part by Server Intellect Web Hosting Solutions http://www.serverintellect.com
// Visit http://www.AspNetTutorials.com for more ASP.NET Tutorials
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
try
{
MailMessage message = new MailMessage(txtFrom.Text, txtTo.Text, txtSubject.Text, txtBody.Text);
SmtpClient emailClient = new SmtpClient(txtSMTPServer.Text);
System.Net.NetworkCredential SMTPUserInfo = new System.Net.NetworkCredential(txtSMTPUser.Text, txtSMTPPass.Text);
emailClient.UseDefaultCredentials = false;
emailClient.Credentials = SMTPUserInfo;
emailClient.Send(message);
litStatus.Text = "Message Sent";
}
catch (Exception ex)
{
litStatus.Text=ex.ToString();
}
}
}
then an exception was occured
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at _Default.btnSubmit_Click(Object sender, EventArgs e) in e:\Yatra\Default.aspx.cs:line 32
wht can i do????
pls help me sir
yogesh
|
|
|
|
|
For goodness' sakes man, edit your message and remove your gmail password.
|
|
|
|
|
sir,
thank u for solution, but i am not understanding wht u r saying, so plz detailed me entire problem, it is very urget sir, i am trying with my full effort but i do not able to do that yet. plz sir wht can i do, my project submission date is about to come, plz sir heip me. i m very sirious,
adv thank you sir..................
yogesh
|
|
|
|
|
I do not have a solution (except that
SMTP Server 66.249.89.19 (gmail server ip)
SMTP User 127.0.0.1 (local host)
Looks odd to me - 127.0.0.1 is your local host, not a user)
I am just saying that you have posted your gmail username adn password in your post, and anyone can log in and use your account there using them. I suggest you edit your original post and remove your password from it. (Click the Modify link at the bottom of it)
|
|
|
|
|
dear sir. i am using this code for sending email, i think this code will be aid to thinking u.
MailMessage message = new MailMessage(txtFrom.Text, txtTo.Text, txtSubject.Text, txtBody.Text);
SmtpClient emailClient = new SmtpClient(txtSMTPServer.Text);
System.Net.NetworkCredential SMTPUserInfo = new System.Net.NetworkCredential(txtSMTPUser.Text, txtSMTPPass.Text);
emailClient.UseDefaultCredentials = false;
emailClient.Credentials = SMTPUserInfo;
emailClient.Send(message);
litStatus.Text = "Message Sent";
}
catch (Exception ex)
{
litStatus.Text=ex.ToString();
}
thank u sir.
yogesh
|
|
|
|
|
try setting the smtp.Port to 465 before sending
emailClient.Port = 465;
and see if that helps.
Fred
|
|
|
|
|
Hello Sir/Mam,
Please let me know how to build up a search engine in ASP.NET....
sandeephs
|
|
|
|
|
|
No need to develop the search engine by coding
Now question is how will you have the search engine
Totally depends on you what you have search there are n numbers of Search engines are avialable those are free and extendable so depending on your requirement you can get simply you need to add those dll add use there methods
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... "
|
|
|
|
|
when i try print the report from CrystalReportViewer , show error message (
Error in File C:\WINDOWS\TEMP\picklist {3EDF8C64-E9DE-4E24-9F43-2590B5CFE8B4}.rpt: Operation not yet implemented.
)
123
|
|
|
|
|
|
hi ,
how can i add and delete and update with one gridview in ASP.NET and my database is SQL 2005???
abbas hassan
from Bahrain
thanks...
|
|
|
|