|
over my head, father of youth.
100
Help people,so poeple can help you.
|
|
|
|
|
Hi
I need to send a large number of emails as newsletter in website using SMTP protocol. The barrier is the server runs out of memory and raises an exception when emails count is large. I use a loop that iterates through an array of emails and send them. Is there any method that can mitigate this constriction. emails count is more than 100000.
|
|
|
|
|
I think you already have a response to this question here[^]. If you overload any system it may run out of memory; so the answer is either provide more memory, or implement some controls to slow down the process(es) that are consuming it.
I must get a clever new signature for 2011.
|
|
|
|
|
Hello Everybody,
I want to know that.
How can i change the theme of page in Button Click event.
Thanks
If you can think then I Can.
|
|
|
|
|
|
The Best approach is that create BasePage class under the app_code classes and inherit from Page class. Override Page_Preinit and change the theme here. After that Each webform should be inherited from basepage. I am assuming that you have themes under App_Theme Folder. code should be like this:-->
public class BasePage:System.Web.UI.Page
{
protected override void OnPreInit(EventArgs e)
{
base.OnPreInit(e);
string selectedTheme="";
selectedTheme = ThemeManager.GetThemes()[0].Name; /*set top theme as default or from db according to user settings*/
if(!String.isNullorEmpty(selectedTheme))
Page.Theme = selectedTheme;
}
}
public class ThemeManager
{
public ThemeManager()
{
}
#region Theme-Related Method
public static List<Theme> GetThemes()
{
DirectoryInfo dInfo = new DirectoryInfo(System.Web.HttpContext.Current.Server.MapPath("~/App_Themes"));
DirectoryInfo[] dArrInfo = dInfo.GetDirectories();
List<Theme> list = new List<Theme>();
foreach (DirectoryInfo sDirectory in dArrInfo)
{
Theme temp = new Theme(sDirectory.Name);
list.Add(temp);
}
return list;
}
#endregion
}
|
|
|
|
|
|
How to sql query the next row of data if has null values?
If user will search a code in a textbox,
let say 1002, then the result on the
second textbox should 1003.
let say 1008, then the result on the
second textbox should 1009.
but if the search code is 1011 then
the second textbox has no result.
Goal is to get the first NULL values only.
TableName:tblCode
Code CodeName
1001 aaa
1002 bbb
1003 NULL
1004 NULL
1005 NULL
1006 NULL
1007 abc
1008 aac
1009 NULL
1010 bba
1011 cca
1012 aab
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
Select Top 1 Code
From tblCode
Where Code > @Code And CodeName Is Null
Order By Code
@Code = input from first text box
|
|
|
|
|
thanks a log s_magus,
i never think about select top. i always use MAX,MIN.
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
using Top, we can make a lot good queries.It also got enhanced in SQL 2005.
Click here
|
|
|
|
|
i'm getting an error that
"Cannot insert explicit value for identity column in table 'Comment' when IDENTITY_INSERT is set to OFF"
i'm using "LINQ to SQL" in ASP.NET
so how can i set IDENTITY_INSERT to ON?
|
|
|
|
|
use a stored procedure
"If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
"Let me get this straight. You know her. She knows you. But she wants to eat him. And everybody's okay with this?"
|
|
|
|
|
How ?
Help people,so poeple can help you.
|
|
|
|
|
Why are you trying to insert an identity value? These are usually incremented automatically when a row is inserted into the DB and inserting your own value could cause a duplication in this column. You can open the table in Management Studio and turn off the indentity property for the column.
Mike
|
|
|
|
|
i'm using BlogID as primary key in Blog table & as a foreign key in Comment table.i'm trying to save BlogID manually in comment table from Query String in comment page.Tell me how i can do it?
|
|
|
|
|
|
Hi fellows,
How could i access an ms outlook public calendar and add events or appointment through code into that calendear?
Could anyone of you suggest me some guidelines.
Thanks
|
|
|
|
|
|
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
|
|
|
|
|
|
|
Hi,
I dont work with vb.net I added this code in the file Default.aspx.vb
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
fldRoles.Text = String.Format("User {0} has in the following roles:", My.User.Name)<br />
For Each arole As String In Roles.GetRolesForUser(My.User.Name)<br />
fldRoles.Text += String.Format("<br/>{0}", arole)<br />
Next<br />
If My.User.IsInRole("AdminModule1") Then<br />
Response.Redirect("adminM1/nn.aspx")<br />
Response.End()<br />
ElseIf My.User.IsInRole("AdminModule2") Then<br />
Response.Redirect("adminM2/nn.aspx")<br />
Response.End()<br />
ElseIf My.User.IsInRole("AdminModule3") Then<br />
Response.Redirect("adminM3/nn.aspx")<br />
Response.End()<br />
<br />
End If<br />
End Sub but no result
Thanks
|
|
|
|
|
Hi To All,
Please help me to solve my problem.
I am developing a web application. In that I need To Scan Document Through Scanner. I am not getting how i should implement, What resources I should use to get the device. I also want to set the path through code and after scanning the image, It should be displayed on My webPage.
Please Help Me. And I will be glad if you Reply with Sample Code.
Thanks & Regards
Sanket Patil
.
|
|
|
|
|
Hi,
I use a package from "VintaSoft Twain.NET SDK" for scanning. Really easy to use and implemented. I am new to C# dev and I managed to build a scanning app in a day or two. They inlcude a sample application to get you started. (http://www.vintasoft.com/[^])
Cheers
Q
|
|
|
|