16,004,529 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 .NET 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 jkirkerx (Top 200 by date)
jkirkerx
4-Aug-16 14:45pm
View
Alright
jkirkerx
4-Aug-16 13:12pm
View
Thanks Richard!
Say I have question or just curious about a formula I'm working on that I would like to run by yo choose to entertain the question or formula, could you pm me? if not that's cool
jkirkerx
3-Aug-16 17:00pm
View
I didn't know there was a Session_OnStart event.
Plus I thought only primitives could be stored in a session. hmm
Good job Richard!
jkirkerx
3-Aug-16 16:55pm
View
https://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient.receivebuffersize(v=vs.110).aspx
jkirkerx
3-Aug-16 16:14pm
View
Yeah but a session is an object that the web server controls, and is just a string or primitive object. Asp.net provides access to the session on the web server called Session.
You may be able to save a base64 string of bytes in the session. Make a byte array and convert it to a base64 string and vice versus.
jkirkerx
3-Aug-16 15:56pm
View
WriteLine? WriteLine to where? to write a line on the webpage, the text has to be in the response output of HTML like Response.Write("Text")
What are you trying to store, like an image?
jkirkerx
6-Jan-15 19:29pm
View
I just wanted to hook it up, so I can test it. Yes I do have 1 or 2 lines incorrect, in which I am now going to use your solution, but you were just 1 step ahead of me on this, and 1 hour as well.
Slow down dude, and at least give me some time to move.
This is what I translated.
http://www.karpach.com/first-data-wcf-e4-integration.htm
jkirkerx
6-Jan-15 19:25pm
View
Why did you down vote it, I just wanted to test the bahavior, I just needed to hook it up.
jkirkerx
6-Jan-15 18:39pm
View
I'm trying to hook the behavior that I already translated to the code example above,
SendAndCommit(txn)
I just can't figure out how to add the behavior to SendAndCommit(txn)
I did a poor job in explaining, probably because I didn't want to say the wrong thing.
jkirkerx
18-Dec-14 23:34pm
View
Those attr threw for a loop. Not use to them at that level.
The company had several sets of API's and some wsdl's. I was pointed to the wrong set by the sales rep, and tech support told me to use the new wsdl.
I'll take it for a spin Friday, and see which one works better.
I did finish the XSD file, and compiled it against xsd.exe for a class to code against in asp.net.
First data seems to be sort of confusing when it comes to documentation, compared to others I have worked with.
jkirkerx
18-Dec-14 12:32pm
View
Yah, I'm kind of fuzzy on those attributes in the first element.
Not quite sure how to implement that. I wrote it by hand, and modeled it using Liquid XML, community mode.
jkirkerx
17-Nov-14 17:55pm
View
I think he meant to elevate as high as the Burj Khalifa for UAE
http://en.wikipedia.org/wiki/Burj_Khalifa
jkirkerx
17-Nov-14 16:31pm
View
What's the difference between a mobile number and a phone number?
What country is the number for?, most countries are different.
jkirkerx
14-Nov-14 16:39pm
View
It's not an error, it looks like it's out of the IIS server log.
200 means it was successful
jkirkerx
13-Nov-14 17:21pm
View
Nobody really uses the ajax control toolkit anymore. It was sort of replaced by JQuery about 2 or 3 years ago.
jkirkerx
13-Nov-14 14:14pm
View
I don't recall a combobox being one of the of the valid objects in asp.net.
There is a textbox and dropdownlist, but not both combined. It has to do with HTML and input elements.
You really need to delete that object, and drag a valid one from the ajaxcontroltoolkit.
In my opinion, nobody uses the ajaxcontroltoolbox any more, and I think Microsoft sort of dumped it about 2 years ago, and sort of accepted JQuery has it's successor.
I stopped using it back in 2009, and found that it was just evil, and unpredictable when used in the production environment.
Your really better not using asp,net stuff unless you have to, and just using the basic HTML elements, and Javascript and Jquery to manipulate the DOM.
jkirkerx
11-Nov-14 19:07pm
View
Microsoft went out of there way to make IE 10 and 11 none detectable, so they can be treated like everybody else.
jkirkerx
11-Nov-14 19:03pm
View
I wonder if he the OP started with Chrome, and that's the last one.
Google has made it harder to do that.
jkirkerx
3-Nov-14 16:08pm
View
I didn't think it was the logic, for the server fills in the textbox values, and then the server reads the textbox values back to determine which script to load.
Maybe he preloaded a script, and the script doesn't change on postback.
Maybe it's a combination of both our solutions, I can't run the code or see the whole picture here.
Well time will tell, let's see what the OP says later, if he responds.
jkirkerx
3-Nov-14 15:19pm
View
Because I conversed with the OP via the comments, and he said he didn't know javascript or jquery very well, and I think it's the proper method to implement.
In my opinion, he or she created something very complicated.
jkirkerx
3-Nov-14 12:23pm
View
How does the textbox gets its value?
Does the user input the value?
Or is the value a placeholder generated by the server?
jkirkerx
2-Nov-14 17:52pm
View
If the internet is down at your location, then no else outside your location will be able to access the web page anyways.
Usually when the connection is down, people work on fixing that problem first, and are not worried about maps.
jkirkerx
31-Oct-14 18:04pm
View
for the masterpage example, did you place your code on the masterpage code behind?
To the best of my knowledge, when referencing html or asp.net objects in Content PlaceHolder 2 MainContent, the code goes on the webform, that references the masterpage.
I would have to copy your code into a sample and see what happens with page.findcontrol to see if asscontrol is nothing. If I get time later, I will give it 5 minutes.
jkirkerx
30-Oct-14 16:37pm
View
I would of wrote it in Javascript, in which when you click the print button, the javascript just gets the values and determines which page the user should be redirected to.
When I register a script, I just register 1, or how many are needed to complete all the tasks on the page.
Your design makes no sense to me, and seems to make things much more difficult than they need to be.
jkirkerx
29-Oct-14 19:25pm
View
Sounds like you have some old refs using 2.0, but your compiling in 3.5
System.Data
from Version "2.0.0.0" [] to Version "3.5.0.0
System, Culture
from Version "2.0.0.0" [] to Version "3.5.0.0
jkirkerx
27-Oct-14 13:39pm
View
You make a skeleton master page of your HTML, and create containers for the reusable parts. Then you create user or server controls for the parts, and register the parts inside the containers.
Such parts would be the navigation menu, perhaps a product display system and so forth. Now the parts are reusable, you control just 1 source for the user control, and never have to update every form you use the part on. Just update it once in 1 place.
jkirkerx
27-Oct-14 13:07pm
View
How about marking that as solved so others know what to do
You picked that up pretty quick.
That's one of the neat things about asp.net, gives you quite a bit of flexibility in designing and maintaining your forms.
jkirkerx
25-Oct-14 16:53pm
View
Have you considered just writing a user control?
Write a user control or server control in code behind to build your html, then just register the user control or server control.
jkirkerx
25-Oct-14 13:37pm
View
That's what Javascript is for. To manipulate the DOm o rpage HTML in the browser on the client side, not on the server side. So you write javascript to alter CSS style in HTML elements to change colors, sixe, whatever you like.
I think you phrased your question wrong.
jkirkerx
24-Oct-14 16:41pm
View
Isn't that a jquery.ui feature?
The new version should work fine, I know it doesn't support IE 6-9
jkirkerx
24-Oct-14 16:30pm
View
I gave up on the Microsoft validators years ago, and went jquery or javascript to validate values before posting or hitting the submit button.
In a production environment, they were unreliable.
jkirkerx
24-Oct-14 12:26pm
View
I use web services all the time, in conjuction with jquery ajax calls, and use the session variable all the time. I even make calls from the web service to a class, and check against session vars and it works fine.
You would have to post an example of your web service and call to a class for us to see what is happening.
jkirkerx
23-Oct-14 18:18pm
View
Did you actually make a context?
Dim m_context as httpcontext = httpcontext.current
Does the session actually exist?
m_context.session("yourValue")
jkirkerx
22-Oct-14 14:06pm
View
It's how you post the data to the next form, you need to rephrase your question to how to post form data to the next form, and show that code.
jkirkerx
21-Oct-14 19:23pm
View
Did you use an animated gif type image?
Does an image even show up?
jkirkerx
18-Oct-14 18:10pm
View
Maybe you need a new computer, one thats faster, or a solid state boot drive.
jkirkerx
16-Oct-14 14:14pm
View
I just finished my first production quality version of a windows service including the eventlog dll that is registered to translate the event log messages, and it's self installing as well.
It's like building a car with no windows and you have to test drive it to make sure its works correctly.
jkirkerx
8-Oct-14 12:18pm
View
Deleted
Maybe it's changed since revision 2, I haven't tried in in over 6 years now, and just code using panels and default buttons.
jkirkerx
7-Oct-14 16:15pm
View
Did you look at the event log on the sql server, and check for SQL messages?
jkirkerx
7-Oct-14 16:06pm
View
Sounds more like a twitter or facebook post to me.
jkirkerx
30-Sep-14 17:14pm
View
Did you know that the selection index is the position number of the choice numbered from the top as 0 , 1 2 3 4 5
And not the value of the option element, or the text of the option element.
Did you set the control to auto postback?
jkirkerx
23-Sep-14 14:27pm
View
what exactly does the code do?
maybe you need new code
jkirkerx
22-Sep-14 14:12pm
View
You pass the value of the first dropdown using javascript and ajax to the server and return back a json array of name/value back and use that to populate the next dropdown.
Or you can use an update panel and do it in code behind.
Which method would you like us to write your code for?
jkirkerx
21-Sep-14 15:26pm
View
When you migrate a windows project, you create a new folder like
/Visual Studio 2010/Projects
/Visual Studio 2013/Projects
You copy your project from the 2010 folder to the 2013 folder.
Then you open the project in the 2013 folder and it will do the migration
Now test the project, and if an error show up, or tons of errors, you fix the errors one at a time until it runs correctly.
You never migrate code in the 2010 folder with a newer version of Visual Studio, you never know what the newer version of Visual Studio will do.
If its a web project, you just open the folder that the project is in, and run the code. If you get an error, then you fix the error.
But you have to post the error message and the line of code it points to in order for anyone here to help you.
jkirkerx
17-Sep-14 18:20pm
View
Did you even load jquery in the head tags?
jkirkerx
28-Aug-14 18:35pm
View
I didn't think of using a web service that the windows app can access to transfer data over.
I took the question quite literally in the context of the description, type in the textbox and the text will magically appear in a textbox within the browser.
I suppose I could of suggested a way around the OPs first design thought.
Thanks for the constructive thought there, I'll be nicer next time.
I shouldn't answer questions while waiting for web projects to load in debug.
jkirkerx
7-Jul-14 16:43pm
View
Oh I get it now.
I put the value expression in the textbox where the value goes, the placeholder
and put the color expression in the textbox property font color expression to toggle the color.
2 different expressions in 2 different places
I would of never thought of that, but makes sense now.
jkirkerx
11-Jun-14 19:31pm
View
Maybe we should be looking at your zone file,
or try DIG or nslookup on send.one.com. i tested send.one.com, it's legit
you must have a bad dns address in your netowrk settings
or try
csmtp-cluster.one.com
jkirkerx
9-May-14 16:45pm
View
You would probably store the start time in a session value, so it persist even if you close the browser.<br>
exam name and start time.
Why does the browser close when you start the exam?
jkirkerx
27-Nov-13 17:34pm
View
Check your save path
xmlDoc.Save(HttpContext.Current.Server.MapPath("xml/") + s1 + ".xml");
print out the path and confirm it.
jkirkerx
23-Nov-13 15:02pm
View
I got it working now, not sure what fixed it, I edited the question with what I did.
Uninstalled VS 2012, reinstalled and applied a patch. Go Figure, scared to install update 4 again.
jkirkerx
22-Nov-13 13:22pm
View
Actually everything was read only, I just change that after I replied earlier.
I'm sure it's something stupid, I had the last computer for 7 years.
Right now, I'm messing with this
Dim file_ioPermission = New FileIOPermission(FileIOPermissionAccess.AllAccess, m_appDataPath & "App_Data\smtp\smtpConfig.ini")
file_ioPermission.Assert()
And my friends wondered my I wasn't excited about my new computer!
And I'm the last one to migrate to Windows 7, needed a new computer.
jkirkerx
22-Nov-13 12:54pm
View
I ran across that searching the internet for answers. I meant it's a web project, and was referring to the App_Data folder in the web project, not the App_Data folder in the User Folder.
I store it there because I wrote the program years ago in .net 2.0
jkirkerx
22-Sep-13 17:44pm
View
maybe you should setup an account for your use and create a FTP server pointing to your project folder, assigning the permissions from the account you created.
The FTP Server is in IIS Admin, or you need to add the program.
jkirkerx
8-Sep-13 16:06pm
View
So its been months, and you still haven't figured it out yet.
How about marking the issue solved if my solution helped you.
jkirkerx
8-Sep-13 0:09am
View
Well that's solved, how it gets marked solved, all he needed to post was the stack trace.
jkirkerx
3-Sep-13 18:49pm
View
You use catch as smtpexception to get the error reported by the mail object
jkirkerx
3-Sep-13 18:34pm
View
I could see if you were struck on a line or 2, but to convert the whole thing!, I don't think so.
ASP.net is a strict managed language, and requires declaring variables as Integer, Decimal, String, etc, at least the primitive ones. There is no magic conversion program, It would have to be converted by eye, brain and hand.
I wonder if this is one of those freelancer jobs that you were awarded.
jkirkerx
3-Sep-13 18:17pm
View
In my opinion, that's a bad design.
Click the button,
show the popup,
Click to close the popup.
If you look around like at Google UI designs, they seem to always have an X in the upper right corner to close things.
Like on mobile devices, I don't think there is a hover event, you have to click or touch the button. Hover is fine for changing the pointer
jkirkerx
3-Sep-13 17:16pm
View
I wouldn't convert it, just write a new one in c#
jkirkerx
30-Aug-13 16:21pm
View
Ditto!
That's a custom job, can't see a demo being produced for that. I have customers that want recurring credit card charges, sort of the same thing. But the program I wrote is in c++, and the project is too large to post.
So I have a windows program that I wrote that runs on the server, and waits for jobs to be processed in the database queue. Maybe I should of made it a service instead.
jkirkerx
28-Aug-13 17:22pm
View
I would of never thought of using the clients date and time.
You have time zones, date formats like US and Europe. UTC time.
Just use the servers time as a starting point, then make time adjustments as required.
jkirkerx
26-Aug-13 17:38pm
View
maybe the progress works, but you don't see it
try putting a sleep command in your button click code
threading.sleep(2500)
and wrap your progress text in a span tag with style color so you can see it.
<span style="color:white;">Progress</span>
jkirkerx
26-Aug-13 16:41pm
View
I don't know anything that can do that, maybe grab 16 images at a time, format them in size and placement, print a page, then move to the next 16 images and loop it.
jkirkerx
26-Aug-13 14:43pm
View
I never heard of them.
Gateways are usually named value pair or XML to package your data, and a comma delimited file to read the response back.
You have to get the API Documentation from them, and read it, then code to it.
jkirkerx
26-Aug-13 14:07pm
View
Looks like your working with a prototype, of someone that translated the PHP code to ASP.Net.
If I remember correctly, there is a client side, which is the selection of the file, and a server side, which is a iHTTPHandler. The iHTTPHandler runs in place of a webpage, in the background, and is JSON capable.
I think the client side selects the file(s) and calls the server side iHTTPHandler to do the upload work for each file, and the handler can respond back with results or things to do in JSON format.
To help you would be me actually working with the code and writing a handler for it, so I'm not going to offer a solution.
Try uploadify first to learn how it works.
This is a code project link to explain how it works
http://www.codeproject.com/Articles/46745/Upload-files-using-an-HttpHandler
jkirkerx
23-Aug-13 16:44pm
View
I have been working on that for years, I'm pretty close 99% to a perfect installation of IIS Server 5.5, 6, 7, 7.5, SQL Server and my web application, but had to write in in c++
Good luck on that.
jkirkerx
19-Aug-13 18:57pm
View
Selling photos is hard.
How are you going to prevent people from stealing the photos, or prevent Google from crawling the photos you sell and offer them for free?
I wrote a photo selling site in PHP back in 2005. Worked good, but it took some thought on how to store electronic media that can't be stolen.
jkirkerx
18-Aug-13 0:28am
View
You can't change the .Net mail client, it's sort of fixed in what it does. You have to tweak your postfix server to negotiate a level of security that they can agree upon.
Add a relay premission to the client, like the ipaddress or ipaddress block of servers or clients that can relay.
I posted the log in the solution below at the end, sorry about that, didn't see it the first time.
jkirkerx
15-Aug-13 16:35pm
View
Do you have a minimum cipher requirement on the mail server?
Anonymous TLS connection established from unknown[a.b.c.d]: TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)
Anonymous TLS connection established from unknown[a.b.c.d]: TLSv1 with cipher AES128-SHA (128/128 bits)
you should search "554 5.7.1, postfix" on the interwebs for an anwser
jkirkerx
15-Aug-13 14:35pm
View
Deleted
I didn't really see anything wrong in your code, except that you did not use params for data input.
You probably have an illegal char, or special web type char in your input, that is breaking your SQL statement.
In the web world, chars like <pre>'",/</pre> have special meaning.
jkirkerx
8-Aug-13 12:28pm
View
The comment direct towards the OP, not you. It was just meant as a reminder to the op to check his Script Manager Settings and Update Panel Settings.
jkirkerx
7-Aug-13 15:24pm
View
You may have to adjust the script manager, I think the above solution requires
PartialPageRendering = true
And in the Update Panel
Children as Triggers = False
UpdateMode = Condtional
jkirkerx
5-Aug-13 17:42pm
View
I see user but not userData, but I'm not familiar with the language
var user = db.QuerySingle("SELECT * FROM UserProfile WHERE
I think you need a snickers bar
jkirkerx
25-Jul-13 14:50pm
View
I think I'm flashing back now to my project I wrote about 2 years ago.
I was talking about about the Treeview background color in my project, I just left it alone, and decided the default color was fine.
I did mess around with color for a couple of days, and decided that functionality trumped the look and feel first. The BS_OWNERDRAW eluded me, but at the time, I had trouble with Vista and Windows 7, so I skipped the color stuff and published it.
jkirkerx
25-Jul-13 13:34pm
View
I didn't paint mine, I wrote mine in c+++ Win32, and used the WNDCLASSEX to set the background color with
toolWindow.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
But don't listen to me, I'm no expert at this, but ignore my first comment about the ARGB, because that applies to managed code.
I remember trying to do the same thing 2 years ago, but was not able to do it on XP.
Take a look at this below
http://www.rohitab.com/discuss/topic/35437-windows-controls-with-transparent-backgound/
jkirkerx
25-Jul-13 11:43am
View
I wouldn't set the background color, and let the system set it so it follows the theme.
jkirkerx
24-Jul-13 18:33pm
View
Deleted
You have to use ARGB, the "A" is the alpha channel
jkirkerx
23-Jul-13 16:44pm
View
$('.imgDisplay') is the way to grab a reference by class, so sonething like $each works well for that.
$('#imgDisplay') is like getElementByID,
So until you can make a reference to the control element, you can't do anything with it.
Since you didn't grab the element, you got undefined or null which are legit javascript values for nothing
I don't see how that can work, it's
var img = document.createElement("image")
img.style.cssText = "width: 50%;";
img.src = "/images/img.png";
var imgDisplay = $("#imgDisplay");
imgDisplay.appendChild(img);
jkirkerx
23-Jul-13 13:54pm
View
The label printed fron the UPS Worldship Package allows for 2 comment fields that are printed on the bottom of the label. You can put anything you want in those fields.
jkirkerx
23-Jul-13 13:38pm
View
And I'm trying to get rid of the toolkit in all my projects, and replace it with JQuery plugins.
I read a Microsoft Article that the AJaxControlToolkit has been obsoleted and replaced with JQuery not to long ago. But I still see post hers asking how to install and use it.
jkirkerx
9-Jul-13 16:21pm
View
You should improve your question, and draw a better picture of your scenario.
I understand generating markup, and in a div, but not the latter.
jkirkerx
9-Jul-13 16:03pm
View
Deleted
I'd just use a select or switch statement for that
Select dr1(0]
case 1:
end Select
jkirkerx
16-Jun-13 0:02am
View
Passenger names start with I, and is the 2nd comma delimited field on the line.
So you read the file, you can convert it to bytes, and separate the lines by detecting the LF or CR chars, and convert it into an array of lines, then parse the array, and extract the data your looking for.
There are several ways to do it, but open and read the file first.
jkirkerx
13-Jun-13 15:16pm
View
how about marking this as solved
jkirkerx
13-Jun-13 15:15pm
View
are the values in the textbozes really integers?, or perhaps decimals
jkirkerx
23-May-13 17:44pm
View
Well yes, they use XML, really a WSDL for everthing, so they probably only give you a url for the image. I can't see placing image binary code in the xml response.
So just download the image using the url in the response file from FedEx to the hard drive, and give it a name like the order number or something.
jkirkerx
22-May-13 22:53pm
View
Does your test.aspx page exist?, should be a asmx page
You should call the page directly and make sure it works first, you should get a textbox that you enter the value into.
Then work on the jquery side
jkirkerx
16-May-13 12:37pm
View
Are you using the code in a webofrm code behind page, or is it like a class, user or server control in the App_Code folder?
jkirkerx
15-May-13 18:53pm
View
Do you get the original selected value after postback?
Would have to see the call in javascript or jquery,
and the server side code for picking up the value
If you don't use the onchange event, the value posts?
jkirkerx
14-May-13 16:16pm
View
Just looks a test to me, to see if the server would process the code and display OK in red when the form posts back.
I wonder if it works?, I'm curious.
jkirkerx
14-May-13 12:27pm
View
No, I have my own work to do today, besides I just wrote that off the top of my head, I was trying to convey to you that you need to use the client script manager and type to register a script.
jkirkerx
9-May-13 12:28pm
View
You usually just download the WSDL file, and add it to your project as a web service I think. project, Add Service Reference, Put the local path in the address bar, click advanced and ok.
If you don't have the WSDL or this is none, then it's probably not a WSDL web service, and you have to code to a API document.
UPS is like that, they have a client access XML request, and a rate request, and you transmit both at the same time, back to back.
In this case, I had to make a XSD file, a schematic of the API that will create the XML for me, and one for the response that will decode or parse the response, so one for request and one for response.
After I created the XSD, I compiled it as a class, using xsd.exe that comes with Visual Stidio.
jkirkerx
8-May-13 17:24pm
View
It's easier to just broadcast a packet on udp and have the servers respond with their version.
If you get no response, then ask the registry.
jkirkerx
8-May-13 17:07pm
View
The authentication should be part of the wsdl, you submit it all at once.
Unless you have 2 wsdl files, one for authentication and 1 for processing.
jkirkerx
8-May-13 13:41pm
View
If your firing a post back to the server, you probably need to use the server side code to put focus on that textbox in the onload or page.load event.
Any code in the Javascript after the postback will not apply after the postback, a postback is like a fresh clean page.
jkirkerx
2-May-13 18:04pm
View
Your not saving from the buffer you made for conversion,
In other words, you make a buffer like a string or a class or structure, you make the swap, and send the buffer, class or structure to the program that saves the data.
In your program that saves the data, don't get your values from the objects such as textbox, get your values from your string, class or structure that has formatted data.
In other words, gather your raw data first from the textboxes, then process it as refined data, then save the refined data to the database.
jkirkerx
1-May-13 16:42pm
View
You make hyperlinks or linkbuttons with the url add2cart?pId=12-4578
Or use the session variable like you have, and get the session variable when loading the next page.
jkirkerx
1-May-13 16:06pm
View
Why didn't you just post the part of the code that makes an attempt to get the product ID from another page?
And what is the other page, is it within the same website?
You probably should pass the productID to this current page using a querystring,
send it not fetch or get it.
jkirkerx
30-Apr-13 16:56pm
View
Maybe one is for backend and the other for the frontend
jkirkerx
30-Apr-13 15:53pm
View
It's the OP with the sitemap question earlier that Sergey answered, that has the same masterpage foe CEO and other user.
jkirkerx
29-Apr-13 16:04pm
View
I would of made a structure and populated first, then passed it on as the structure.
I store XML in table columns, but I use the XML else where in the program.
I do pass XML to a ship rate program, but I pass it as a memory stream and not a string.
[edit]
I not familiar with Enterprise Library, so I probably should not of commented here.
jkirkerx
28-Apr-13 18:13pm
View
If I rememeber correctly, the asp.net button object and Imagebutton are buttons, but don't use the submit bahavior unless "Use Submit Bahavior" is selected, so they act like a HTML Submit Button.
The use if the Form Tag, in asp.net if different that html or php. In php for instance, you can have multiple form tags, with dedicated submit buttons inside, that will do different things, and carry the default behavior of being able to hit the enter key to submit a form.
Asp.Net doesn't do that, you can only have 1 form tag, and 1 submit behavior, and to program the enter key, you have to wrap that in a asp.net panel, and use the Default Button attribute.
I use asp.net buttons with handlers, that will fire a sub or function, in essence, posting back to the server the data within the form.
jkirkerx
28-Apr-13 1:55am
View
Sandeep;
That was a great edit job, I wonder what it said before you put your magic on it.
jkirkerx
28-Apr-13 1:35am
View
Just use a html submit button instead of a asp.net object button
jkirkerx
24-Apr-13 18:03pm
View
That looks good.
You need to run some checks to isolate why it's not working, if the textboxes won't disable, there's a reason, if the alert does not fire, you may not have jquery loaded, so make a new alert after the document ready, to see if jquery even loaded, then work your way down, test the blur event you binded to, then test the if statements.
if (false == isNaN(v2)) { if (v1 == 100) {
alert("v1==100(;
$("#tbsecondnominee,#tbsecondper,#tbthitdnominee,#tbthirdper").attr("disabled", "disabled"); } else if (v1 < 100) { $("#tbthitdnominee,#tbthirdper").removeAttr("disabled"); $("#tbsecondnominee,#tbsecondper").removeattr("disabled"); } }
jkirkerx
23-Apr-13 12:31pm
View
$(#te4xtbox).attr("disabled", "disabled")
will disable the textbox in jquery
Sounds like the function is not running, you should test it using alert("I Fired") to make sure the code is firing under the blur condition.
Make sure you have jQuery loaded by making a reference to it.
<script src="jquery.js"></script>
http://learn.jquery.com/about-jquery/how-jquery-works/
jkirkerx
22-Apr-13 16:40pm
View
it's php,
I think there is a asp.net equiv, and there is a asp.net blog website software that you can download, I forget the name.
blogEngine
jkirkerx
22-Apr-13 13:01pm
View
You need to tell me what part is not working. Is the Blur statement not working, and the script is not running?
Are the textboxes not being disabled?
jkirkerx
21-Apr-13 16:41pm
View
That's web form markup, you just add 2 more textboxes and labels to your markup. By the way, it's not really code, it's really just HTML, but your using asp.net objects.
It looks like a giant html dump, so I doubt your going to get help on it. Too much to quickly look at.
jkirkerx
19-Apr-13 1:27am
View
I still use tables, call me old school, but they work great, and offer lots of flexibility in dimensioning.
jkirkerx
18-Apr-13 16:55pm
View
You really need to create a wireframe of your master page first, just empty containers, and refine the design until your satisfied. Then you go back and add your content inside each container one at a time, and finally add your content placement containers.
Use Tables, rows and cells at first, it's easier to start with,
jkirkerx
18-Apr-13 13:14pm
View
You don't have to use asp.net objects for everything. I only use them for when I have to access the object in code behind. Most of my webforms are just HTML,
So modify the hyperlinkfield, and see what happens first.
<asp:hyperlinkfield ></asp:hyperlinkfield>
to:
<a></a>
;
jkirkerx
16-Apr-13 16:04pm
View
It's make sense to have the datetime or timeline below or in the Y-Axis, and the Chemical value as the X-Axis or vertical bars.
jkirkerx
15-Apr-13 14:23pm
View
Do you want to slide images from left to right automatically?
Or create a series of images, that you can click next and previous on, to change the position?
Or display a series of images, and be able to zoom each one at a time?
jkirkerx
10-Apr-13 13:30pm
View
That depends on a couple of factors,
You can create a universal web service in asp.net, that can be accessed by PHP or whatever from a different domain.
But if your talking about using PHP and Jquery in a different domain, that gets a bit more tricky, because if the cross domain security issues.
As far as the table goes, I assume your talking about the entire table of columns, so I would personally use JOSN for a JQuery Request, or XML or WSDL for a cross domain request.
You should improve your question and add those details to get the right answer.
jkirkerx
10-Apr-13 13:11pm
View
Mark gave you the correct answer, based on the small hint you gave in your post or question.
if you meant doing it on the server side upon page postback, them you need to improve your question to get your desired answer.
Meant for the op, I did hit reply in first comment, strange or bug?
jkirkerx
10-Apr-13 12:45pm
View
If your using the system mail object, all it does is package the email message for transmission to your smtp server. Once the smtp server receives the email, then it transmits it to the destination email server.
You really need to post your MailMessage Object for evaluation if you think it's your code, or doublecheck your MailAddress inside the MailMessage.
Otherwise, your need to run diagnostics on your smtp mail server system.
jkirkerx
8-Apr-13 16:41pm
View
I have no clue,
I had to write a movie program like you tube, and wrote a program to take an image, and convert it to video with audio, and append it to the existing movie in asp.net.
It's just one way to do it.
jkirkerx
8-Apr-13 14:52pm
View
So your saying that your movie is not looping?, and only plays once
jkirkerx
7-Apr-13 19:12pm
View
Well technically, when you minimize the browser, you kind of putting it on hold until you go back to it. So the DOM is inactive on a minimized browser.
I'll remember that for the next time I take an online quiz, like on elance.
Like OriginalGriff says, var the start time, see if the dom can detect a minimize event, and recalculate the remaining time on restore.
Don't forget the tab as well, it does it when you change the tab and go back.
http://stackoverflow.com/questions/10328665/how-to-detect-browser-minimize-and-maximize-state-in-javascript
jkirkerx
5-Apr-13 18:02pm
View
I improved your question, but after that, the question was still sort of unclear to me.
You want to delete the records after 4 days, or erase the date time value after 4 days?
You can do that when a user joins, when you add the record, run a sql statement that does cleanup after the insert record.
jkirkerx
1-Apr-13 13:29pm
View
After I left the office that night, I realized your working on a quiz, in which there is a counter that counts down time, so you probably need 2 flags, a time flag and a validation flag, and you have to check both conditions.
jkirkerx
31-Mar-13 2:14am
View
Well, true will fire the button event, and false will prevent the button from firing.
So the elements are being registered, and the values are being picked up.
You might have to check the condition one more time, I'm not familiar with what your trying to do, so I'm just guessing, but add some more logic.
hmm.
else {
if (0 > parseInt($('[id*="example2submit"]').val()) * 100;){
// check condition again for true or false
}
}
return vFlag;
}
jkirkerx
31-Mar-13 0:07am
View
Shouldn't there be the button click to to fire the popup? in the extender element. Been awhile since I've used it.
jkirkerx
29-Mar-13 12:40pm
View
Think of it as smoke and mirrors or magic.
You want to create your interface so that you show the many possibilities of what you can view in small size images or thumbnails, which provides you with quick load times, and give the illusion to the user that the page loaded super quick.
Al long as your design gives the perception that the page is loading fast, and that there is action such a progress wheels where the thumbnail image is suppose to be, that converts to the image when the browser downloads the image, then the user will not question the page load time nor take the time to measure the actual amount of time it took to complete.
Now that your images are loaded, you use Javascript to allow the user to click on the image or thumbnail of choice, and expand that image to the larger size,
So....
you can create an area or container for the large view image to occupy, or load that large image in a modal container.
I use Adobe Illustrator to create images, and I can export them for web use. I can select the quality of a JPEG, from low, medium and high, which makes a huge difference in file size. Most images can be low or medium, unless there are gradients, in which you need high.
So my rule of thumb is, I use PNG for template art, and JPEG for photo art and photos for better compression.
A 4 meg image is huge, and can take up to 1 minute to download. I'm guessing that's about 6 megapixels, which is not needed on a website. 1024x768 is about the largest you want to go, unless your selling photos.
jkirkerx
27-Mar-13 13:49pm
View
What are you trying to display, so I can get an idea.
Is it like a product database?
You click next and to to the next single product?
When you click next, an update panel makes a request for new html, and get updated without a full page request, or is it a full page request?
jkirkerx
27-Mar-13 12:38pm
View
Thanks
I would not want to see you spend 3 years of your life trying to figure it out.
It's hard, and there's so much information out there on the topic.
Like I said,
I use Ajax like behavior to compress many pages into one single page, to keep the user on a single page, and use pages to represent individual topics and functions.
Your welcome.
Jim Kirker
jkirkerx
26-Mar-13 14:42pm
View
The description tag is key, and the information you type in it is marketing based, so you may have to edit your page titles and descriptions 4 or 5 times until you get it just right.
To answer your question, the AJAX stuff is just java script, so it really has no effect.
The key is to build your page with just HTML, and narrow the focus of the content withyour AJAX devices.
Analogy:
Most web pages have the main page with a broad explanation of the subject. Then you create a 2nd page with detailed information on the subject. You can create a 3rd page deeper, with super detailed information about the subject such as specs.
When using ajax, you can create the 1st page, and hide the 2nd and 3rd page on the first page, using css display block or none.
My experience has observed that one will purchase off the first page, after the purchase will go back and examine the 2nd page to solidfy that they made the right choice, or because they are excited and can't wait.
One my need the 3rd page to make sure it fits or it's compatible.
The general rule is just make a great website!, and then go back and optimize it.
Final thought on Ajax,
I use ajax on eCommerce sites, I use to make a page to add to cart, but crawlers kept adding to the cart, so I changed the design to Ajax add to cart, so only a human can do it.
Things I only wanted humans to do, where cloaked in Ajax, and things I wanted humans and machines to read was pure HTML.
So you use AJAX to your advantage, or for compressing information onto a page.
jkirkerx
24-Mar-13 16:35pm
View
If the server creates the page HTML, with all the image url links, and transmits it back to the browser, then the page transfer and load is complete.
The browser is in charge of loading all of the images for the image url's through individual request for each image to the server after the page is served.
I resize the images on upload, making a thumbnail 200x200, and a full view size, 640x480 to optimize load times. Sounds like you built a monster, with no respect or math for page load times.
[edit]
In the old days, we used 28K modems, and our programs ran on limited ram and a 386 chip, so we always had to measure the size of everything. Still applies today.
jkirkerx
22-Mar-13 14:56pm
View
Would you have to play the audio backwards as well? just curious.
jkirkerx
21-Mar-13 16:13pm
View
I write credit card software, and I didn't understand the need for the ip address, except for submission to a payment gateway like paypal pro.
Well, you beat me to the punch on this question, but did a better faster job at answering the question. I think you hit the nail on the head.
I have a private question for you, will side channel it.
jkirkerx
21-Mar-13 15:47pm
View
Your question makes no sense to me.
You want the IP address of the customer that is processing their payment?
Or the IP Address of the Payment Gateway that processed your payment?
if the latter, they the IP Address is the resolution of the url you transmitted your request to.
jkirkerx
20-Mar-13 17:01pm
View
Well, I'm not willing to offer a solution because I haven't used the web markup in years.
I know on the button event click, you have to test if the page is postback, or else it will fire twice, once on page load, and once on postback, clearing any previous results.
Did you click on the button with your mouse in design view to generate the code behind for the button event, so that the handler gets registered?
jkirkerx
20-Mar-13 16:47pm
View
Are you sure there not firing, only you cant't tell?
I remember setting the update panel to children as triggers, and update as conditional
I stopped using the ModalPopupExtender years ago, because I had too much trouble with the ajax control toolkit, and switched to Jquery and simple modal.
jkirkerx
19-Mar-13 17:15pm
View
Are you asking about the element table, or a table in a database?
jkirkerx
19-Mar-13 14:24pm
View
Well, sometimes I get it right.
The physical Path things is tricky, because there are so many ways to get it. I found the best way is to just take the virtual path, and let windows figure it out.
I think you have to use the ~ as a prefix to properly get the actual physical path.
I've used the @ before in the past, but stopped using it for some reason, don't remember why.
well at least print out the path someplace, or add a watch to the path, and confirm it's correct before moving forward.
jkirkerx
18-Mar-13 19:43pm
View
That's what it's suppose to do. It's there to protect your PC from unwanted programs running without your knowledge. In the long run, if the program is for unattended production use, you should not disable it.
When not running as a real administrator, your running a virtual windows using Vista and Windows 7.
The real windows is 2 levels up from that. The virtual windows can only read and write to a couple of places on the hard drive, and can only run programs within itself.
When you elevate, the screen sort of blanks out and a new screen appears that looks the same, now your not running in the virtual windows anymore, and can access more of the hard drive, and run that external program.
There's one more level above that, that's like running XP as administrator with full control.
For me, after messing with UAC for about a year, reading hundreds of articles on it, I determined to just play nice with it, and to use the UAC prompt.
So you call the prompt, and it the user accepts, you can run that external program, if not, the program won't do that feature.
You have to design your program in advance, with UAC in mind, and perhaps rewrite that script if possible to play nice at the lowest level.
http://en.wikipedia.org/wiki/User_Account_Control
[
UAC ^
]
[edit]
I didn't see that your from China, and are not interested in the protection of your PC.
just joking
jkirkerx
17-Mar-13 16:38pm
View
I didn't think of that, must of been the time change, just getting over it
jkirkerx
9-Mar-13 23:23pm
View
Well it wasn't an asp.net object, that was processed by the server, and converted to HTML on the output, so I figured it must have something to do with the way the browser worked with it.
I believe I suggested reading the Forms and input link, to get a better idea or to simply confirm that his page is constructed correctly first, in which the form tag is within the body tag, and the checkbox is within the form tag.
I've seen that problem before about 6 months ago, in which I had elements like the checkbox and dropdownlist react really slow in firefox, I ended up doing a html validation, in which I forget to close a element, and that fixed it.
I heard on IE8 and up, the browser will automatically fix simple mistakes, so you don't see the error and it's sort of masked.
jkirkerx
20-Jan-13 0:46am
View
The code project is a place to get intelligent help with issues relating to programming. Code you actually wrote, or at least write one line or something.
You should at least make an effort to do some research first, and write something. Did you search the internet and find anything relevant.
But just for giggles, Would you like to super size that source code for an extra dollar?
jkirkerx
20-Jan-13 0:38am
View
Usually HR assigns the employee ID.
Who cares what the ID is until the ID badge is printed.
jkirkerx
18-Jan-13 18:12pm
View
good idea, but that's a big learning curve, considering he's not that familiar with HTML elements.
For the OP
Keep in mind that most ASP.net Objects are just HTML elements. Some objects like the treeview and gridview are more complex, but really just a combination of HTML object put together to form the control. You to can combine HTML objects to build something more complex, it takes time and some experimentation.
jkirkerx
18-Jan-13 18:08pm
View
That was easy, beat me by 6 hours.
Don't forget to provide the alt text to be html error free.
jkirkerx
16-Jan-13 18:44pm
View
case from int to int32, I've had trouble with that in the past
jkirkerx
15-Jan-13 12:46pm
View
You probably have to change the script
ScriptManager.RegisterStartupScript(this, this.GetType(), "scriptName.js","fire_alert('Save Complete');
function fire_alert(message) {
alert(message);
}
jkirkerx
13-Jan-13 19:22pm
View
Are you doing this in code behind, pure code, or are you using the control object in design view?
Are you using 3.5 or 4.0?
jkirkerx
11-Jan-13 18:41pm
View
Why don't you just find something you like and steal copy it?
I had a potential customer I was quoting ask for a funky website, and I asked what exactly is funky, and they could not tell or describe funky. perhaps funky is flowers and paisleys.
So what exactly is innovative?, let's look it up
<pre>
being or producing something like nothing done or experienced or created before; "stylistically innovative works"; "innovative members of the artistic community"; "a mind so innovational, so original"
</pre>
Oh I see, so the oxymoron here is that you need someone elses innovative mind to create something innovating.
I'm just messing with you, don't take it personally, it's Friday and 5 oclock here
jkirkerx
9-Jan-13 14:43pm
View
I thought it was first come first serve for seating.
jkirkerx
5-Jan-13 2:33am
View
That must mean ditto,
The thing I hate about PayPal, is they give you all this pre-written code, so you never really learn how to write credit card programs. I don't get it. So they copy the code, without a clue as to how it works.
And the code is not that good. It's getting better, but still, it's not universal in design.
I'm out Sandeep, time to sleep
jkirkerx
5-Jan-13 2:26am
View
I just wanted to type F*** for the heck of it. See what CJ does with the word.
Well, it's a waste of time to control what's typed in the textbox, all you can do is strip out unwanted chars or char arrays after submission
jkirkerx
5-Jan-13 2:18am
View
Paypal provides all the code needed to acomplish the task, copy and paste, it's a no brainer with paypal.
jkirkerx
4-Jan-13 0:26am
View
You have to convert all the textboxes to runat server, and the submit button.
Then double click on the submit button, you may have to change the style of the last page to display block, so you can see the frame and click on the button. You will generate the button click event, in which you can code to.
So Dim name as string = txt_name.text.trim, etc
jkirkerx
17-Dec-12 0:25am
View
Not at the moment. You code is kind of confusing to me.
I think it's bombing on the stream.write in the while loop. You can delete that code and run it to see if that clears the error 500.
I can post some sample code in vb that reads a file stream in bytes, so the bytes can be manipulated or altered.
jkirkerx
17-Dec-12 0:09am
View
wouldn't it be while (i < buffer.length)
jkirkerx
2-Dec-12 17:02pm
View
most cart developers don't release their secrets to the world, because they spend so much time in developing their applications, and always want to be one up on the competition.
As far as using session, it consumes a little more memory on the web server, otherwise, it's just a number or id string that you store to make comparisons to. You can control the session time in code, and expand it or contract it on the fly, but the session code usually gets written in the cookie. So if the customer comes back, it's the same session id.
jkirkerx
2-Dec-12 2:21am
View
You don't need quotes around a number, just strings wrap quotes.
so it would be data: "{\""sellReqID\"", 3}" so the end result would be
{"sellReqID", 3}
if it was a string value it would be
{"myName", "jim"}
But still, it should fail on all browsers, but your format is wrong.
jkirkerx
26-Nov-12 13:05pm
View
The code I posted is just a broad foundation for how it works, it does not work.
Did you format your mailaddress like the example below?
<pre>
= new mailaddress("Website Name", "<" & emailAddress & ">")
</pre>
I would of posted a working example, but my current code is too complicated to follow and understand.
Did you wrap your code in so you can trap the SMTP Error
<pre>
Try
Catch ex as SMTPException
End Try
</pre>
jkirkerx
25-Nov-12 0:59am
View
I was going to answer the question, but there's really not enough information in your question.
So you made a web service, that is designed to be accessed by any machine with the proper credentials.
Of did you make a webservice for use with ajax and jquery
jkirkerx
15-Nov-12 1:55am
View
So your trying to take a snapshot of a webpage and rotate it?
I may be wrong on this, but I think your missing the webpage to image conversion part. Then rotate it.
jkirkerx
15-Nov-12 1:37am
View
You would have to post the whole header with script, it's not the doc type
jkirkerx
9-Oct-12 23:33pm
View
Perhaps the . is like the i in iPod.
I remember back in the asp days asp.net came out, I found my self calling it asp dot net for some reason.
jkirkerx
2-Oct-12 12:24pm
View
Sergey,
I thought he was talking about a modal panel.
He will improve our code, hmm
jkirkerx
1-Oct-12 18:11pm
View
What method are you using for your modal popup, every method has a way to show the panel or div tags on page.load
jkirkerx
27-Sep-12 23:36pm
View
you did put a lot of effort into that so 5+
jkirkerx
26-Sep-12 0:02am
View
it's best to convert the movies and audio to single type, and then play them
jkirkerx
19-Sep-12 0:11am
View
I have enough to do right now, and even if I did translate it, I would get like 20 more questions, like how do I use it now. It would probably condense down pretty small, since I don't have to measure any lengths.
Guess it serves 2 uses, one to set the password, and two to clear the password.
So what's up with that crater in Siberia, that's loaded with hardened diamonds, they say a trillion carats are in there. The molecule size of the diamonds are larger than normal, and 10 times harder, because of the heat and pressure from the meteor on top of the existing diamonds below.
Back tomorrow, 9PM here now.
jkirkerx
18-Sep-12 22:08pm
View
If it was simpler, not accessing the policy object, I would start you off, but help is voluntary, and I don't want to do research on the object requirements in vb. That could take me hours.
jkirkerx
28-Aug-12 17:52pm
View
Well you have to get the innerHTML by parsing the body tag, which means writing lots of code.
try searching this keyword
asp.net, parse html elements
[edit]
You didn't specify how you want to display or show the results, in a textarea that is scrollable, or in a div tag?
jkirkerx
12-Aug-12 15:31pm
View
Will something like that work on a asp.net dll that I compiled?
I have a DLL, that I want to be able to do a couple of things to, 1 is to be able to change 2 constants, after it's compiled, so each customer has a unique constant value, and the dll is different for every customer.
jkirkerx
27-Jul-12 0:10am
View
I read the article, and I see that using RowID is what I'm looking for.
I wrote this, but I'm trying to figure out where to set my PartNumber in the middle as Row 3.
I'm really weak in TSQL, not that good at it.
SELECT RowID, ProductID, PostageImage, PartNumber, ShortDescription, Price, Thumbnail, ActionThumbnail1, ActionThumbnail2, ActionThumbnail3, FlatFee, FlatFeeName, VendorName FROM
(SELECT DISTINCT ProductID, PostageImage, PartNumber, ShortDescription, Price, Thumbnail, ActionThumbnail1, ActionThumbnail2, ActionThumbnail3, FlatFee, FlatFeeName, VendorName, ROW_NUMBER()
OVER(ORDER BY PartNumber DESC) AS RowId FROM ProductInfo T) AS Temp
WHERE RowID BETWEEN 1 AND 5
jkirkerx
24-Jul-12 18:47pm
View
Well you can't pass a value to the previous page, because it no longer exist.
If your refering to the current page being the previous page, and the popup setting a value in the current page that it's lies upon,
then just get the id of the textbox and set the value.
jkirkerx
22-Jul-12 23:00pm
View
Have you considered using the moxieimage?
jkirkerx
22-Jul-12 13:49pm
View
I suspect that the tinyMCE works fine, but your working on the file upload part for image, Doc, pdf's.
I was just working on my ckEditor file browser, I wrote my own instead of purchasing the ckViewer.
So tinyMCE is just ckEditor, in which there is an image button that you can click, and a javascript popup will appear allowing you to upload an image file.
But you using the asp.net file upload control instead. I don't see how your going to insert the img tag into the editor pane, and allow for adjusting the size and alignment by the user.
jkirkerx
22-Jul-12 0:57am
View
I think the random image may be a cherry, lemon, and the bar, and a large assortment of other fruits. Slot Machine
jkirkerx
19-Jul-12 23:55pm
View
That was mighty nice of you. Now your a brogrammer.
Don't forget the
if (Page.IsPostback) {
// Enter the code block here, under the postback condition
}
And trim off the white spaces from the textbox.text Whoo, fell off my stool, textbox.text.trim
Bars just closed here.
Nice job!
jkirkerx
18-Jul-12 22:50pm
View
That's a good idea
Before I posted my Javascript question, I was reading that you can register a php script as javascript, and php would run it anyways not knowing the difference.
jkirkerx
17-Jul-12 18:02pm
View
Well you only change the ajax version if you change the framework version.
So if your running framework 2.0527 / 3.5, you have to use the Ajax 2.0527 / 3.5. You can't change the ajax version to 4 unless you change the framework.
To change the ajax version, you drop the 4.0 ajax dll in the bin folder, and make sure your loading the correct toolbox script.
jkirkerx
16-Jul-12 18:34pm
View
Well sometimes I do ask dumb questions, but not today.
I thought cursor hand and pointer was for IE and Mozilla, and one would pickup and read, like moz-border. I'll look into that.
I used the Javascript discussion earlier, but only the crickets were lurking, guess it's not that strong of a subject here on the CJ.
As far as memory hungry goes, I need to run some test to see how much memory my script consumes, or if it leaks. I'm pretty sure I used var's in an efficient way this time, but you never know.
Well thanks for the professional help today. I appreciate it.
jkirkerx
16-Jul-12 16:35pm
View
Thanks enhzflep
I read about closures last night on my iPhone, but did not put the 2 together till I read your comment. I had the version problem, and the closure came up today under final testing. I should fix the versions, but I've been working on this for 3 weeks now, head is kind of fried. I need to get back to my c++ program and fix some threads.
Thanks for taking the time to demostrate closure to me. It does work in firefox, just tested it, and I fixed the hover
curDiv.style.cursor = "hand";
curDiv.style.cursor = "pointer";
You explanation of how it works was easier to understand, and now I get it. Ready to get bolder soon with Javascript.
Oh, if your wondering what the function is for, it's sort of like ckEditor, in which you click on the image, and a popup window comes up asking you upload new image, browse server library, generates new images to the correct sizes and updates the main browser window thumbnail and hidden textboxes, closes popup.
I'm surprised that your knowledge overlaps into JavaScript. Didn't think you did any web work, just OS stuff.
Question:
curDiv.appendChild(document.createTextNode("Image: " + (index + 1)));
Is this more of a common way to add elements, or just a quick shortcut to finish the task?
jkirkerx
16-Jul-12 16:08pm
View
After coming back from lunch, I searched again with new words, and found a more advanced version of using function, that retains the value while looping.
I went ahead and posted the whole loop, perhaps I can merge the 2 versions into a unified version, with some tutoring from a more skilled JavaScript programmer than me.
The only difference between the 2 is using innnerHTML on the span tag, and the tableRows (tr), and 1 css width value in tableCell_Container.
Thanks for the response, appreciate it!
jkirkerx
16-Jul-12 15:57pm
View
Deleted
[SOLVED], I think.
I ended up using this. I came back from lunch and tried searching again with more refined words.
<pre>
var temp_Data = image_Object[idx].image_Filename;
var table_Object = document.createElement("table");
table_Object.id = "_table_PreviewCell_Container_" + idx;
table_Object.className = "_colorChange";
table_Object.cellPadding = "0";
table_Object.cellSpacing = "0";
table_Object.border = "0";
table_Object.onclick = (function (fbType, temp_Data) { return function () { load_ModalPreview(fbType, temp_Data) } })(fbType, temp_Data);
table_Object.style.cursor = "hand";
table_Object.style.cursor = "pointer";
table_Object.style.width = "96%";
table_Object.style.backgroundColor = "rgb(255,255,255)";
tableCell_Container.appendChild(table_Object);
</pre>
I tried jquery, but I wasn't able to comprehend how to create elements, or create blocks of elements looping through the array. But I need to learn how to so that.
This is the both versions, I do what to unify code for 1 version for all, but this in new territory for me.
<pre>
// Use Ajax to Load the Library in the DOM
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "productEditor.asmx/load_Library",
data: "{\"fbType\" : \"" + fbType + "\"}",
dataType: "json",
success: function (responseText) {
eval('(' + responseText.d + ')');
var objB = jQuery.parseJSON(responseText.d);
var image_ExitCode = objB.image_ExitCode;
var image_Objects = objB.image_Objects;
var image_Object = image_Objects.image_Object;
var array_Length = image_Object.length;
if (bMSIE == true) {
// We have a non gecko Browser, Internet Explorer
var table_Container = document.createElement("table");
table_Container.cellPadding = "0";
table_Container.cellSpacing = "0";
table_Container.border = "0";
table_Container.style.width = "97%";
table_Container.style.display = "block";
//table_Container.style.border = "solid 1px orange";
var tr_ContainerRow = table_Container.insertRow(-1);
var trx = 0;
// Loop through the array and build the html
for (idx = 0; idx < array_Length - 1; idx++) {
var tableCell_Container = tr_ContainerRow.insertCell(-1);
tableCell_Container.vAlign = "top";
tableCell_Container.style.width = "20%";
tableCell_Container.style.height = "102px";
tableCell_Container.style.textAlign = "center";
//tableCell_Container.style.border = "solid 1px green";
tr_ContainerRow.appendChild(tableCell_Container);
var temp_Data = image_Object[idx].image_Filename;
var table_Object = document.createElement("table");
table_Object.id = "_table_PreviewCell_Container_" + idx;
table_Object.className = "_colorChange";
table_Object.cellPadding = "0";
table_Object.cellSpacing = "0";
table_Object.border = "0";
table_Object.onclick = (function (fbType, temp_Data) { return function () { load_ModalPreview(fbType, temp_Data) } })(fbType, temp_Data);
table_Object.style.cursor = "hand";
table_Object.style.cursor = "pointer";
table_Object.style.width = "96%";
table_Object.style.backgroundColor = "rgb(255,255,255)";
tableCell_Container.appendChild(table_Object);
// Imag
jkirkerx
16-Jul-12 12:55pm
View
I changed the way I validate, I don't do it in one shot upon submit anymore, now I do it on the fly when the form is being filled out. So I use the blur now. That way when they submit, the form transmits correctly the first time.
The secret is the word before blur, the input:radio and radio:checked, that's how you get the element tag for the group, and the option tags inside the element.
I suspected that you were having trouble validating because as individual radio buttons, it's just 1 element to validate, versus a group, which is 1 element with multiple options.
If you learn to validate the group, it will be much easier in the long run, and will produce a better product.
jkirkerx
15-Jul-12 0:34am
View
That was a big read. Well, poor planning. With a rb list, it's a small amount of javascript to validate. Without, much more code.
jkirkerx
10-Jul-12 13:49pm
View
Does Self Validation mean you wish to create your own method of validation?, and not use the asp.net set of validation controls
jkirkerx
9-Jul-12 16:47pm
View
Oh, so you had a problem with IIS7.5 Server, and did not make a bind on port 80 for that website. I think that should of resulted in a page not found error.
Well whatever. I read your words, you contacted the server, and the server replied with an error, so the port number must of been correct.
Good Luck.
jkirkerx
7-Jul-12 0:25am
View
Just messing with you.
working with time is not that hard. But you need to write some code to start out with, and then ask questions.
jkirkerx
6-Jul-12 16:58pm
View
So the system time is not the current time?
jkirkerx
1-Jul-12 17:47pm
View
That was one, which is well answered. Is it ok to private message the other?
jkirkerx
1-Jul-12 1:22am
View
Well, that was modest and well thought out, and I feel better about the level playing field which is not measured by points. Not so intimated now.
I've always been fascinated by Russian Programmers. I have a deep respect for them. I have lots of questions.
jkirkerx
30-Jun-12 14:20pm
View
I was just trying to simplify the thinking process for XML.
I personally create the model by writing out the XML file by hand, and then I create XSD code to match the file. Next I test the XSD, to make sure it creates the multiple element records correctly.
After that, I run the XSD against xsd.exe to create a class, and use the class to read, write and update. I use XMLTextWriter and XMLTextReader, and it works quite well.
I just looked at your name, and realized that your the Russian guy with a million points, who's way beyond my skill level.
jkirkerx
27-Jun-12 12:32pm
View
the file upload control in just a 1 way trip. you click it and it uploads a file.
Of course, many just use textbox placeholders to hold the physical or virtual url of the file, it which you calculate, and set.
You have to add another button, that will clear the preview image, reset the textboxes to empty.
There is no need to clear the fileupload control, unless you want to go as far as deleting the file that was uploaded.
jkirkerx
26-Jun-12 17:59pm
View
OK, I went to the link, and right clicked and viewed the browser source, and cleary all the script code is in the body. The head tag is for declaring the location of static script code.
Since I can't see your masterpage, I can't tell if you declared the proper scripts in teh head tag.
If you have an error in your credit card script, then all the scripts will halt, or stop running, and the slideshow will not run.
So run it in IE, and see if the little yellow flag appears in the lower left corner, indicating you have a script error.
jkirkerx
26-Jun-12 17:47pm
View
I said move it into the body tag. And that your missing a element tag with id in slideshow.init, I think it was image
jkirkerx
20-Jun-12 20:23pm
View
It's just one line I didn't understand in a much larger class written in CSharp.
I'm starting to wonder how it gets the dimensions of a swf or flv file as well. So far it's not looking that good here.
I started the project in vb, and I really don't ever write csharp.
jkirkerx
20-Jun-12 19:34pm
View
I ended up with this while trying to work it out. Quite a contrast from yours, but I think I see why my first version of the question got voted down, because I was so close to the anwser. Let me try it out.
<pre>
If (newByteArray(idx) And &H80) > 0 Then
converted = converted & "1"
Else
converted = converted & "0"
End If
</pre>
jkirkerx
20-Jun-12 18:13pm
View
What's wrong with my question and why did you down vote it?
Do I need to rewrite the question?
jkirkerx
20-Jun-12 17:33pm
View
Because I want to use the code for a filebrowser that I'm writing for ckEditor, and I already wrote the full dll server control in vb, and I can't mix cs with my vb dll.
I just need to make sure that the swf file is less than 670px wide, or I need to change the size.
jkirkerx
17-Jun-12 23:30pm
View
Well, sometimes our original plans fail. And you have to rethink the whole thing, and move code around to the right place.
Nothing wrong with running the thing in 1 giant thread, and just waiting for your exit code. In the mean time, while your thread is running, so can run some sort of progress indicator.
jkirkerx
17-Jun-12 18:06pm
View
I have to agree, it's like wanting to cook dinner, first you need to settle on a dish, figure out the receipe, and then aquire the food you need to prepare and cook the dish.
So first you create your xml file, with the required elements and nodes. And then you write code to read the file. Then write code to write the first xml file, and then write code to update the file with a new record.
With xml, you really can't just copy and paste your way to success.
Show More