Web Forms :: Can Data Transfer Between 2 Web Applications

Sep 10, 2010

how can data be transfered between 2 web applications runnig on 2 web servers

View 4 Replies


Similar Messages:

Architecture :: How To Transfer Data Between Two Web Applications

Feb 3, 2010

how do you transfer data between two web applications?

View 6 Replies

C# - Is It Safe To Use Server.Transfer() To Transfer A Request To A Static Image (.jpg - .png)?

Feb 8, 2011

I have a class which implements IHttpHandler that is designed to handle image resize requests. It handles Urls like so [URL] Currently the handler looks for myimg.jpg on disk, cuts a 100x100 thumbnail (if it isn't already present) and redirects the client to the thumbnail like so Response.RedirectPermanent("/some/virtualPath/to/thumbnail.jpg");

This has been working great, but I would like to avoid forcing the client to issue a second HTTP request. Is it safe to do the following? Server.Transfer("/some/virtualPath/to/thumbnail.jpg") All the MSDN documentation talks about using Server.Transfer() to redirect to an aspx page, so I'm not sure if this is the right thing to do or not.

View 1 Replies

WCF / ASMX :: Building Services To Work With Web Applications And Console Applications?

Jun 7, 2010

I've been worked with web services so far, and I'm interested in expanding my services to console applications as well so I started digging up with WCF but I'm conserned that I won't be able to use the HttpContext collection that I've been used to do with web services one important thing which is to generate a random value from HttpContext.Current.Request.ServerVariables["ALL_HTTP"] that I need to reckon if it's the same or at least near what machine that is calling my service. How can I overcome this problem?

I need to know what machine is calling to count the number of attempts to login into my system for example. So must do it inside of the svc code otherwise if I let the client inform what ip address or what computer he is using, anyone could forge this argument and surpass by another machine. May be I'm approaching this matter wrongly. And I should count the number of attempts per state session, but how is it done?

View 1 Replies

Web Forms :: Transfer Data From One Custom Control To Another

Feb 23, 2011

Is there a way to transfer data from one custom user control to another custom user control? I have tried to just set the public property of the child to bind to the public property of the parent, but it does not appear to work.

View 1 Replies

Forms Data Controls :: Transfer Data From A Gridview To Another Page

Jul 1, 2010

In my gridview I got 7 colunms, the first is a checkbox colunm. When the user clicks the "From" colunms data IE "who the message is from" two need to happen. One the application navigates to the next URL and the user can read his/her mail, two and here my issue how do I transfer the data from each colunm to the next page...I was thinking session some how?

View 1 Replies

Forms Data Controls :: Transfer data From gridview To The Database?

Jan 21, 2011

I have a form in which data data is entered. Thsi date is filled to a gridview. I want to transfer all the datas in gridview to a table in the database .Please help

View 9 Replies

Forms Data Controls :: Data List With Page Transfer?

Sep 2, 2010

I built a data list list in the follow. It seems that href is not asp language. How can I transfer it to asp language?

<ItemTemplate>
<a
href="~/Team.aspx?Id=<%#Eval("TeamId")%>">
<%#Eval("TeamName") %>
</a>
</ItemTemplate>

View 2 Replies

Forms Data Controls :: Transfer Selected Gridview Items To Another On Another Page Vb

Jun 3, 2010

i am creating a print view using checkboxes that a customer uses to select which items they wish to print. I am having difficulty transfering the selected gridview items to another page. I was using crosspage post.

View 2 Replies

Forms Data Controls :: Transfer The Image From Gridview To Excel Sheet

Feb 2, 2010

This is the class file im using to export the datagrid to excel sheet. Problem is i cant able to transfer the image from gridview to excel sheet using this code. What are the modifications i can do for the below code to export the image.

public class ExcelReport
{
# region Export to excel
/// <summary>
/// Function for Export html report to Excel sheet
/// </summary>
/// <param name="fileName">File name</param>
/// <param name="gv">Gridview</param>
///
public void ExportToExcel(string fileName, GridView gv)
{
try
{
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.AddHeader("content-disposition", string.Format("attachment; filename={0}", fileName));
HttpContext.Current.Response.ContentType = "application/ms-excel";
using (StringWriter sw = new StringWriter())
{
using (HtmlTextWriter htw = new HtmlTextWriter(sw))
{
Table table = new Table();
if (gv.HeaderRow != null)
{
//gv.HeaderRow.CssClass = "GridviewStyle";
// gv.HeaderRow.Font.Bold = true;
PrepareControlForExport(gv.HeaderRow);
table.Rows.Add(gv.HeaderRow);
}......................................

View 2 Replies

Web Forms :: Passing Data Between 2 Web Applications?

Jan 31, 2011

I would like to implement the following functionality between 2 web applications:

a) Web application one contains a button, which, when pressed launches another web application.


b) The second application contains a form that is filled in by the customer.

c) After filling in the form, the second application validates the information and returns a 5 digit code to indicate whether validation was successful.

d) Web application one then displays the status and asks the user to continue with other steps.

Is the above scenario possible? Is it possible to transfer data between 2 seperate web applications? I have considered using a query string, database and flat file to trasnfer the data from one application to another. Which of these (if any) would be the best choice?

View 2 Replies

Web Forms :: Two Applications - How To Share Data

Sep 22, 2010

im about to wirte an app that is an extension from the main application that is hosted on the IIS. My application is going to work as a child app (main app as parent) working in main application pool. User will be redirected from the menu to main app to my website. And here is my problem. I would like to pass informations like user login, login state etc. I cant do it via Query String - that wouldnt be safe. I thought I could pass it via Session state, since the SessionID is the same both sides but I cannot retrives parameters on my website(theyre null).

View 2 Replies

Web Forms :: Passing Encrypted Data Between Two Applications

Jan 25, 2011

I need to design two apps who can interact with each other. The first app, App A needs to send an encrypted string over to App B and App B will have to decrypt it and do some stuff. How would I go about that?

App A - http://MachineA/default.aspx
App B - http://MachineB/default.aspx

I tried encrypting the data using AESCryptoServiceProvider and it returns a byte[]. Now how would I transfer it over to another application? Via query strings?

http://MachineB/default.aspx?data=<<EncryptedString>>

Query strings does not take a byte[] parameter. So I am clueless now.

View 2 Replies

Forms Data Controls :: Developing Oop Php Applications?

May 8, 2010

What does return the Eval() method in Markup portion?

View 1 Replies

Configuration :: Deploying Web Applications With Sub Web Applications?

Apr 22, 2010

Our corporate intranet is designed so that each web application is a child application in the primary application.. Everything has worked fine with Visual Studio 2008 and even in 2010 running the website locally works great, the output directory for the child apps is ..in and the ProjectName.dll copies to that directory.. When I do a publish however it does not and I have to manually copy the dll from the bin folder in the project folder to the parent bin folder, this isn't hard of course but more of a pain in the butt each time I need to publish something. I made sure the output directory is correct for both debug and release yet on publish is just copies it to the child bin and not the parent bin as needed.

View 2 Replies

Forms Data Controls :: Gridview Applications Work Fine On Different Pages

Apr 1, 2010

Long story short: I'm basically trying to learn visual web developer/asp.net/and how to get all this to work on a shared hosting environment. The idea is to eventually develop this into something a friend of mine with a garage can use to allow his customers to check their various maintenance records. I basically made a small database with a couple of test tables in it and a gridview to display data based on a variable passed from a text box. I finally got it working on my shared hosting server with just one such 'application', but when I tried to add a second one, both stop working. If I put one in default.aspx, and the other in default1.aspx, they both work perfectly. I've tried using the same dataset for both, and different datasets for each, and same behavior. Also tried using 1 and 2 objectdatasources with the same results. Also tried putting each in their own content placeholders and no change. From my research into the subject, I've come to the conclusion that more than one gridview isn't the problem, so I'm extra stumped now. I'm guessing it's something relatively simple for someone who knows this stuff. Oh, I thought it may have something to do with not using default values, so the 'tables' weren't being drawn, so there wasn't 'room' to do so, but after splitting the apps into two different divs, and floating one bottom/right, again, no change.[URL](first working example)[URL](second working example)[URL](both in same page, not working - might not be up yet if someone reads this quickly)

View 3 Replies

How To Transfer Data To Another Page

Mar 26, 2010

how do I transfer my data to another page.

Have 3 textbox whose value must be transferred..

View 5 Replies

C# - Transfer Data In Another Gridview

Jan 16, 2011

I have a gridview with these columns: id,name,price,quantity,total. Also i have a button and checkbox in every row of gridview. When i check some rows i would like these rows with the button to transfer in another gridview.How can i do that?

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataKeyNames="id" DataSourceID="SqlDataSource3">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="chkSelect" runat="server" />
<asp:HiddenField ID="hdValue" runat="server" Value='<%#Eval("ID") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="id" HeaderText="id" InsertVisible="False"
ReadOnly="True" SortExpression="id" />
<asp:BoundField DataField="name" HeaderText="name" ReadOnly="True"
SortExpression="name" />
<asp:BoundField DataField="price" DataFormatString="{0:c}" HeaderText="price"
ReadOnly="True" SortExpression="price" />
<asp:BoundField DataField="quantity" HeaderText="quantity"
SortExpression="quantity" />
<asp:BoundField DataField="total" DataFormatString="{0:c}" HeaderText="total"
ReadOnly="True" SortExpression="total" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource3" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM [Land]"></asp:SqlDataSource>
</div>
<div>
<asp:Button ID="Button1" runat="server" Text="Button" />
</div>

View 1 Replies

How To Transfer Data From A Gridview To A Database

Jan 18, 2011

I have this code

private void BindSecondaryGrid()
{
DataTable dt = (DataTable)ViewState["SelectedRecords1"];
gridview3.DataSource = dt;
gridview3.DataBind();
}

The selected records from the gridview2 are saved there ViewState["SelectedRecords1"].The columns are id, name, quantity, total. Then these records are saved in gridview3 with

gridview3.DataSource = dt;
gridview3.DataBind();


Now i would like to get these values from gridview3 and store them in a table in my database with same columns of course.Is there a way to do that?

View 1 Replies

Architecture :: Transfer Data From One Application To Another

Feb 26, 2010

i am new in asp.net. i have create a website. its related to tours and travels. Now when any customer get login to webportal then the login info of that customer should send to my system i.e. website. here it will check the user is valid or not or new according to that check user's permissions and send the data to the webportal.

then customer can search the specific data and book the some data say 'hotel'. that time the booking information should send to back to the system. so my query is how can i send the information from my system to webportal and vice versa...(can i do it with javascript)

View 4 Replies

How To Map WebForm To Data Transfer Object

Mar 11, 2011

I'm implementing the MVP pattern within an existing asp.net webforms application and I was wondering if there is a clean way to map my form data to a data transfer object. I'm not particularly fond of implementing it this way:

MyObject obj = new MyObject()
{
bj.Name = txtName.Text,
obj.Description = txtDescription.Text,
obj.SomeOtherValue = txtOtherValue.Text
};

View 2 Replies

Easiest Way To Securely Transfer Data From One Web To The Next?

May 21, 2010

I have 2 web sites running on the same server. Web1 needs to transfer data to web2 (same web server, different webs), passing sensitive data from one to the next. The browser will be using https. Are cookies possible/advisable here? My initial thoughts where to encrypt the data and pass through the querystring, both sites using a shared key. Perhaps also pass an encrypted expiration date to prevent the url from being reused in history if it's on a shared computer. Figuring it's https and encrypted, initially it sounds ok. However, my gut tells me its unsecure. Another option is a session server but that seems a bit overkill for what I'm after.

What is the best way to securely transfer a single piece of data from 1 site to the next on the same web and do it relatively simply?

View 2 Replies

ADO.NET :: Transfer Data Trough Webservices?

Dec 14, 2010

I wan to transfer 3 table consuming a webservices.

Every table was joined with other.

Example:

Custom --> Order --> Order details

I want to transfer all data in one object using xml. How I build this object?

View 1 Replies

DataSource Controls :: Get The Data If Net Disconnect In The Middle Of The Data Transfer?

Mar 30, 2010

i am trasfering the data from internet to database tables or entering information in to data base mean while i lost the connection then, the process gets stop for some time.if connection gets after some,is it possible to resume the data trasfer?

View 3 Replies

DataSource Controls :: Transfer Data Between Databases

May 7, 2010

I want to transfer data from an acces database to a sqldatabase. This is my code:

using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Data.OleDb;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class _Default : System.Web.UI.Page
{
#region page load
protected void Page_Load(object sender, EventArgs e)
{
}
#endregion
protected void click_Transfer(object sender, EventArgs e)
{
OleDbConnection conn1 = null;
OleDbDataAdapter da1 = null;
DataSet ds1 = null;
SqlConnection conn2 = null;
SqlDataAdapter da2 = null;
DataSet ds2 = null;
// 1 Opzetten dataAdapter en dataset
try
{
// Ophalen connectiestring en opzetten v/d connectie
string connString1 = ConfigurationManager.ConnectionStrings["PrinterConnectionString"].ToString();
conn1 = new OleDbConnection(connString1);
string connString2 = ConfigurationManager.ConnectionStrings["PrinterConnectionString2"].ToString();
conn2 = new SqlConnection(connString2);
// Aanmaken van DataAdapters
da1 = new OleDbDataAdapter();
da2 = new SqlDataAdapter();
// Opzetten SelectieCommand
string sql1 = "SELECT * FROM tblPrinter";
OleDbCommand cmd1 = new OleDbCommand(sql1, conn1);
SqlCommand cmd2 = new SqlCommand(sql1, conn2);
da1.SelectCommand = cmd1;
da2.SelectCommand = cmd2;
string sql2 = @"INSERT INTO tblPrinter(PRINTER_ID, tblSoortApparaat, MERK, MODEL, LOKAAL_ID )" +
@"VALUES (@id, @soort, @merk, @model, @lokaal)";
cmd2 = new SqlCommand(sql2, conn2);
// InsertCommand dataAdapter
cmd2.Parameters.Add("@id", SqlDbType.Int, 0, "PRINTER_ID");
cmd2.Parameters.Add("@soort", SqlDbType.NVarChar, 100, "tblSoortApparaat");
cmd2.Parameters.Add("@merk", SqlDbType.NVarChar, 100, "MERK");
cmd2.Parameters.Add("@model", SqlDbType.NVarChar, 100, "MODEL");
cmd2.Parameters.Add("@lokaal", SqlDbType.Int, 0, "LOKAAL_ID");
da2.InsertCommand = cmd2;
ds1 = new DataSet();
da1.Fill(ds1, "PRINTERS");
ds2 = new DataSet();
da2.Fill(ds2, "PRINTERS2");
// Stap 2: Start bewerking!!
DataTable table1 = ds1.Tables["PRINTERS"];
DataTable table2 = ds2.Tables["PRINTERS2"];
DataRow newrow = null;
for (int i = 0; i < table1.Rows.Count; i++)
{
newrow = table2.NewRow();
newrow["PRINTER_ID"] = i + 1;
newrow["tblSoortApparaat"] = table1.Columns[1].;
newrow["MERK"] = table1.Columns[2].DefaultValue;
newrow["MODEL"] = table1.Columns[3].DefaultValue;
newrow["LOKAAL_ID"] = table1.Columns[4].DefaultValue;
table2.Rows.Add(newrow);
}
da2.Update(ds2, "PRINTERS2");
lblMessage.Text = table1.Rows.Count.ToString() + " rijen zijn toegevoegd";
// bindgrid();
}
catch (Exception ex)
{
lblError.Text = ex.Message;
}
}
}

Here is my problem newrow["tblSoortApparaat"] = table1.Columns[1].; When i do that al the rows in my sql database are filt up with the columname. But i want the specik data. For example sql database:

1 tblSoortApparaat
2 tblSoortApparaat
3 tblSoortApparaat

But what i want is

1 PRINTER
2 PC
3 PRINTER

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved