|
Hello
Thanks for your consideration
Do you know content management systems in this case how to act?
Standard method in this field there are there?
Mohammad Khansari
|
|
|
|
|
I doubt any CMS system will even attempt to email 100,000 people in an hour. If you have to email that many people then you will probably need to do as I suggested in my first reply, and multi-thread, probably to different mail servers. If you are using a 3rd party host then you are probably not going to acheive it anyway as they will treat it as a DOS attack.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
If you try to send thousands of emails within a very short period of time, your email server will probably block it thinking someone is trying to overload it. You can probably split your users into batches and try to send emails through different email servers.
|
|
|
|
|
Hello
Thanks for your consideration
Do you know content management systems in this case how to act?
Standard method in this field there are there?
Mohammad Khansari
|
|
|
|
|
I have a textbox which is created dynamically in page_load.
TextBox tb = new TextBox();
tb.id = "ID1";
tb.text = GetfromDB();
tb.TextChanged +=new EventHandler(tb_TextChanged);
Now i want to add a javascript confirmbox as
tb.Attributes.Add("onchange","javascript:return confirm('Data has Changed. Click OK To Continue');");
If the user clicks ok then continue to tb_TextChanged function and if user clicks cancel i want to restore the previous value of textbox.
How can i write the javascript function?
Thanks
|
|
|
|
|
Basically when a postback occurs, everything in the page gets recreated again.
If it is not posted back you need to somewhere hold the initial values and show to the items.
You can make a global object say
var myarray = {};
myarray["textbox1"] = document.getElementById("textbox1").value;
..
..
..
When you restore, set the value from myarray to actual controls.
document.getElementById("textbox1").value = myarray.textbox1;
...
...
...
what is the problem with that. If the page is not posted back you can do this easily.
|
|
|
|
|
I do not want to store values without any event. I have many textboxes and i want to store the inital value only based on some event.
Is there some event like onfocus or onkeydown for the textbox where i can store only for the textbox which is supposed to be changed.
Thanks
|
|
|
|
|
of course there is. You might use onfocus = "javascript:myarray[this.id]=this.value"
to initialize myarray with initial value if you want.
No big deal, do it whatever you feel like.
|
|
|
|
|
Hi all,
Am creating a report(matrix) using microsoft report viewer...
am getting the output like this:-
Code Name 24 25 26 27 28
1 Sam 9.81 9.81 9.81 18.81 18.81
Now i want to put the total of(9.81 +9.81 +9.81 + 18.81 + 18.81) as total as next column as given below
Code Name 24 25 26 27 28 Total
1 Sam 9.81 9.81 9.81 18.81 18.81 64.05
how can i do this?
Thanks in Advance...
|
|
|
|
|
Add a textbox in design view
right click got to value select the value =Sum(Fields!YourID.Value, "datasetname") in Dropdownlist
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hello friends,
I am developing a shopping cart. I need a sitemappath in this. I implemented the code but the problem is that I have a categories table from which the sitemappath is fetching the data. In these categories some are main categories and some are their sub categories. For Example I am having a category structure like this:
Glassware>>Beer Glass>>Universal Beer Glass...
When I click on glassware, my sitemap shows like this: Home:Glassware
Then after that when I click on Beer Glass, the sitemappath disappears. ie the sitemappath is shown till I have one sub-level.
I did like this:
Please assist me....
public void GenerateXMLFile(string sFileName)
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["newcon"].ConnectionString);
SqlCommand cmd = new SqlCommand("select * from CATEGORY ", con);
cmd.Connection.Open();
SqlDataReader reader1 = cmd.ExecuteReader();
Encoding enc = Encoding.UTF8;
XmlTextWriter objXMLTW = new XmlTextWriter(sFileName, enc);
try
{
objXMLTW.WriteStartDocument();
objXMLTW.WriteStartElement("siteMap");
objXMLTW.WriteStartElement("siteMapNode");
objXMLTW.WriteAttributeString("title", "Home");
objXMLTW.WriteAttributeString("description", "This is home");
objXMLTW.WriteAttributeString("url", "~/index.aspx");
while (reader1.Read())
{
int MasterID = reader1.GetInt32(0);
objXMLTW.WriteStartElement("siteMapNode");
objXMLTW.WriteAttributeString("title", reader1.GetString(1));
objXMLTW.WriteAttributeString("description", reader1.GetString(5));
objXMLTW.WriteAttributeString("url", reader1.GetString(11));
objXMLTW.WriteEndElement();
}
objXMLTW.WriteEndElement();
objXMLTW.WriteEndDocument();
}
finally
{
objXMLTW.Flush();
objXMLTW.Close();
cmd.Connection.Close();
}
}
cheers,
sneha
|
|
|
|
|
Sneha ji,
Bottom-Top approach is needed in such scenerio
|
|
|
|
|
Hi ,
I am looking at the working of HttpModule lately ..... I am stuck up at a place
I have a class implementing IHttpModule which is supposed to catch any unhadled exception and redirect to a default page.
public class HttpModule2 : IHttpModule
{
public void Dispose()
{
}
public void Init(HttpApplication App)
{
App.Error += new EventHandler(App_EndRequest);
}
void App_EndRequest(object sender, EventArgs e)
{
HttpApplication App = (HttpApplication)(sender);
App.Response.Redirect("Default.aspx",true);
}
}
Now after that I put it in the web config
<httpModules>
<add name="ErrorModule" type="HttpModule2"/>
</httpModules>
but now if I introduce a divide by zero error in my code
protected void LinkButton1_Click(object sender, EventArgs e)
{
try
{
int k = 0;
int m = 100 / k;
Response.Redirect("MyTxt.txt");
}
catch (Exception ex)
{
throw ex;
}
}
it's still showing me the error page is there something i am missing , actually I am touching this area after 6 months or so ..i must be forgetting something.
|
|
|
|
|
Use server.Transfer instead of Response.Redirect .
|
|
|
|
|
|
Did you consider asking the author ? How would we know, we didn't write it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
only one page for a pdf is opening even if iam increasing the page content.. In this coding where to code, to increment the number of pdf pages.
That is what i mean to ask.
|
|
|
|
|
What I am telling you is that the odds of the people who happen to read the forum in the time since you posted having used this library is very low. So this is a dumb place to ask. There's forum just under the article where you can see what other people asked, and ask your question. Plus, you can always download the source and make it do what you want it to.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi,
Iam not sure whether this is the right message board to place this query..
In my intranet site Iam using vb.net...
I was able to access the site properly, but our network team had applied some security patches last night... the very next day when Iam trying to access the site, it is giving error message as Network error(tcp_error)
can anyone help me out...
Imtiaz A.K
|
|
|
|
|
Sounds like your server is no longer visible to your machine.
Tell the network clowns to fix it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Might be that IP is blocked using firewall from your ISP.
You need to call your ISP to make exception to that IP.
|
|
|
|
|
First Check you can ping the machine from your machine.
Please Post the exact error that you are getting and we will look at it
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi,
Thanks for response...
I pinged the server and i got the reply...
even I can access that server using the remote desktop connection..
Thanks
Imtiaz A.K
|
|
|
|
|
ok , now Post the Complete Error that you get. Dont edit it, just post it the way comes
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
In the LAN Settings(in Connection Tab of Internet options) of my browser I had added the url in the "DONOT USE PROXY", now it is working.
is this the correct way...?
Imtiaz A.K
|
|
|
|