15,905,028 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 Member 9196002 (Top 23 by date)
Member 9196002
24-Oct-12 8:19am
View
well..this is what my code is doing..but it doesn't proceed further.
echo ' <script language="JavaScript" type="text/javascript">
//<![CDATA[
window.open(\'./index_pdf.php?'.$query_string.'\',\'test_ev\'location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no\');
//
</script>';
echo'<script language = "JavaScript" type="text/javascript">
//<![CDATA[
window.open('./save.php?','location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
//
</script>';
Member 9196002
24-Oct-12 8:18am
View
the pdf is for printing the document.It is working perfectly fine. I wrote the code to open the popup in the next statement with a timeout..but only the window of the pdf opens
Member 9196002
24-Oct-12 6:54am
View
Deleted
the pdf is for printing the document.It is working perfectly fine. I wrote the code to open the popup in the next statement with a timeout..but only the window of the pdf opens
Member 9196002
22-Aug-12 5:57am
View
its done!! :)there was no need of any parsing required i directly referred to the cell entry in the datatable and now its working fine!!thanks a lot!! :)
Member 9196002
22-Aug-12 3:18am
View
the namespaces have been compiled as reference assemblies and loaded onto the project and costPos is one of the identifier in that namespace
Member 9196002
22-Aug-12 3:00am
View
userManager user = Global.sessions.getUser(Request.UserHostName);
ArrayList reports = (ArrayList)Session["reportSelect"];
foreach (GridViewRow row in reportTable.Rows)
{
CheckBox cb = (CheckBox)row.Cells[8].FindControl("cb");
if (cb.Checked)
{
testBench bench = new testBench();
and then the rest of the code follows
Member 9196002
22-Aug-12 2:51am
View
yes..but even when i select the checkbox where the value is 123 it doesn't meet that condition.
Member 9196002
22-Aug-12 2:48am
View
Well.this is what i have been trying to do but it doesnt seem to be meeting the first condition itself.
int value;
int.TryParse(bench.costPos, out value);
if (value == 123)
{
MailMessage message = new MailMessage("no-reply@gmail.com",
"tony.romo@gmail.com", "Kostenstelle : 123",
"Kostenstelle : 123");
/* create SMTP Client and add credentials */
SmtpClient smtpClient = new SmtpClient("SERVER");
smtpClient.UseDefaultCredentials = true;
/*Send the message */
smtpClient.Send(message);
}
else
{
MailMessage message = new MailMessage("no-reply@gmail.com",
"victoria.ray@gmail.com", "Kostenstelle : 456",
"Kostenstelle : 456");
/* create SMTP Client and add credentials */
SmtpClient smtpClient = new SmtpClient("SERVER");
smtpClient.UseDefaultCredentials = true;
/*Send the message */
smtpClient.Send(message);
Member 9196002
21-Aug-12 6:59am
View
ok!! :)thanks again!!
Member 9196002
21-Aug-12 6:49am
View
i figured out what the issue was..Costpos is of the type String but the value in the document i was referring to which was 123 is of int..is there a workaround for this comparision?
Member 9196002
21-Aug-12 4:46am
View
ok!!i shall check that..i guess it should work!! thanks a lot!! :)
Member 9196002
21-Aug-12 4:40am
View
Oh ok.Does it make a difference if you are referencing b.costPos to a value from a datatable? 123 is the value stored in the document.
and cb is not null..i made sure its checked
Member 9196002
21-Aug-12 4:31am
View
the problem is that the condition is not meeting
Member 9196002
21-Aug-12 4:31am
View
you were right..the condition is not met.
Member 9196002
13-Aug-12 14:19pm
View
this is the one without the hyperlink..with the option of a check box to select the record
Member 9196002
13-Aug-12 14:18pm
View
namespace Website.user
{
public partial class reportSelect : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
userManager user = Global.sessions.getUser(Request.UserHostName);
ArrayList reports;
ArrayList cmd = new ArrayList(), value = new ArrayList();
testBench bench;
int i;
if (user.getPrivilege() < 0)
Response.Redirect("~/privilege.aspx");
if (Session["reportSelect"] == null)
Response.Redirect("~/invalid.aspx");
//write the table with the reports
if (!IsPostBack)
{
reports = (ArrayList)Session["reportSelect"];
reportTable.DataSource = reports;
reportTable.DataBind();
i = 0;
cmd.Add("ID=");
value.Add("");
foreach (dbTypes.report report in reports)
{
value[0] = "'" + report.benchId + "'";
while (!Global.sessions.requestDatabaseAccess(Request.UserHostName, new string[] { "TEST_BENCH" }, databaseAccess.ACCESS_READ)) ;
try
{
bench = (testBench)Global.benchRead.getTestBenches((string[])cmd.ToArray(typeof(string)), (string[])value.ToArray(typeof(string)))[0];
}
catch (Exception ex)
{
Global.sessions.writeLog("Unable to get the bench!", "reportSelect.apsx", ex);
ErrorMsg.Text = "Fehler: Bitte wenden Sie sich an den Administrator!";
return;
}
finally
{
Global.sessions.releaseDatabases(Request.UserHostName, databaseAccess.ACCESS_READ);
}
reportTable.Rows[i].Cells[1].Text = report.reportId.ToString();
reportTable.Rows[i].Cells[2].Text = bench.mechId;
reportTable.Rows[i].Cells[3].Text = bench.elecId;
reportTable.Rows[i].Cells[4].Text = bench.name;
if(report.reportType == 1)
reportTable.Rows[i].Cells[5].Text = "Wartung";
else
reportTable.Rows[i].Cells[5].Text = "Reparatur";
reportTable.Rows[i].Cells[5].ForeColor = System.Drawing.Color.Black;
reportTable.Rows[i].Cells[6].Text = report.wishRepairDate;
if (report.assembler != "")
{
DataTable dt = helper.ldap.userAttributs(report.assembler, new List<string>(new string[] { "givenName", "sn" }), true);
foreach (DataRow aRow in dt.Rows)
{
foreach (DataColumn aColumn in dt.Columns)
{
if (aColumn.Caption == "givenName")
reportTable.Rows[i].Cells[7].Text = aRow[aColumn].ToString();
else if(aColumn.Caption == "sn")
reportTable.Rows[i].Cells[7].Text += " " + aRow[aColumn].ToString();
}
}
}
reportTable.Rows[i].Cells[8].Text = report.priority.ToString();
if (report.timeOutput != "01.01.1970 00:00:00")
{
reportTable.Rows[i].Cells[5].BackColor = System.Drawing.Color.LightGreen;
}
else
{
if (report.wishRepairDate == "")
{
reportTable.Rows[i].Cells[5].BackColor = System.Drawing.Color.Red;
i++;
Member 9196002
13-Aug-12 14:07pm
View
hey christian,
I just made some changes to the program,rather than attaching a datasource, there was a piece of logic available with for a different page to fetch the records, i tried modifying that but again i seem to be facing the same issue.I'm not at all able to figure out to what the issue is
Member 9196002
13-Aug-12 9:12am
View
ohh ok!!i will try that.. :) thanks a lot!!
Member 9196002
13-Aug-12 9:06am
View
yes..its a datatable
Member 9196002
13-Aug-12 9:04am
View
the thing is i already tried this way and also adding a hyperlink through the edit column on the design page..it just doesnt seem to take the data text field.keeps on giving me an error saying "report_id" or any other variant i use does not exist in the data source.However in the database table..it is found under report_id itself
Member 9196002
13-Aug-12 8:48am
View
so it will be like
<asp:hyperlinkfield xmlns:asp="#unknown">
DataNavigateUrlFields="?/manage.aspx"
DataTextField="Report_id"
HeaderText="Auftragsnummer"
/>
Member 9196002
2-Jul-12 19:22pm
View
Hi i have another question, I'm able to generate data as needed but is there a way to generate the same data in form of a sql script..its a lot easier for me to import the data in that way.
Member 9196002
2-Jul-12 17:00pm
View
Thanks a lot.That was very helpful :)
Show More