User Profile
Collapse
-
Thanks a lot Plater, I actually didn't think about doing it that way! It works perfectly!!!... -
Thanks a lot Vekipeki!
I just noticed now that my code pops up the message box for each element.. thanks once again, I'll try out your suggestions.Leave a comment:
-
Detect Acrobat Reader
Hi,
Got a problem detecting if Acrobat Reader is installed on a machine, would really appreciate your help.
I've got a PDF Report that I export to a directory then open it with Acrobat Reader. I need to check if the PC has Acrobat Reader installed before I open it...
I found this code but it's not working, i always get the messagebox even if the PC has the software installed.
Code:string RegPath
-
-
Crystal Report code on WinForms
I've got a web page that I use to generate Crystal Reports, it works perfectly but now I want to do it in WinForms. I need you guys to help me out on the exporting to PDF, the ExportToHttpRes ponse won't work on WinForms...
Code:private void btnCK2_Click(object sender, EventArgs e) { ReportDocument doc = new ReportDocument(); doc.Load("...\RPT\CK2.rpt");
-
Thanks!
I tried this and I get an "Identifier expected"error!
Code:<% If (Session["PartnerLoggedIn"]) { %>Partner User logged in: <b><%=Session("PartnerUserName")%></b> - on behalf of - <%}%>Logged in as: <b><%=Session("user")%></b>
Leave a comment:
-
The code's actually on an ASP page, want to put it on an ASPX C# page.Leave a comment:
-
Convert VB Code to C#
Hi,
Can someone please help me convert this code snippet from VB to C#
[CODE=VB]<% If Session("Partne rLoggedIn") Then %>Partner User logged in: <b><%=Session(" PartnerUserName ")%></b> - on behalf of - <% End If%>Logged in as: <b><%=Session(" user")%></b>[/CODE]
Thanks! -
C# WEB: Submit textbox value as hex
Hi,
I'm trying to get a value from a textbox then save it to the database as a hex number. Here's what I have so far, but its totally wrong.. it converts the value I enter in the textbox to a hex number, but i want it to submit the exact value that's in the textbox.
[CODE=C#]
DAL.CashTrack.T erminals addTerm = new DAL.CashTrack.T erminals();
addTerm.FkTermi nalKey = Convert.ToInt64 (txtTermKey.Tex t, 16);... -
-
Plater, could you please explain how i'd go about making the page not chached? I don't know much about that.
Thanks!...Leave a comment:
-
Here's my HTML Code, i did specify the ImageUrl attribute
[CODE=HTML]
<table style="width: 100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td align="left" style="height: 50px; padding-left: 4px; border-bottom: #cccccc 2pt dotted;">
<asp:Image ID="SmartecLogo Image"...Leave a comment:
-
C#: Refresh image on page load
Hi everybody,
I'm trying to load a different logo depending on who's logged in but the code doesn't seem to be working, well, it only works after i've rebooted my PC. Even when I log out it doesn't show the image its supposed to show for an un-authenticated user.
I'm guessing its something to do with refreshing the page.. but even when I manually refresh the page it doesn't work.
Hope someone can help me asap,... -
[CODE=SQL]
ALTER PROCEDURE [dbo].[spGetTerminalFo rBatch]
(
@Terminal VARCHAR(8)
)
AS
SELECT DISTINCT TerminalId
FROM vwDepositsByBat ch
WHERE TerminalId = @Terminal
ORDER BY TerminalId
[/CODE]
I wrote a new SP but I'm not really sure what to edit on my C# codeLeave a comment:
-
C#-WEB: Selected Value in User Control
Hi everybody!
I've got a User Control "SelectBatchByT erminal", that has two dropdown lists, "TerminalDropDo wnList" and "BatchDropDownL ist".
Code: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;
-
There is already a fkCanisterId in the CanisterTrackin g table that matches the CanisterLongID in the Canisters table, i just didn't think about using that.
I didn't design the database, so i'm also noticing some things now....Leave a comment:
-
Thanks Amit..
Tried it and the count is 9814 for all the records, that can't be right.
I made a couple of changes to the code coz i kept getting errors
[code=sql]
SELECT CanisterID, CanisterTTNum, COUNT(TerminalI D) AS Count
FROM (SELECT c.fkCanisterLon gID AS CanisterID, c.CanistersTTNu m AS CanisterTTNum, t.TerminalId AS TerminalID, ct.TrackingDate Time
...Leave a comment:
-
I have 3 tables, CanisterTrackin g, Terminals, and Canisters.
CanisterTrackin g:
------------------------------
fkTerminalID
TrackingDateTim e
Terminals:
----------------------
fkTerminalKey
TerminalId
fkBankId
Canisters
-------------------
fkCanisterLongI d [Dallas Number]
CanistersTTNum
fkBankKey
Code:SELECT
Leave a comment:
-
Count Subquery
Hi everybody,
I hope someone will be able to help me out, i'm quite new to databases.
I've got 3 tables, check the image below.
I've created a view, now I want to have another one that will use the current view to show all canisters that have been through more than one terminal. I know i need to have a COUNT somewhere but I'm not really sure how to go about doing it.
This new view should contain...
No activity results to display
Show More
Leave a comment: