|
Bernhard Hiller wrote: That's a very bad, really terrible, coding practice. Don't do so.
Thank a lot for the advice but I have a check I am handling it on button click for now, will change it once I get the uploading fixed.
Bernhard Hiller wrote: Also note: how will you later be able to access those files? Do you have some database table or some other mechanism to find out which files exist and to generate the html links to them?
Following is my button click event, I hope this will help you understand the rest of the code and yes I am storing it in the database and displaying them on another page in a grid.
protected void btnAdd_Click(object sender, EventArgs e)
{
string isBest;
if (cbIsBest.Checked)
{
isBest = "Yes";
}
else
{
isBest = "No";
}
string picPath = UploadPicture();
string newsletterPath = UploadNewsletter();
if (picPath == "")
{
divError.InnerText = "Please select an image for the newsletter.";
}
if (newsletterPath == "")
{ divError.InnerText = "Please provide the e-copy of newsletter."; }
else {
try
{
string uploadedBy = Session["Email"].ToString();
if (dl.insertNewsletter(txtTitle.Text, ddlMonth.SelectedItem.ToString(), areaSummery.Text, picPath, newsletterPath, ddlCohort.SelectedItem.ToString(), isBest, uploadedBy)>0)
{
divSuccess.InnerText = "Thanks! Mahara Insight has been uploaded successfully.";
divSuccess.Visible = true;
}
else
{
divSuccess .InnerText = "Sorry for inconvenience. Some error has occured. Please try later.";
divSuccess.Visible = true;
}
}
catch (Exception ex)
{
divError.InnerText = "Sorry for inconvenience. Some error has occured. Please try later.";
}
}
}
Regards
HumaMunir
|
|
|
|
|
We've a project with 150+ forms and 70+ reports / graphs and got scheduled to complete in 2014 Dec by starting the development now. We have enough knowledge in project and specification also is ready. But my hands are empty in development which supposed to start this month end.
We want to deliver a good and rich customer experienced web application. UI interface should be smooth and the performance to be good. This will be a intranet application. We've chosen to did it in ASP.NET (Visual studio 2012) with back end MS SQL Server 2008 R2.
My worry is designing the base template itself will consume much time if each and every thing will be developed from ground level. I searched and come up with availability of third party templates. (http://themeforest.net/category/site-templates/admin-templates)
When I saw the demo which they provided in their site, it looks good for me and it is enough for my application.
Please share your ideas and experiences with third party templates.
- Will it suitable for projects which fresh start?
- Will it help us to reduce the development efforts in page / form design ?
- Can we incorporate it in .net development environment?
Please share your valuable suggestions if any other way of solution.
Thank you.
Rishihar Subashchandran
|
|
|
|
|
An application of that volume it should be very wise to bring in a web designer - that can help you to create a higher level of look and feel...However if there is a time frame that renders the work of a designer invalid, you may consider a good template too, but you have to see whether the template will not break you, so take you most complicated pages (in look, not in code) and test it against the template. If you have your template, than bring in a designer anyway to fir it for you, than drop him...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
|
If you look at other large scale efforts that are intended to be used in a variety of situations you will find a common 'template' already -- XML.
SQL Report Definition Language = XML
Microsoft XPS = XML
SOAP = XML
ADO.NET DataSets and DataTables both can serialize as XML and XML Schema.
XML is the world's best glue because it is self-describing and completely system, network and transport agnostic. It can carry any type, the objects created from it are automatically native and correct and its support is widespread -- XSLT can output just about any object you care to -- HTML, XML, JSON, etc.
If you begin with XML -- you can always replace it easily with something more specific -- but if you start with something specific and your design is not frozen -- you will struggle to complete it at all, much less on time.
|
|
|
|
|
I want to have an inline editing in a gridview in asp.net mvc web application
|
|
|
|
|
how to integrate geo-fencing on my website using php code?
|
|
|
|
|
Where are you stuck? We need a lot more information.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Maybe it is enough to use a simple code as being used for example on this quite neat site which is not a Finnish based domain ( .fi domains are ) but it still does well with big G. This site is using
meta http-equiv="content-language" content="fi"
to describe the site is in language "finnish".... ? I dont know but I am seeking answet to this GEO question also. Or maybe the site has so many visitors that search engines likes it....just an example.... 
|
|
|
|
|
The site you've linked to is a Finnish credit-comparison site. This sort of link looks suspicious, as it's the type of site usually associated with spam messages.
Although your message appears to be genuine, I'm afraid the presence of that link is probably enough to get it removed. The spammers seem to have been getting craftier recently, hiding links in otherwise normal messages, and a lot of us have itchy trigger-fingers on the "report" button.
You might also find that your account gets removed. Your other message also mentions a spam-like domain, and you haven't set a display name in your profile, which is the sort of behaviour usually exhibited by the spammers who frequently bombard this site.
If this happens, please don't take it personally. You'll be able to sign up again, and so long as you remember not to post links to random websites - at least not before you've established yourself as a genuine user! - you can look forward to a long and happy membership.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
How does one account for a single transaction across logs when there is no common fields (foreign key fields if you will)?
* Multiple hits at the same time on Apache web server.
* Apache routes access to Tomcat which is acting as an application server
* Tomcat builds response but needs to access CGI on Apache via non 80 port which spawns a SAS/SUDAAN process (think SQL)
* CGI responds through Apache back to Tomcat which completes response page then routes it back to Apache (80) which sends it back to client web browser.
When doing log analysis how does one tie these individual events into a tidy transaction using Tomcat and Apache logs? Stated differently; when doing pretty reports, how can one link these transactions together? As stated before multiple accesses are occurring within the granularity of the time-stamp; Tomcat and Apache are recording the time-stamp but it is not very useful.
Thanks so much,
EB Bligh
|
|
|
|
|
I wrote this HTML for a header:
<header>
@ViewBag.Title
</header>
but the problem is that the text is not centered correctly, it's centered on the space of the header after the image, any suggestions to get it right to the center?
|
|
|
|
|
I have a regular C# desktop GUI application providing regular windows interface.
WCF is not used for supporting these interfaces, since it mainly working as a standalone desktop application, with a lot of data involved in data transfer. But I have used WCF with netNamedPipeBinding for UI automation.
Now I would like to call these interfaces from a web page also.
So in my understanding
1. I have to host my desktop application as WCF web service
( with httpBinding and need o provide a new contract for the interfaces).
2. Call the existing I/Fs from the new interface class.
Please correct me if wrong.
aks
|
|
|
|
|
Cross posting is not tolerated here so please be patient and wait for some answer. Bear in your mind that people answer question in their own spare time free of charge!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Can site A set a cookie where the cookie's domain = "site B" ?
Meaning site B will receive the cookie once the user leaves site A and browses to site B?
Is this allowed by most browsers?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
To learn in depth Google for 'cross domain cookies'...
In a few words - no, you can't. You can't share cookies across domains. There are some solution (like site forwarding) but most are not secure at all...
You have to learn a lot to see your options - than find a cookie-less solution
You may start here: http://www.cookiecentral.com/faq/#4.3[^]
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Hi guys;
I've been trying to come up with a way to build an automated PHP transfer system between 2 servers.
Server A : only ftp access; server B : ftp access and can run php scripts.
I want to copy all file in server A to a folder in server B;
Here is what I am trying to do :
1: function compress_each_ftp_folder_or_file_in_ftp_Backups_folder();
2: function delete each_ftp_folder_in_ftp_Backups_folder_after_successful_zipping();
3: function download_each_archive_in_ftp_Backups_folder();
4: function delete_each_archive_after_successful_download();
I have written some scripts for step 2, 3 and 4 but nothing found on web that help me with step 1;
I found lot of codes to compress folders or files on local server, but I don't found any script that compress a whole folder on a remote ftp server.
I think it was the time to ask for a help. Thanks for helping me.
|
|
|
|
|
This page
http://www.bbc.co.uk/news/special/2014/newsspec_7141/index.html[^]
Looking at the source code it uses bootstrap.js, but I'd like to understand more about how they put it together... I vaguely remember seeing something, somehwere, about it, but can't find it or remember where. Any pointers gratefully received. Ta.
|
|
|
|
|
Wombaticus wrote: I vaguely remember seeing something, somehwere, about it, but can't find it or
remember where. Clickety[^]
CP search rocks
|
|
|
|
|
Thank you! Now why TF couldn't I find that? (Probably best you don't answer that...)
|
|
|
|
|
I am using custom calendar in my web based application and I am facing one issue, In some of users machine on IE-9 when I click on calendar icon to open it than blank calendar area is displaying any control like dates month year ok, cancel button ... not displaying.
I have try to use it with compatibility view On & Off both but it's not working. I am struggling with this issue.
Can you please give me quick help to resolving it.
Regard's
Kaushik
|
|
|
|
|
can you please share your code here. and what type of error are you getting.
|
|
|
|
|
Hi,
I have a PHP / HTML5 web project for students to upload thier powerPoint presentation in order to share it with others.
Once PowerPoint file is uploaded, how can I displat it on the webpage?
What's the technique used for such task?
Thanks,
Jassim
Technology News @ www.JassimRahma.com
|
|
|
|
|
You have two options:
1. Provide the uploaded file as is, and let the client support the PowerPoint installation (If client has any application that can open PP files it will do)...
2. Convert PP to HTML using some 3rd party application (Google for it) and present it to the client...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Hi,
There are lot of ways you can do this:
1) Upload and Link
Yes, you could just upload a PowerPoint file to your web space and link to it as you would to any other file. Visitors click and download the file to view on their own computers. Of course, that will only work if all of the users already have PowerPoint (or compatible software) installed on their computers, so you may want to convert your slideshow to a PDF document format or publish a link to Microsoft
2) Get a Widget
Upload your PPT, PPS, or even PDF files to SlideShare and they're converted into shared media. Copy a snippet of code to embed your presentation directly in your own web page (or simply link to your presentation page on SlideShare’s hosting service) and select the level of privacy you want for each file.
3) Publish an HTML web page
A more serious issue with saving in HTML from the PowerPoint software is that the resulting web presentation is optimized for Internet Explorer. More often than not, it will not display properly for website visitors who are using other browsers. Free open source software may be a stronger choice in this instance. OpenOffice Impress, the PowerPoint look-alike from OpenOffice.org, lets you create a PPT presentation and slideshow from scratch, and it will also convert an existing PowerPoint presentation to HTML in a form that's compatible with a broader range of browsers.
4) Flash it!
Accuracy of the PPT-to-SWF conversion will vary from program to program, depending in part on the complexity of your presentation. You may need to try a few tools in order to find the one that works best for your purposes and budget. Or get around any tricky conversion issues with free screen recording software like CamStudio — record your PowerPoint presentation as you play it back on your own computer screen (even add an audio commentary to the slideshow, if you want).
Some visual blog editors will have a toolbar button for uploading video, but showing a Flash movie on your website is most often as easy as uploading your SWF file to your web space and using a few lines of object / embed code to embed the file on your page.
|
|
|
|