15,891,033 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 Adeel Ijaz (Top 13 by date)
Adeel Ijaz
15-Dec-13 16:53pm
View
u rock dude
Adeel Ijaz
15-Dec-13 16:30pm
View
yes i did. as i said i have tried third party controls (names given in my post).
The main thing for me are employee pictures which should come in the chart, rather then the points
Adeel Ijaz
3-Dec-13 18:12pm
View
i have tried using gmail as the server i meam , smtp.gmail.com and port 465 giving my email + password.
and the code still generates the same exception.
failure sending email. Unable to connect to remote server
Adeel Ijaz
3-Dec-13 17:44pm
View
No, but i am testing the application. Actual would be the customer's server.
Adeel Ijaz
3-Dec-13 17:37pm
View
in the smtpclient.credentials i am not passing my actual userid and password, instead i am passing hard coded string "UserId" , "Password". Is it because of this ?
Adeel Ijaz
3-Dec-13 17:36pm
View
i am using ip actually 10.10.0.45
Adeel Ijaz
3-Dec-13 17:29pm
View
in the smtpclient.credentials i am not passing my actual userid and password, instead i am passing hard coded string "UserId" , "Password". Is it because of this ?
Adeel Ijaz
3-Dec-13 17:28pm
View
I am using Ip address = "10.10.0.45"
Adeel Ijaz
21-Nov-13 18:40pm
View
actually we have libraries that pull data from database and returns a normal dataTable to us, all we do is just the databind.
so not sure how should i present the code.
but i dont understand, the data that is loaded initially on page load with no problems, why does it throws an exception on 1st user search ???????????? and not on any searches after that ?
Adeel Ijaz
21-Nov-13 17:54pm
View
ya but it is all happening fine as far as i can check using the breakpoints.
the code executes completely. And after i have debugged all the function. The exception comes up (Remember , it comes only on the first search of the user)
Adeel Ijaz
20-Nov-13 18:40pm
View
function searchClick() {
var oThrobber = document.getElementById("throbber");
if (oThrobber) {
oThrobber.style.visibility = "visible";
}
return true;
}
function setFocus(sID) {
try {
var oInput = document.getElementById(sID);
if (oInput) oInput.focus();
}
catch (exception) {}
return;
}
function Grid1_onItemDoubleClick(sender,args) {
// do something with the passed (grid)item
var selectedItem;
var lookupValueFieldCode = $('.divLookupContent').data('lookupvaluefieldcode');
var lookupValueFieldValue = null;
var selectedItems = sender.GetSelectedItems();
var sInputClientId = selectedItems[0].Cells[0].Text;
var sHtml = "";
for (var i = 0; i < selectedItems[0].Cells.length; i++)
{
sHtml += selectedItems[0].Cells[i].Name + "~" + selectedItems[0].Cells[i].Text + "#";
if (lookupValueFieldCode && lookupValueFieldCode == selectedItems[0].Cells[i].Name) {
lookupValueFieldValue = selectedItems[0].Cells[i].Text;
}
}
var lookupParam = { 'sHtml': sHtml, 'lookupValueFieldCode': lookupValueFieldCode, 'lookupValueFieldValue': lookupValueFieldValue };
window.parent.setLookupValue(lookupParam);
// pass the id to your javascript on the master page
}
function Grids_onLoad(sender, eventArgs)
{
}
function CheckKeyCode(e,sID) {
var code;
if (!e) var e = window.event;
if (e.keyCode) code = e.keyCode;
else if (e.which) code = e.which;
if (code == 13) {
var oButton = document.getElementById(sID);
if (oButton) {
oButton.focus();
oButton.onclick();
return true;
}
}
return true;
}
Adeel Ijaz
20-Nov-13 18:39pm
View
AutoEventWireup is already true.
Adeel Ijaz
20-Nov-13 1:06am
View
on .aspx page
<asp:Button CssClass="button orange" Text="Go" runat="server" ID="btnSearch" OnClick="btnSearch_Click">
on code behind page, we have onload function
protected override void OnLoad(System.EventArgs e)
{
Frontier.HR21.UI_Code.iChrisUtilities.AddCustomStylesheet(this.Header);
bool isAnyGridCallback = false;
foreach (string key in _TabFormCodes)
{
if (key == null)
{
continue;
}
if (_SearchButtons.ContainsKey(key))
{
var btn = _SearchButtons[key] as Button;
btn.Text = Resources.GlobalResources.Lookup_Go_Button;
}
if (_SearchFieldLabels.ContainsKey(key))
{
var lbl = _SearchFieldLabels[key] as Label;
lbl.Text = Resources.GlobalResources.Lookup_Search_Label;
}
if (_FieldPickerLabels.ContainsKey(key))
{
var lbl = _FieldPickerLabels[key] as Label;
lbl.Text = Resources.GlobalResources.Lookup_Picker_Label;
}
if (_CurrentOnlyCheckBoxes.ContainsKey(key))
{
var chb = _CurrentOnlyCheckBoxes[key] as CheckBox;
chb.Text = Resources.GlobalResources.CurrentOnly_CheckBox;
}
if (_Grids.ContainsKey(key))
{
var grid = _Grids[key] as ComponentArt.Web.UI.Grid;
if (grid.IsCallback)
{
isAnyGridCallback = true;
}
}
}
if (!Page.IsPostBack && !isAnyGridCallback)
{
// Initialise the static fields when first time load the grid.
foreach (string key in _TabFormCodes)
{
if (key == null)
{
continue;
}
Initialize(key);
if (_CurrentOnlyCheckBoxes.ContainsKey(key))
{
var chb = _CurrentOnlyCheckBoxes[key] as CheckBox;
string sessionKey = string.Format("{0}{1}", Interface_LookUpForm.SessionKeyLookUpFormCurrentOnly, key);
Frontier.Communication.Utilities.Utilities.SetItemToSession(sessionKey, chb.Checked);
}
// Bind the data to grid.
_BindGridData(key);
}
}
// Initialise the other objects on the page.
this.btnSearch.OnClientClick = "searchClick();";
string sThemesPath = "../App_Themes/" + System.Web.HttpContext.Current.Session["CurrentTheme"].ToString();
panelThrobber.Controls.Add(new LiteralControl("<img id='throbber' src='" + sThemesPath + "/images/progress/spinner.gif' style='visibility:hidden;' alt='spinner' height='16px' width='16px'/>"));
textBoxSearch.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('" + btnSearch.UniqueID + "').onclick();return false;}} else {return true}; ");
base.OnLoad(e);
}
and this is the event
protected void btnSearch_Click(object sender, EventArgs e)
{
var control = sender as WebControl;
string formCode = _MapFormCode(_SearchButtons, control);
// Initialise the static fields when first time load the grid.
Initialize(formCode);
// Start to search
if (_FieldPickerDropDowns.ContainsKey(formCode))
{
var ddl = _FieldPickerDropDowns[formCode] as DropDownList;
_SearchTrnFieldDict[formCode] = ddl.Select
Show More