Click here to Skip to main content
       

ASP.NET

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
AnswerRe: how resize this image before uploadingmemberjkirkerx22 Jan '13 - 12:25 
You can't. submitting files to a website is voluntary, and the user has to choose which files to submit.
 
Websites that run in a browser on the client system run in a protective bubble, that is separated from the operating system. Sort of a sealed container.
 
You can resize the image after uploading by using system.drawing, measuring the size of the uploaded image, calculating the new height and width, and the new canvas size, and then creating a new blank canvas, and then overlay the original image over the canvas and save the new file.
 
Or you can write several programs in c++ to run on the client computer such as Linux, OSX, Windows, that will resize, and transmit the new bytestream to a webservice as a non-primitive, and then make the write to the disk drive.
AnswerRe: how resize this image before uploadingmemberRichard Deeming23 Jan '13 - 1:53 
Have a look at Plupload[^]. In a modern browser, it supports resizing PNG and JPEG files before uploading.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


QuestionIssue in web farm scenario deployment ASP.NETmembermukeshgaharwar21 Jan '13 - 19:20 
I have deployed a web application in web farm scenario with a load balancer and multiple servers. If a request coming to one server it works but if to the other server it not works. What issues can it have??
AnswerRe: Issue in web farm scenario deployment ASP.NETmvpSandeep Mewara22 Jan '13 - 2:41 
It is difficult to suggest based on what you say, see if you followed the steps mentioned in the article:
WEB farm - Load Balancing in Asp.net[^]
MS Technet: Step 3: Configure IIS Web Farm Load Balancing[^]
Sandeep Mewara
Microsoft ASP.NET MVP 2012 & 2013
 

[My Latest Article(s)]:
How to extend a WPF Textbox to Custom Picker
Server side Delimiters in ASP.NET

QuestionWebResponsememberpit's_world21 Jan '13 - 1:50 
Can any body guide me that how to split json format reply, in webresponse ?
AnswerRe: WebResponsememberAli Al Omairi(Abu AlHassan)21 Jan '13 - 4:05 
Sir;
To parse any json response you can use System.Web.Script.Serialization.JavaScriptSerializer[^]
Help people,so poeple can help you.

Questioncolumn 'member_channel_name' does not belong to tablememberJassim Rahma20 Jan '13 - 9:57 
Hi,
 
Why I am getting the above error for this line:
 
TitleLabel.Text = data_table.Rows[0]["post_category_name"].ToString() + " - " + data_table.Rows[0]["member_channel_name"].ToString();
here is my stored procedure:
 
BEGIN
		SELECT DISTINCT
		post_category.post_category_guid,
		post_category.post_category_name,
		web_members.web_member_guid,
		member_channels.member_channel_address,
		member_channels.member_channel_name
		FROM
		post_category
		INNER JOIN member_posts ON member_posts.member_post_category = post_category.post_category_id
		INNER JOIN member_channels ON member_posts.member_channel_id = member_channels.member_channel_id
		INNER JOIN web_members ON member_channels.web_member_id = web_members.web_member_id
		WHERE member_channels.member_channel_address = param_web_address;
 
END
 

 
Technology News @ www.JassimRahma.com

AnswerRe: column 'member_channel_name' does not belong to tablementorBrij20 Jan '13 - 21:52 
As per your code, it does not seem issue here. I'll advise you first run your Proc and see whether it is running and resturning data correclty.
Then you debug your code and check the datatable in immidiate window and see it in visualiser what columns are available in datatable.
Cheers!!
Brij
Microsoft MVP ASP.NET/IIS
Visit my Blog: http://brijbhushan.net

JokeRe: column 'member_channel_name' does not belong to tablememberjkirkerx22 Jan '13 - 12:32 
So you get the error "Hi"
 
Never seen that error before. That's a new one for me.
QuestionPost and Get process ASP.NET MVCmemberPatrik von Frieling20 Jan '13 - 5:10 
Hello *,
I aked my question a few days ago on stack overflow but I'am not lucky with the one answer. Perhaps, someone can help me here.
 
My first controller method is:
 
[HttpGet]
public ActionResult Item()
 
In this method, I have some business logic like retrieve the user id with sql or watch out if a user has the permission to see some regions on the view or whatever.
I used bool variables in my viewbag and get these data with razor.
It's only one case..
 
Now, the user is going to fill data in a form, will make a post and then I call the same method, but with a [HttpPost()] flag (I saw it in many tutorials).
 
[HttpPost]
public ActionResult Item(FormCollection formCollection)
 
Ok, now I can collect the values out of the form and can work with them.
BUT if this function is ready, it gives as standard View() back and I can't made the business logic like in the Get() method or must I really copy/pase all these stuff or get it in a own function and call it two times?
 
Here is a link to my stack overflow question, perhaps you unterstand me better with that:
 
Stack Overflow question
 
Best regards, Patrik

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid