|
Hello All,
I'm trying to develop an application where, i have a flash file running in an ASPX page and that page contains an aspx save button. I need to capture a portion of the screen(i 've filled a rectangle with color and an image in flash-- this need to be captured) and save that as a jpg file in the server on an aspx button click. Code behind is C#.net.
Can anyone help me.
Regards,
jeeva
|
|
|
|
|
You can't do that using ASP.NET. As the graphics is shown on the client computer, you will need a component that runs in the browser that captures the graphics and sends it to the server.
You can't even use a server control to trigger the process, as doing so will cause a postback, and when the browser returns from the postback, the page that you wanted to capture is gone.
---
b { font-weight: normal; }
|
|
|
|
|
Thanx for the reply.
can u figure out a possible solution for this?
i somehow want that portion of the screen to be saved on the server.
(Is it possible with javascript or vbscript).
regards,
jeeva
|
|
|
|
|
You can't access the graphics of the client using client script. You need something like an ActiveX component or a Java applet.
---
b { font-weight: normal; }
|
|
|
|
|
Can u tell me how to achieve my goal with Activex or the java applet.
Hope u can give me some tips.
Thank You.
Regards,
jeeva
|
|
|
|
|
Hi all
i am trying to insert data into access database but it is giving this error plz can any one tell me why it is giving this error
ERROR :
-----------
Operation must use an updateable query.
MY CODE :
----------
Dim sConnectionString
Dim objCmd As New System.Data.OleDb.OleDbCommand
sConnectionString = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("users.mdb") & ";")
Dim objConn As New System.Data.OleDb.OleDbConnection(sConnectionString)
objConn.Open()
objCmd.Connection = objConn
objCmd.CommandText = "INSERT INTO userInfo(username,userpasswd) values('" & TextBox1.Text & "','" & TextBox2.Text & "')"
objCmd.ExecuteNonQuery()
objConn.Close()
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
-- modified at 3:26 Tuesday 11th July, 2006
|
|
|
|
|
That is because you haven't set write permission on the database file for the account running the code.
---
b { font-weight: normal; }
|
|
|
|
|
HI
How can i set the permissions....
What settings i have to change
Can u plz explain me
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Right click the mdb file and go to the security tab, make sure the .net worker process has access (write) to it.
|
|
|
|
|
I am adding reference for microsoft outlook. i have selecting microsoft outlook 11.0 object library.
but in my code it gives error in c#.net 2005. but its working in visual studio 2003. Please help me.
Error:
The type or namespace name 'Interop' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly reference?)
using System;
using System.Collections.Generic;
using System.Text;
//using System;
using System.Reflection; // to use Missing.Value
using Outlook = Microsoft.Office.Interop.Outlook;
namespace CheckOutlook
{
class Program
{
static void Main(string[] args)
{
try
{
// Create the Outlook application.
// in-line initialization
Outlook.Application oApp = new Outlook.Application();
// Get the MAPI namespace.
Outlook.NameSpace removed = oApp.GetNamespace("mapi");
// Log on by using the default profile or existing session (no dialog box).
oNS.Logon(Missing.Value, Missing.Value, false, true);
// Alternate logon method that uses a specific profile name.
// TODO: If you use this logon method, specify the correct profile name
// and comment the previous Logon line.
//oNS.Logon("profilename",Missing.Value,false,true);
//Get the Inbox folder.
Outlook.MAPIFolder oInbox = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
//Get the Items collection in the Inbox folder.
Outlook.Items oItems = oInbox.Items;
// Get the first message.
// Because the Items folder may contain different item types,
// use explicit typecasting with the assignment.
Outlook.MailItem oMsg = (Outlook.MailItem)oItems.GetFirst();
//Output some common properties.
Console.WriteLine(oMsg.Subject);
Console.WriteLine(oMsg.SenderName);
Console.WriteLine(oMsg.ReceivedTime);
Console.WriteLine(oMsg.Body);
//Check for attachments.
int AttachCnt = oMsg.Attachments.Count;
Console.WriteLine("Attachments: " + AttachCnt.ToString());
//TO DO: If you use the Microsoft Outlook 10.0 Object Library, uncomment the following lines.
/*if (AttachCnt > 0)
{
for (int i = 1; i <= AttachCnt; i++)
Console.WriteLine(i.ToString() + "-" + oMsg.Attachments.Item(i).DisplayName);
}*/
//TO DO: If you use the Microsoft Outlook 11.0 Object Library, uncomment the following lines.
/*if (AttachCnt > 0)
{
for (int i = 1; i <= AttachCnt; i++)
Console.WriteLine(i.ToString() + "-" + oMsg.Attachments[i].DisplayName);
}*/
//Display the message.
oMsg.Display(true); //modal
//Log off.
oNS.Logoff();
//Explicitly release objects.
oMsg = null;
oItems = null;
oInbox = null;
removed = null;
oApp = null;
}
//Error handler.
catch (Exception e)
{
Console.WriteLine("{0} Exception caught: ", e);
}
// Return value.
//return 0;
}
}
}
Prya
|
|
|
|
|
my application is actually a web application where i manually upload CSV file to the database.but i want to automate the process,so i have thought of a second stage to this application i.e through a windows application i would download the CSV file from the NSEIndia.com site automatically and then upload the same to SQLServer on the server.i am facing a problem with upload i.e exporting the data to the database.it would be a great help to me if any one could provide me a solution either in VB.Net code or C# code.
AMIT(TATA CMC)
|
|
|
|
|
You need to programaticcaly involke DTS package.
for this you need to add 3 COM object references
1. Microsoft DTS Custom Task Object Lib
2. Microsoft DTSDatapump scripting object
3. Microsoft DTS Package object lib
once you do this i suggest u to use import / export wizard to import data and save package in VB file.
once you open this VB file you will be abl to under stand how to use object of above mention references
Nobody is perfect i'm Nobody
|
|
|
|
|
Hi all
i wants to save the images with name in database.i want to bind the images and imagename with control to show in list .
please send the code.
Best Regards,
srinandan
|
|
|
|
|
Not that hard to do yourself.
srinandan.. wrote: please send the code.
Nope. Look at my sig
I'd like to help but I am too lazy to Google it for you.
|
|
|
|
|
I want to show data in comments in excel sheet and worksheet will be created in asp.net
Thanks in Advance
|
|
|
|
|
I've been developing with c# and forms and I use the Split Container heavily because it automatically resizes when in full-screen. What is the recommendation with asp.net to accomplish this? What control should I use to lay out the various panels on the screen.
|
|
|
|
|
It's not maybe a question of controls - there are a number of ways of laying out a web page - you might want to have a look at www.csszengarden.com[^] or http://www.alistapart.com/[^].
There are many more things to think about when laying out a web form (e.g. cross browser capability) than when laying out a win form.
Hope that helps.
|
|
|
|
|
HI,
We are developing one application in ASP.NET to monitor web sites which is running in the server(WEB SERVER).we need to monitor single URL and also sequence URL to know the status of server,when the server is getting down.If server is getting down means we need to send SMS alert Message to Adminstartor.Kindly any one can help me how to proceed in technically.I am new to this topic.Plz suggest some technical guidence.If you post any articals means its help full to me to know.PLZ its very urgentttttttttttttttttttt.Kindly help me.THANKS IN ADVANCE
DeviChella
|
|
|
|
|
Hi everybody,
Is there any way to implement VCalendar using C# in asp.net? I have List of events in datagrid, in which i am showing only dates in the datagrid.when someone click on a row in datagrid, it will display the details for that date's event in tabular format using a javascript function on a same page.I have one hyperlink to add that details in the microsoft outlook. when some one click on that hyperlink, the displayed event will be added to the outlook.I am very confuse with this as I am implementing first time.
If any body can help me with some code, it will be great for me.
Thank you very much.
Robin
|
|
|
|
|
I'm trying to compile a module that I've written for DotNetNuke. (Actual I have compiled it without problem.)
When I generate the web site the DLL for that module has a wacky mangled name. Is there anyway to tell the compiler (VS2005) what the name of the DLL should be for a module that you are compiling? (For any cs or vb file that you're compling...)
Thanks
|
|
|
|
|
Hi there.
I've created a 3D dynamic virtual tour with asp.net/atlas (editor) and java3d.
Please post your impressions!
To show go here: http://davil.exent.it/virtualtour
here a preview: http://davil.exent.it/virtualtour/preview.jpg
Thanks for your impressions!
DaViL
|
|
|
|
|
|
I have a drop down list (not attached to my datagrid anymore for those of you on the saga with me). I just want to populate this plain old drop-down box. But I can't get it to populate. I could get it to populate when I had it inside a datagrid, so I'm sure it's something easy.
Here is my asp code:
<asp:dropdownlist id=ddPartType style="Z-INDEX: 101; LEFT: 104px; POSITION: absolute; TOP: 48px" tabIndex=1 runat="server" Width="144px" Height="24px" DataSource="<%# GetPartTypes()%>" DataTextField="ptDescription" DataValueField="ptId" EnableViewState="True" AutoPostBack="True"><br />
</asp:dropdownlist>
All I'm doing is calling GetPartTypes. Okay, here's that code (C#)
public DataSet GetPartTypes()<br />
{<br />
ds3 = new DataSet();<br />
ds3= SqlHelper.ExecuteDataset(this.connectionString, "dbo.GetDescriptions", null); <br />
dt3 = ds3.Tables[0];<br />
ds3.Tables[0].TableName="PartTypes";<br />
ddPartType.DataSource = ds3;<br />
ddPartType.DataBind();<br />
return ds3;<br />
<br />
}
This calls a stored procedure, GetDescriptions. I know this code works because it executes in Query Analyzer. It's just basically return the descriptions and order by description.
Going through the debugger it's like the code never gets called. So I delibrately called it in PageLoad and got a stack overflow.
BLECH!
Follow up: Okay I can get it to populate if I put the code in the PageLoad. Is this the only way to do it? Or is there something similiar to what I was trying to do?
-- modified at 16:09 Monday 10th July, 2006
|
|
|
|
|
Remove DataSource="<%# GetPartTypes()%>"
When you assign the datasource in the page load it is trying to bind to the method you have defined, which again calls DataBind, which again calls this method, which...see where the stack overflow comes in?
|
|
|
|
|