.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Imran Ghani
Post New Web Links

Send Image via Javascript

Posted By:      Posted Date: October 12, 2010    Points: 0   Category :ASP.Net
 

I am trying to accomplish the following with javascript and .NET:

I have two websites.

When a user is surfing website A, the user sees a picture of a fat lady. When he clicked on the picture, the image is sent (via javascript) to website B.

Website B is running .NET, and the image must be sent directly from the client (not from website A).

Is this possible?





View Complete Post


More Related Resource Links

paste image from clipboard using javascript

  
Hi all, How do we paste an image from clipboard into a custom rich text editor using javascript? (ctrl+c and ctrl+v or a snapshot) Please do share your thoughts! Thanks!  

Dynamically Get The Image in Javascript

  
Dear all,   I have a filePhoto control and Image control in my aspx page when I click on Filephoto control i am able to get the path in the control i need the image to be set to Image control .Thanks In advance

Send image

  

Hello people, I currently got a piece of code that send an image through tcp, this seems to work on any pc that is connected to my own network but when people connect to my real IP nothing seems to happen, here is the code.

Server:

 public Form1()
    {
      InitializeComponent();
      var t = new Thread(startListening);
      t.IsBackground = true;
      t.Start();
      
    }
    
    public void startListening()
    {
      check = true; 
      try
      {
        while (i < 1)
        {
          
          data = new byte[1024];
          ipep = new IPEndPoint(IPAddress.Any, 9050);

          newsock = new Socket(AddressFamily.InterNetwork,
                  SocketType.Stream, ProtocolType.Tcp);

          newsock.Bind(ipep);
          newsock.Listen(10);
          

          client = newsock.Accept();
          IPEndPoint newclient = (IPEndPoint)client.RemoteEndPoint;

Image Rotate by Javascript

  

Hi ,

I have a DataTable in which i have some images i want to bind the image and want to rotating them only by javascript.

plz give me solution.

Thanks


How to send a dataset from javascript to server.

  

I tried of creating a new object in javascript.

var ds= Ajax.Web.DataSet();  

In project references i had added the Ajaxpro2.dll .

Do i need to install any  custom libraries from javascript.


how to send javascript array to server in asp.net mvc

  

i have a array in javascript and need to send to server how i can send it in jquery and get them in controller .


are any way to send javascript array and get them in controller [c#]


JavaScript Panning on ASP Image

  

Hey guys,

got a little problem here. I tried to implement some javascript, which should add some client side functionality to an ASP Image component. Actually this image component is one of the DevExpress component, called "AspxBinaryImage". It's just a little modified ASP Image, with some more CSS and stuff, but the base is still just HTML and many lines of JavaScript.

Okay now to my problem: I tried to implement a panning on this image. If I leave out any type of ASP components and just name the site to an simple HTML page, there is no problem with the IE, but Mozilla doens't work at all. If I try to use this JavaScript in an ASP Page context, nothing works at all.

I found this: http://stackoverflow.com/questions/2463739/panning-image-using-javascript-in-asp-net-page-overflows-div and adapted many parts of it into my functions. I also tried the "customizing" in one of the responses, but it didn't work. Actually the JavaScript console of Firefox, as well as the FireBug console doesn't seem to find any mistakes, conflicts or problems in source.

Here is my complete Code of the ASP page which doesn't work in any browser:


<!DO

image zoom and crop using javascript

  

hi

i am using jquery jcrop script to crop the images, what it lacks is zoom-in and zoom-out effect.

you guys have any idea of such scripts?


1) user uploads the image to the server.

2) user will be shown image what he/she uploaded to the server.

3) i need zoom in & zoom out effect. he should be able to zoom as he like.some thing like kropper script. where u get this zoom effect.

4) crop the image

5) save the modified image to server.


I am looking for such scripts, any opensource, freeware tools?

thanks




add image as grid column then send ID to edit on image click

  

hello - new to webmatrix and C# so probably playing with fire here....  

I have a page that allows a user to add, edit, list, and delete database items.  I would like to add an "edit" graphic to each row in the list.  Something like this:

    <div id="grid">@grid.GetHtml(
    columns: grid.Columns(
        grid.Column("<img src="editfield.gif" />"),
        grid.Column("Title"),
        grid.Column("Author"),
        grid.Column("Genre"),
        grid.Column("Location")
        ))
    </div>

up above I have:

        var SQLForGrid = db.Query("SELECT * FROM Books");
        var grid = new WebGrid(source: SQLForGrid, defaultSort: "Title");

then when the edit image is clicked it should send the page the id of what they want to edit.

any help/ideas are appreciated.


ASP.NET, HTML, JavaScript Snippet Support (VS 2010 and .NET 4.0 Series)

  
This post covers another useful improvement in VS 2010 - HTML/ASP.NET/JavaScript snippet support. Snippets allow you to be more productive within source view by allowing you to create chunks of code and markup that you can quickly apply and use in your application with a minimum of character typing.

Visual Studio has supported the concept of "snippets" for VB and C# in previous releases - but not for HTML, ASP.NET markup and JavaScript. With VS 2010 we now support snippets for these content types as well.

call JavaScript - jQuery code from ASP.NET Server-Side

  
jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side.

call JavaScript - jQuery code from ASP.NET Server-Side

  
jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side

Ajax Enabled Gridview using JavaScript in ASP.NET

  
Before explaining the article, I would like to thank all readers who read my article and voted for it. Your appreciation for my article gives me strength to write more good articles. Hope in future I will get your valuable comments and suggestions. Now I won't waste your time and come back to the topic. I have written this article on 'Ajax Enabled Gridview Using JavaScript in ASP.NET'. In this article, I will show you how to make a Gridview using a simple HTML table, JavaScript and XML HTTP for Ajax call without using any ASP.NET control.

Using Code

GridView Javascript Click Row and Ajax

  
This article shows 2 common tasks with the ASP.NET GridView: Binding a List (generic) of objects as DataSource and on clicking a row, getting the values of the selected row by a javascript function. In the example a List with User-objects is displayed. On clicking a row containing the data of a User-object, the Id of the object is used to get the address of the user by an Ajax-call and display it in a details-field.

Built-in Functions - Text and Image Functions in SQL Server

  
Text and image functions operate on TEXT, NTEXT and IMAGE data types. These data types are deprecated with SQL Server 2005 and should be replaced by VARCHAR(MAX), NVARCHAR(MAX) and VARBINARY(MAX) when possible. Alternatively you can also consider storing large string values using XML data type. Text and image functions are nondeterministic.

Future versions of SQL Server will not support TEXT, NTEXT and IMAGE data types. Columns with TEXT / NTEXT data type do not support commonly used string functions such as LEN, LEFT, RIGHT, etc. Furthermore, due to the large size of TEXT data you''re likely to see performance issues if you store such data in the database. However, at times you can''t help but use the TEXT / NTEXT / IMAGE data types (for example when supporting 3rd party databases when you cannot change the schema) - this is when text and image functions come in handy.

Program for Format Conversion of An Image

  
.NET provides extensive support for image conversion. Any image can be processed from one format to another. Most common formats to which .NET have support for are .BMP, .EMF, .GIF, .ICO, .JPG, .PNG, .TIF and .WMF.

Combine, minify and compress JavaScript files to load ASP.NET pages faster

  
Websites are getting more interactive these days and most of this interactivity comes from JavaScript. People are using different JavaScript libraries and frameworks to make their websites more interactive and user friendly.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend