15,892,059 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Al Moje (Top 200 by date)
Al Moje
31-Jan-13 4:45am
View
Could you show us your code snippet?
Al Moje
4-Dec-12 0:41am
View
You must run the inetmgr and Modify Access Permission...
'eat a apple'
Al Moje
4-Dec-12 0:24am
View
Actualy it is not possible to redirect the requests coming from a virtual directory to the 1049 port because.
Example:
I run my application on local host at
http://localhost:64458/edms/Default.aspx and is running.
when I published it in public server, I use to access it thru:
http://almojegm/edms/default.aspx
Maybe you did not published it correctly. There where some network security access
that your should consider.
example: Permission access on virtual directory like: IUSR, Netwok Service, Grant Full access to the two previous mention.
Al Moje
3-Dec-12 23:58pm
View
Try to access your application
http://ServerDomainName/serviceName?method=getFile
or
http://ServerIPAddress/serviceName?method=getFile
Al Moje
25-Nov-12 18:17pm
View
Yes, It is necessary to declare your entity class as [Serializable] when running on web services.
Al Moje
11-Nov-12 23:56pm
View
Have you declare your Entity class as Serializable?
Example:
[Serializable]
public class Contract_Hdr
{
//...
//...
}
Al Moje
7-Nov-12 20:39pm
View
What browser you're using?
Al Moje
7-Nov-12 19:47pm
View
I think you should show field names of your table to import from excel file, by then may some expert could show/give you an example...
Al Moje
24-Oct-12 21:06pm
View
Could you post your code snippets so that we could analyze what wrong on your code?
Al Moje
10-Oct-12 22:46pm
View
Could you post your code snippet you had been made?
Al Moje
9-Oct-12 2:18am
View
Could you show us your code?
Al Moje
9-Oct-12 1:45am
View
Hi,
Have you Serialized your Entity Class?
Example:
[Serializable]
public class Inventory
{
//...
}
Al Moje
6-Oct-12 3:28am
View
Show us your code snippet so that we could better understand your problem.
Al Moje
1-Oct-12 20:14pm
View
Ypou may add perion in Valid ValidChars and it will works.
e.g.: ValidChars="0123456789."
Al Moje
20-Sep-12 5:10am
View
Could you post your code?
Al Moje
19-Sep-12 1:19am
View
Hi,
Drag the AJAX Extentions ScriptManager from ToolBox into the body of you form.
Al Moje
5-Sep-12 21:22pm
View
Show us your code that you had been made...
Al Moje
5-Sep-12 21:21pm
View
Show us you code that you had been made....
Al Moje
5-May-12 1:46am
View
Yes, absolutely we can create Page Setup in Crystal Report. What is your problem?
Al Moje
21-Feb-12 23:25pm
View
Edited: Add pre tag...
Al Moje
16-Feb-12 20:47pm
View
Please see additional notes on my answer below pertaining to my article..
Al Moje
15-Feb-12 0:16am
View
Added pre tag…
Al Moje
14-Feb-12 23:47pm
View
Hi,
I think it is easy to solve if you could post what is an error thrown...
Al Moje
14-Feb-12 4:51am
View
Please post your code so that we could analyze...
Al Moje
14-Feb-12 0:34am
View
Maybe you could consider viewstate, but remember how about when your page has post back?
When page having post back hence, viewstate value becomes null...
Al Moje
13-Feb-12 4:02am
View
Added pre tag.
Al Moje
13-Feb-12 2:32am
View
Edit and add pre tag.
Al Moje
10-Feb-12 2:28am
View
Please vote if its help you...
Welcome and Regards,
Al Moje
10-Feb-12 2:03am
View
Could you show us your code on how you arrive such error so that we could analyze...
Al Moje
10-Feb-12 0:27am
View
Could you show us code how you did to convert it to HTML?
Al Moje
10-Feb-12 0:09am
View
Use ASP.Net Web Site Administration Tool
On your project Solution click the icon 'ASP.NET Configuration'
Use ASP.Net Web Site Administration Tool then setup/configure the following:
Security
Application
Provider
Al Moje
9-Feb-12 22:03pm
View
Righ click on you project website thenClick on Property Pages then
Click on Application then Check the Target Framework The Framework should be
.NET Framework 4.0
Al Moje
9-Feb-12 1:05am
View
Please don’t keep us hangout to solve such problem, show us your code how you solved it…
Thanks...
Al Moje
8-Feb-12 4:19am
View
Is your problem evolving slowness at page index change?
Al Moje
8-Feb-12 3:54am
View
Sorry! I assumed that your question is about crystal report...
Any way should create a corresponding parameter fields in your rpt template file:
Above example has a corresponding parameter field ‘CardNumber’ in rpt file.
Example:
CrystalReportSource1.Report.FileName = Server.MapPath("") + "\\Reports\\StudentMast.rpt";
// Some code here…string valueToPass = “1234567890”;
AddParameter(crpt, valueToPass, "CardNumber"); // Call the private void AddParameter passing three parameters
Al Moje
8-Feb-12 3:04am
View
Not clear, Please elaborate more...
Al Moje
8-Feb-12 2:49am
View
added pre tag on code.
Al Moje
7-Feb-12 3:00am
View
Not clear, could please clarify you question?
Al Moje
7-Feb-12 2:54am
View
Hi,
Use Google 'The Developer's Friends'
see this site:
http://msdn.microsoft.com/en-us/library/cc668201.aspx
Al Moje
1-Feb-12 20:54pm
View
If still have problem...Check the proper end tag like end tag of: asp:Panel
Right click in you Web config then click on Exclude from Project.
then run your code.There will be a popup message e.g:
'There were built errors. Would you like to continue and run the last
successful build?' click on Yes.
This will automaticaly would create a new Web.config.
Al Moje
1-Feb-12 20:31pm
View
Hi,
Sorry I just read your message this morning at arround 900 am. I did not recieved your message immediately cause I did not bring my personal laptop at work, and also I could not access my personal email at work cause we are prohibited network administrator.
Your code is already correct what should be done is to put a backgroud color at your upper pannel and define the height to be enough to display image control you had made. e.g:
<asp:Panel ID="pnlClick" runat="server" BackColor="Blue" Height="42px">
<div style="height: 30px; vertical-align: middle">
<div style="float: left; color: White; padding: 5px 5px 0 0">
Collapsible Panel
</div>
<div style="float: right; color: White; padding: 5px 5px 0 0">
<asp:Label ID="lblMessage" runat="server" Text="Label" />
<asp:Image ID="imgArrows" runat="server" />
</div>
<div style="clear: both">
</div>
</div>
Al Moje
1-Feb-12 4:53am
View
Sorry! This is not the whole solution I intended to answer. When I submit my whole solution answer, there were a server popup message error...
Just change the Script Manager you have defined in you solution and then change the color as I had mention on my previous comments above and it should be working....
Al Moje
1-Feb-12 4:46am
View
change you backgroud color into blue.
In your solution you have a white forecolor with white background, that is
why you see nothing. Also change your script manager to:
<asp:ScriptManager ID="ScriptManager1" runat="server">
Al Moje
1-Feb-12 4:34am
View
I tried to submit all solution but ecountered server error:
I think you should change white color to either blue:
example:
<asp:ScriptManager ID="ScriptManager1" runat="server">
<div>
<asp:Panel ID="pnlClick" runat="server" ForeColor="#66CCFF">
<div style="height: 30px; vertical-align: middle; color: #FFFFFF; background-color: #66CCFF;">
<div style="float: left; padding: 5px 5px 0 0">
Collapsible Panel
</div>
<div style="float: right; color: Blue; padding: 5px 5px 0 0">
<asp:Label ID="lblMessage" runat="server" Text="Label" />
<asp:Image ID="imgArrows" runat="server" />
</div>
<div style="clear: both">
</div>
</div>
Al Moje
20-Jan-12 2:07am
View
In my opinion the image display area were handle by customized gridview control...
see the following js:
ProductGridVO.js
ProductGridEventHandler.js
GridNavigationEventHandler.js
Al Moje
17-Jan-12 21:07pm
View
Hi,
See this link if could help...
http://www.dynamicdrive.com/dynamicindex1/
Al Moje
17-Jan-12 4:19am
View
The above sample should be in code behind of
Site.Master.cs
in Page_Load...
Al Moje
17-Jan-12 3:56am
View
when it goes the first row...
but if it goes to the second row...
What goes means? Please rephrase your question...
Al Moje
12-Jan-12 1:48am
View
Hi,Suggesting you to do it in code behind. See my sample coding...
Al Moje
11-Jan-12 3:30am
View
Try to use
overloaded function:
MessageBox.Show(this, "Hi");
Al Moje
9-Jan-12 20:28pm
View
Hi,
You may refere to this site :
http://www.java2s.com/Code/Java/XML/SimpleexampleofusingJDOM.htm
Al Moje
9-Jan-12 3:02am
View
Advised you to fixed your Client page coding..
1. Error Creating Control - lblHeaderEditViewUnexpected end of file looking for tag.
2. Error Creating Control - dtlViewDetailsType 'System.Web.UI.WebControls.DataList' does not have a public property named 'table'.
3. The element 'table' cannot be nested within the element 'datalist'
If this is running in your part, I think such problem are above mention to fix...
Al Moje
9-Jan-12 2:20am
View
If that so...
comments the line:
//string Url ="search-result.aspx?";
modify the declaration of Url variable from above as:
private static string Url ="search-result.aspx?";
Al Moje
9-Jan-12 1:46am
View
OnClientClick is used only in Client Page coding. In your case I think your code is in code behind. Categorically, on such case I think you must use your first above mention code...
Al Moje
9-Jan-12 1:37am
View
Welcome...
Al Moje
9-Jan-12 0:56am
View
If possible, I suggest you to allot field on your data table for such check filtering...
Al Moje
9-Jan-12 0:45am
View
Could you post your code for us to see what causes for such problem of your?
Al Moje
6-Jan-12 5:08am
View
correction on end tag </pre> location
Al Moje
6-Jan-12 4:37am
View
Post your reply in
Have a Question or Comment?
The receipt will automatically could receive an
Email on his/her account to answer you back...
Al Moje
6-Jan-12 4:25am
View
try to change:
private void PopulateRequestStatus(DropDownList ddl)
to
protected void PopulateRequestStatus(DropDownList ddl)
Al Moje
6-Jan-12 4:19am
View
Could you show us your code?
Al Moje
6-Jan-12 0:08am
View
Not clear question. Will you please elaborate more?
Al Moje
3-Jan-12 20:37pm
View
Could you show us codes that you had been started?...
Al Moje
29-Dec-11 1:40am
View
Show us your code for somebody may help you...
Al Moje
29-Dec-11 1:09am
View
Could you share us your code?...
Al Moje
29-Dec-11 1:02am
View
Not clear question...
Al Moje
28-Dec-11 20:22pm
View
My vote of 3 stars
Session expires, if client page does not postback, suggest to use ViewState
example:
ViewState["dt"] = dt;
Al Moje
28-Dec-11 5:04am
View
forgot to add timeout:
smtp.Timeout = 300; // 300 seconds to wait so that could not catch timeout
smtp.Send(mail);
Al Moje
28-Dec-11 4:51am
View
Vote on this if could help...
Regards,
Al Moje
28-Dec-11 4:50am
View
if you have a GMail account and the setting is correct then try this:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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 contactus : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
MailMessage mail = new MailMessage();
SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587); // add port 587
smtp.Credentials = new System.Net.NetworkCredential("manohar.nch@gmail.com", "000999");
smtp.UseDefaultCredentials = false;
smtp.EnableSsl = true;
mail.Priority = MailPriority.High;
mail.From = new MailAddress("manohar.nch@gmail.com");
mail.Subject = "subject";
mail.Body = "hi how are you";
mail.IsBodyHtml = true;
mail.To.Add("manohar.nch@gmail.com");
smtp.Send(mail);
}
}
Al Moje
28-Dec-11 4:24am
View
Do you have a Gmail acount?
Please see link above: 'GMail as free smtp server'
Al Moje
27-Dec-11 3:29am
View
How far have you done? can you show us a bit your code so that we can analized...
Al Moje
27-Dec-11 0:56am
View
What particular printing problem are you encountering, share us your code...
Al Moje
26-Dec-11 3:38am
View
Hi,
TargetControlID="LinkButton1"
Why target itself...
I think you must to create an asp:Panel to display such modal popup...
Al Moje
26-Dec-11 2:41am
View
Not clear question. Could you post your code so that we could see?...
Al Moje
22-Dec-11 20:54pm
View
How far have you done? Please show us your code...
Al Moje
22-Dec-11 2:34am
View
Could you post your code?...
Al Moje
21-Dec-11 4:25am
View
Replace
cmd.parameters.add(param);
with:
cmd.Parameters.Add("@ID", SqlDbType.Int).Value = id;
Al Moje
21-Dec-11 2:31am
View
Hi, use break point to debug. Check if session is not null... because session expires, and if expires value becomes null...
Al Moje
21-Dec-11 2:07am
View
Did you increased also your connection timeout?... If not then do it...
Al Moje
21-Dec-11 1:54am
View
You made a function or method that expects to return an explicit value but you fail to do...
Al Moje
21-Dec-11 1:41am
View
Could you post your code?...
Al Moje
16-Dec-11 1:03am
View
Hi, I am not saying that you have no idea to come up with msgbox. My allegation is that maybe in your msgbox had triggers such an error…
Sorry for the broken link… The url is at :
http://www.codeproject.com/Answers/299619/window-close-is-not-working#answer1
Yuo may try this...
Al Moje
16-Dec-11 0:19am
View
I am curious where we should fill such info. Should we create a container or just fill it in check box?
Al Moje
15-Dec-11 20:46pm
View
Thanks, Could you click the vote radio button so that others may see and consider as an answer? The highest vote is on the right side (5)...
Al Moje
15-Dec-11 4:41am
View
Advise you to supply the alias of StudentID
example: where d.StudentID='Stud1'
Al Moje
15-Dec-11 4:00am
View
What kind of file are you loading? Can you post your code?
Al Moje
15-Dec-11 3:02am
View
Hi, I think the simple interpretation of building the SSIS Package is
Extract Tranform and Load (ETL). As I see in you code your are in the way of
tranforming the data from your temporary table to your target table and maybe there should be needed fixing on it...
Al Moje
15-Dec-11 2:38am
View
Hi,
You are using an alias...
but wait some has no alias like: t_invn, t_ttyp
Al Moje
15-Dec-11 1:49am
View
Could you post your query or any script you had made in your package?
Al Moje
15-Dec-11 1:06am
View
namespace is
System.Web.UI.WebControls
Al Moje
14-Dec-11 21:11pm
View
is there a seting for
SMTP_Address = ip address of the mail server...
Al Moje
14-Dec-11 21:00pm
View
I would suggest to check the mailserver value and siteurl if existing...
Al Moje
14-Dec-11 5:06am
View
Oh! So you are using VB6, sorry i thought it was a web.
My example is a web base... (asp.net)
Al Moje
14-Dec-11 4:59am
View
ALTER PROCEDURE [dbo].[ups_JoinRegistration2]
@UserId int
AS
BEGIN
SET NOCOUNT ON;
SELECT * from [Registration2] where UserId=@UserId
END
the above code is your store proc.
You must:
1. Target the exact store proc 'ups_JoinRegistration2'
2. You must know the type of your parameter ( change code)
int id = Convert.ToInt32(Request.QueryString["en"].ToString());
cmd.Parameters.Add("@UserID", SqlDbType.Int).Value = id ;
Al Moje
14-Dec-11 4:09am
View
The & is used in vb.net code. Since you are using c#, replace it with +
Al Moje
14-Dec-11 3:31am
View
Question not clear. What do you mean by Module file?
Al Moje
14-Dec-11 3:05am
View
I think it is better to do such filtering or adding menus in code behind which defends on access level...
Al Moje
13-Dec-11 5:02am
View
Post your code so that we could see and help you...
Al Moje
13-Dec-11 3:33am
View
Hi, Google is you friend...
Al Moje
12-Dec-11 4:49am
View
Change no to know
Al Moje
9-Dec-11 2:59am
View
Hi,
In my part I use to replace apostrophe with 'grave accent' sysbol before saving into database as its look alike symbol. Any way it could manipulate to replace it back after retrieving...
I am not saying that this is the way rather saying the best way...
This is just a trick... Maybe there is other way... It's just a sugestion...
Correct me if you could find the best way...
Al Moje
9-Dec-11 1:44am
View
Could you post your code so that we could see?
Al Moje
9-Dec-11 1:38am
View
Not clear question... Please advise to re post...
Al Moje
9-Dec-11 1:33am
View
Replace 'aable' with 'not able'
Al Moje
9-Dec-11 1:30am
View
Re post your code, could not understand. Please be advised to use proper tag…
Al Moje
8-Dec-11 20:26pm
View
Hi,
As I told you I had already made such... But I could not share it to you cause this is a paid work, and not for charity...
Al Moje
8-Dec-11 20:21pm
View
Can you show us your code?
Al Moje
8-Dec-11 3:59am
View
You may combined ViewState within Session. Advise you to know the usages of these two. Such as there deferences...
Al Moje
8-Dec-11 2:39am
View
Hi,
Thanks for your answer but I am asking for a CommandTimeout not ConnectionTimeout like in SQL it works..
Al Moje
8-Dec-11 0:33am
View
Replace bossible with possible.
Al Moje
8-Dec-11 0:04am
View
Hi,
Advised you to manipulate the changes rather updates in your grid DataSource, then rebind it in your grid. as i see in your code surely 'You are updating the last row in your grid'...
Al Moje
4-Dec-11 23:32pm
View
Hi,
Try to use
OnClientClick="SetChecks();"
Al Moje
1-Dec-11 20:52pm
View
Hi,
Thanks for your correction.
Meant should be…
Al Moje
22-Nov-11 21:50pm
View
The link you had given is not clear. Could you post you code...
Al Moje
22-Nov-11 21:05pm
View
Try answer below if could help:
Al Moje
22-Nov-11 5:02am
View
Try to change
Public Shared Function OpenEmail(ByVal EmailAddress As String, Optional ByVal Subject As String = "", Optional ByVal Body As String = "") As Boolean
Al Moje
18-Nov-11 5:08am
View
I could not delete this... But this is not my proposed answer...
Al Moje
18-Nov-11 5:04am
View
Sorry for above answer. This is not the right answer because when I summit it some code was eliminated and having a warning message that there where server writing error three times. Therefore I just paste it as comments as shown at my previous answer… Believe me no ‘Magic’ on this answer…
Al Moje
18-Nov-11 4:55am
View
Hi,
I think you may use CrystalReportViewer or MicrosoftReportViewer to accomplished your problem. Just search on this 'How to' of their usage...
Al Moje
18-Nov-11 4:48am
View
I think when saving record(s) in database containing an apostrophe should be avoided. These may be manipulated/replace with other character such as single quote. this is just a trick but it function will. This also requires manipulation when retrieving back from select query... I am not saying that this should be the way but maybe there were some other best way..
Al Moje
18-Nov-11 4:04am
View
Hi,
change this line to :
UPDATE [dbo].[user_details]
SET [name] = 'name',[email] = 'email',[phone no] = 'phone no',[photo]= 'photo';
Al Moje
18-Nov-11 3:48am
View
Example:
<body önload="resize_op5();">
Al Moje
18-Nov-11 3:34am
View
Making field id to visible="false" surely return an output id into blank...
Al Moje
18-Nov-11 3:21am
View
I agree with SA.
I think you did not consider to create an '<asp:UpdatePanel>' with UpdateMode="Conditional". Then in your code behind update such panel before geting the value of such text to save...
Al Moje
18-Nov-11 2:24am
View
Please show use you code...
Al Moje
18-Nov-11 2:17am
View
Hi,
Just post the important code where you expected goes wrong. Believe me no one wants to scrutinize your lengthy code to answer… such question of yours…
Al Moje
18-Nov-11 1:15am
View
Deleted
Example (Code behind):
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.Text;
public class MessageBox
{
private static Hashtable m_executingPages = new Hashtable();
private MessageBox() { }
public static void Show(string sMessage)
{
if (!m_executingPages.Contains(HttpContext.Current.Handler))
{
Page executingPage = HttpContext.Current.Handler as Page;
if (executingPage != null)
{
Queue messageQueue = new Queue();
messageQueue.Enqueue(sMessage);
m_executingPages.Add(HttpContext.Current.Handler, messageQueue);
executingPage.Unload += new EventHandler(ExecutingPage_Unload);
}
}
else
{
Queue queue = (Queue)m_executingPages[HttpContext.Current.Handler];
queue.Enqueue(sMessage);
}
}
public static void Show(System.Web.UI.Page page, string msg)
{
ScriptManager.RegisterClientScriptBlock(page, page.GetType(), "clientScript", "javascript:alert('" + msg + "');", true);
}
private static void ExecutingPage_Unload(object sender, EventArgs e)
{
Queue queue = (Queue)m_executingPages[HttpContext.Current.Handler];
if (queue != null)
{
StringBuilder sb = new StringBuilder();
int iMsgCount = queue.Count;
sb.Append("<script language='javascript'>");
string sMsg;
while (iMsgCount-- > 0)
{
sMsg = (string)queue.Dequeue();
sMsg = sMsg.Replace("\n", "\\n");
sMsg = sMsg.Replace("\"", "'");
sb.Append(@"alert( """ + sMsg + @""" );");
}
sb.Append(@"</script>");
m_executingPages.Remove(HttpContext.Current.Handler);
HttpContext.Current.Response.Write(sb.ToString());
}
}
}
public partial class _Default : System.Web.UI.Page
{
protected void btnCreateAccount_Click(object sender, EventArgs e)
{
this.btnCreateAccount.Enabled = false;
MessageBox.Show(this, "Account was successfuly created...");
}
}
Al Moje
18-Nov-11 1:13am
View
Example:
<script type="text/javascript">
function CheckForRequiredFields() {
var xx = $get('<%= txtAtt.ClientID %>').value;
if (xx == '') {
alert("Attachment is required...");
return false;
}
else {
return true;
}
}
</script>
Al Moje
17-Nov-11 23:36pm
View
I think there's no need to add an attribute for
'Page.ClientScript.GetPostBackEventReference', and just make a condition on your client function by manipulating button either setting it as to be enable or disable.
Al Moje
17-Nov-11 22:37pm
View
Please post your code...
Al Moje
17-Nov-11 4:18am
View
Could you post your code so that we could analize what is going wrong with...
Al Moje
14-Nov-11 2:04am
View
The example code when I upon posting added some unknown code.
Check it below example...
Maybe you are using some services like see example:
<asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true">
<services>
<asp:ServiceReference Path="~/LocalServices/ACLibrary.asmx" />
Al Moje
14-Nov-11 0:24am
View
Hi,
You created InsertHelpDesk1, but in your code behind you are calling
store procedure 'InsertHelpDesk2'. Advise you to review your code...
Al Moje
10-Nov-11 20:34pm
View
Hi, Above code(module) should be access only by the Database Administrator to run, rather user has the rights on Database equevalent to Admin, otherwise it may encounter security problem. Also the User Id and Password should be precise in accessing the database. What am I emphasizing here is that the consideration to increase of the 'Connection Timeout' and the 'Command Timeout' which if not defined should be the default...
Al Moje
27-Oct-11 4:13am
View
Hi,
Google is your friend. There were so many kinds of date format….
Search key should be ‘how sql format (yyyy/mm/dd)’
Al Moje
27-Oct-11 2:58am
View
Hi,
In my opinion in every country there were deference tax computations. There is taxation law that covers on its computation. It also depends on what taxes are you want to compute like:
Taxes derive from income(Income tax), Corporation tax(corporate tax); value added tax (vat), etc….
Al Moje
27-Oct-11 2:46am
View
Hi,
Could you elaborate more on your question?
Al Moje
27-Oct-11 2:26am
View
Hi,
Rephrase your question. Believe me no one could understand…
Just summarized the important code where you suspected getting an error…
Regards,
Al Moje
25-Oct-11 0:36am
View
Hi,
I think the error is not in your code behind, because it's clear error message
'Control 'GridView1' of type 'GridView' must be placed inside a form tag with runat=server'. Advise you review you 'Client code'. Or you may post your Client Code so that others may help you...
Al Moje
24-Oct-11 5:48am
View
Are you using a virtual directory to save your image or you are saving it in the database table as a varbinary(max). Could you post your code that you had been made...
Al Moje
21-Oct-11 1:21am
View
Hi,
Check that software.jpg image file is in your sub target directory App_Data/Image. You must see it at run time if such image file is existing, otherwise there should be something wrong in your coding...
Al Moje
20-Oct-11 23:09pm
View
Oh... sounds a student home work. Do your own first then post it, and we should see what we can...
Al Moje
18-Oct-11 23:24pm
View
Hi, please rephrase you question, and if possible post your code you’ve been tried…
Al Moje
18-Oct-11 22:53pm
View
Yes..
That's right. Maybe you could browse some articles at code project. I had forgotten the link, but some times I read such article closing the explorer or may you find it on google...
Regrds,
Al Moje
18-Oct-11 22:30pm
View
Hi,
Try to use datasets. Store filter records in your dataset, and if you have sub report link records by its primary key...
Al Moje
17-Oct-11 21:40pm
View
lstProduct is defind above as the public class of Product List Collection. GetProductFromTable() Is a public function that open the database table Product. Should be contains your query to your Database table. This function return the ListOf Product.
DisplayTableOne(lstProduct) May contains your additional code of validation that may inserted, then defined lstOfProducts as a DataSource in your defind Table1 grid, then bind.
If you are using local SQL Server your Web.Config may contains:
<connectionstrings>
<add name="yourConfigConn" connectionstring="Data Source=.;Initial Catalog=ClaimsSQL1;Integrated Security=True">
Al Moje
17-Oct-11 5:15am
View
Could you show us code that you had been try?...
Al Moje
14-Oct-11 5:49am
View
Hi, I think there was something wrong in your code. I had been encountering that. Actually it is not the uid & pwd logon information is the cause. Advise you to check your code more on passing parameter(s) or any on it.
Al Moje
14-Oct-11 5:23am
View
Please rephrase you question not clear…
Al Moje
14-Oct-11 4:54am
View
Suggest you to use the debugger breakpoint tag to find out which control has initiated.
Al Moje
14-Oct-11 4:48am
View
Maybe the datasource of your ddl has no record(s). Could you post you code...
Al Moje
14-Oct-11 2:19am
View
Could you please post your code...
Al Moje
13-Oct-11 1:23am
View
I am sorry for not hitting your question. Maybe my answer could fit to you second question ‘How can we buffer data in imgByte’. Yes that's the way…
Al Moje
12-Oct-11 22:40pm
View
Hi,
I think there is a PostBack.
advise you to debug and trace the error something in loadDDlClinicName().
Al Moje
11-Oct-11 22:49pm
View
Could you show us your code that you've been try for?...
Al Moje
11-Oct-11 5:24am
View
Hi, how far have you done? Could you shown us code that you've been try?
Al Moje
11-Oct-11 4:42am
View
Hi, I think the best way to handle storing and retrieving image from uploaded file
is to store it in the database table as a varbinay(max) type. In such case there is no
much problem on retrieving from table to listview or datagridview and it is safer and feasible....
Al Moje
10-Oct-11 2:22am
View
Are images stored in your Database table as varbinary type? or just save it as a file in certain sub directory in your application assembly.
Al Moje
7-Oct-11 3:23am
View
Could you post code on inserting query so that we could canalized and see what’s wrong…
Al Moje
7-Oct-11 1:40am
View
Hi, I did not yet made a javascript rather function on such. Maybe you could google it.
By the way why you should check the dimension of an image? If your target is to save
such uploaded file into fix dimension eg. Width and Height, you could resize such uploaded image and save it with your target dimension you like...
see How to resize image next answer...
Al Moje
4-Oct-11 4:12am
View
Example result file name:
in above:
C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\Payroll_10-4-2011.bak
Al Moje
4-Oct-11 4:10am
View
Hi,
Change the
targetSavePath= ".\\"
Note that the backup will be copy to your machine at:
C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup
Al Moje
4-Oct-11 2:13am
View
Example of ConnectioString:
<connectionstrings>
<add name="MyConnectionString" connectionstring="Data Source=.;Initial Catalog=Payroll;Integrated Security=True">
Al Moje
4-Oct-11 2:06am
View
Hi,
If your targetSavePath = "f:\App_Data", the App_Data sub directory should be existing.
I only use to specify as example:
targetSavePath= "f:\"
catalogDb = "Payroll"
bConnToBackup = [MyConnectionString]
Example in you Web.Config:
<add name="MyConnectionString" connectionstring="Data Source=.;Initial Catalog=Payroll;Integrated Security=True">
if (!(bConnToBackup.ToLower().Contains("timeout")))
{
adCon = ";Connect Timeout=300; pooling='true'; Max Pool Size=300";
}
SqlConnection conn = new SqlConnection((bConnToBackup + adCon));
In above my statement the connection that I had defined does not content TimeOut
so I modify my connection and add the
";Connect Timeout=300; pooling='true'; Max Pool Size=300"
so that the connection timeout will be extend to 300 and also note
that the cmd.CommandTimeout = 300.
the Connection timeout and the CommandTimeout should be fair as shown set to 300.
cause sometimes backup take too long... You could increase the time out depend on needs.
Al Moje
4-Oct-11 0:58am
View
Some time it work or some time not...
Could you post your code so that we could defects...
Al Moje
28-Sep-11 22:24pm
View
You could not create a PK with null value and neither to create it without a unique value assigned on it? How come…?
Al Moje
26-Sep-11 5:56am
View
Hi,
are you saying that you are fetching a binary field(s) like image type field(s) in a record in you database file?
Al Moje
9-Sep-11 3:10am
View
Hi,
You mean to say that upon selecting or mouseover such image sholud be expand or zoom like magnifying
glass?. You question is not clear...
Al Moje
9-Sep-11 2:36am
View
Hi,
This is it:
// Aug. 12, 2011 by Algem Mojedo
// clalled from Upload
public string HyperLinkToUrl(string save2File)
{
save2File = save2File.ToLower();
if (!string.IsNullOrEmpty(save2File))
{
var reg = new Regex(@"(?<!<\s*(?:a|img)\b[^<]*)(\b((:\\|https)://|www\.)[^ ]+\b)");
return reg.Replace(save2File, new MatchEvaluator(ConvertUrlsMatchDelegate));
}
return save2File;
}
Al Moje
9-Sep-11 2:30am
View
Hi,
You may pass as like this example:
"\\192.168.1.177\ClientData\AlgemTest". The '\ClientData\AlgemTest' is my sub directory target.
Note: Also that the value in
UrlToHyperLink(string save2File) function was change when I post above. This should be:
var reg = new Regex(@"(?<!<\s*(?:a|img)\b[^<]*)(\b((http|https)://|www\.)[^ ]+\b)");
return reg.Replace(save2File, new MatchEvaluator(ConvertUrlsMatchDelegate));
Al Moje
8-Sep-11 23:40pm
View
I think you must specify first what is the content of you ArryList. Is this an interger or a byte[]
or any of type...
Al Moje
8-Sep-11 3:42am
View
I think you must supply the domain name of the remote site.
example: 'CONTOSO_DC' this should be the exact domain name of your target remote ftp.
and also the exact password to access such Domain.
Al Moje
8-Sep-11 2:27am
View
Hi,
I think the best way to manage the deletion of Data Grid, Data List or Array which is connected into Database is that upon deletion on such in a grid, list or array must reflect immediately in the database table rather delete it immediately in the database table.
Al Moje
7-Sep-11 22:24pm
View
Hi, I See your code and
I think the most appropriate way to your solution is to store those images in the database field.
Then make a handler (.ashx) code file to handle the retrieving of such image. By then the indexing of your rows and columns in your grid is fix and is easily pin point. I had been ecounter such problem of your's and the best solution I did is that first I've mention rather that storing image in target sub directory.
Al Moje
7-Sep-11 22:13pm
View
I think the most appropriate way to your solution is to store those images in the database field.
Then make a handler (.ashx) code file to handle the retrieving of such image. By then the indexing of your rows and columns in your grid is fix and is easily pin point.
Al Moje
6-Sep-11 5:34am
View
If you are using CrystalReportViewer Version 4.0 on ASP framework you must download some file needed
at CrystalDecisions web site...
Al Moje
6-Sep-11 3:59am
View
Not clear question. could you provide a code?
Al Moje
5-Sep-11 21:42pm
View
Oh.. looks like a home works. How far have you done? Could you see us what you have been trying for?
Al Moje
5-Sep-11 21:38pm
View
Could you see us your client code? rather the grid columns so that we could analyst what is your problem?
Al Moje
24-Aug-11 22:03pm
View
Try to check your defined css. Maybe the complex is their...
Al Moje
24-Aug-11 21:59pm
View
In your client code try to add
UpdatePanel
Al Moje
12-Aug-11 4:06am
View
Could you see us your code you've been try.
Al Moje
12-Aug-11 3:50am
View
Use OleDb for your connection
Al Moje
28-Jul-11 4:48am
View
Hi,
I think you must have an UpdatePanel to update your grid. On the click event trigger
that panel.
Al Moje
28-Jul-11 1:16am
View
Hi, I thing so...
cause I try it; and is working with us...
maybe you can modify some security options...
Al Moje
27-Jul-11 21:30pm
View
Yes... that is true; you can do it either of the two. If you choice C# coding use Lambda expression within a list
Al Moje
26-Jul-11 2:29am
View
Hi,
I'd notice that the buttons:
<asp:Button ID="btnPrevious" runat="server" Text="<<" />
<asp:Button ID="btnNext" runat="server" Text=">>" OnClick="btnNext_Click" />
you were triggered is outside you update panel
try to place it inside you update panel...
Al Moje
20-Jul-11 21:49pm
View
I had been encountered this situation when I am developing a Water Billing Application, whereas my Client told me to do this way… But I insisted him and replied ‘This is not good’. Then he replied too ‘Who should be the right?’ Then I’d remember my college days where my professor/teacher in marketing told us ‘Remember the Customer is Always Right’. Then it comes to my mind if ever I negate to what he told to do so… I will never pay…
Al Moje
20-Jul-11 4:45am
View
Hi,
You must not FinControl inside the row grid Cell.
the right way is, You could FinControl in a grid row.
You can do this way:
FileUpload upctl = GridView1.Rows[row.RowIndex].Cells[5].Text as FileUpload;
or you could cast as below:
FileUpload upctl = (FileUpload)GridView1.Rows[row.RowIndex].Cells[5].Text;
You had posted this two times. First you manipulate
inside GridView1_RowCommand.
Now you change it and trying to manipulate in
btnuploadimage.
I had tested my first solution answer and is working...
maybe you did not test it.
Please be Advise you to be consistent...
Al Moje
18-Jul-11 23:40pm
View
I agree with asp:RegularExpressionValidator if the
solution has no reference to Ajax, but if in cases
that the application is having reference to Ajax,
the asp:RegularExpressionValidator does not work.
I had been try this...
a referrence library to Ajax,
Al Moje
18-Jul-11 23:31pm
View
I agree with asp:RegularExpressionValidator if the
solution has no reference to Ajax, but if in cases
that the application is having reference to Ajax,
the asp:RegularExpressionValidator does not work.
I had been try this...
a referrence library to Ajax,
Al Moje
18-Jul-11 23:06pm
View
Hi,
How far have you done in trying? Can you show us your code, and the problem you have encountered? Try first your own talent.
Al Moje
18-Jul-11 2:54am
View
Hi,
getelementbyid is use in Client code not in Code behind.
Al Moje
13-Jul-11 3:22am
View
Hi Sir,
I think you must explore first the
Productivity Software for Database Developers, DBAs, and Analysts
by Quest Software (ORACLE)
http://www.quest.com/toad/
Al Moje
13-Jul-11 2:16am
View
If you have a Toad server utility:
try to execute this:
backup database Yourdatabasename to disk ='C:\Targetdatabasename.bak'
Al Moje
13-Jul-11 2:03am
View
Hi,
ClaimsORAConnection is a connection defined in your config.
<connectionstrings>
<!-- it is here -->
</connectionstrings>
Al Moje
13-Jul-11 0:44am
View
How far have you done in trying? Can you show us your code, and the problem you have encountered? Is problem encountered when processing is too long and has a Time out?
Al Moje
11-Jul-11 22:30pm
View
Sorry, I thought that you are developing under web application.
Al Moje
11-Jul-11 2:36am
View
Hi, Could you show us your code s that we could analyze?
Show More