|
You just add the HTML code for the object in the page. It's all done in the browser, so it has actually nothing at all to do with ASP.NET.
---
Year happy = new Year(2007);
|
|
|
|
|
You have to do with your HTML Code. Use <OBJECT> tag to include SWF file into the page.
|
|
|
|
|
Venkatesh sir,
Can I have a .Net made control(like UI) to display and edit the word and excel files. Its functionalities must be similar to DSO Framer control, but it should be prepared by using .Net framework or a .Net control. Please tell me if you have any Idea. Please.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Sorry Aleem,
I don't know about DSO Framer Controls... Don't post the same question everywhere man... Its a suggestion, because CodeProject is a forum not Chat Screen. Sorry if my words hurts you...
|
|
|
|
|
You have been asked before to stop doing this. Do not post this question all over the place. You are going to start annoying a lot of people if you keep doing this, and you will be treated as a troll (and you don't want that).
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
can you please describe more about tag abject?
please give me an example which is about to put a swf in asp.net with object tag.
thank you.
plz write it
|
|
|
|
|
you can use the adrotator control
read about this control and how it works
Best Regards,
Haissam Abdul Malak
My Blog
|
|
|
|
|
hi..
I'm working on a project where i'm intercepting the response coming from a web service through a SoapOutputFilter on the server side, and i'm encrypting certain information. but now i'm trying to do the same thing to intercept the request going out of a client, it doesn't seem to work so do you know how i can do that?
|
|
|
|
|
How far did you go? Have you tried using the PipeLine.OutputFilters property to add your custom output filter? Since you are using the old version of WSE (with SoapOutputFilter method), IMO you may consider using the WCF or WSE 3.0 instead.
|
|
|
|
|
Hi !
I wonder what's the best way to save information like a list of objects.
On one page I should sale products.This mean:
#Sale product
#Add product info to a check (this check is actually the list of objects).
I want to display this list of obejcts in my page.
Is the session the best solution?
|
|
|
|
|
Yes, that's going to be your best bet.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi all
In visual studio 6 there was a way to step over the exception handling when we r in the release mode and to step into them when it's a debug mode
that was done using macros
How can i implement that in .net 2003?
Best Regards
3ala2
|
|
|
|
|
Are you talking about preprocessor directives? I've never actually used them, but I think they do what you're talking about. There are several pages out there on how to use them. Here's the first one that I googled.
http://www.csharphelp.com/archives/archive36.html[^]
|
|
|
|
|
hi, I need to use Gaphics g = new Graphics.FromImage(bmp) but i could not find the method .FromImage. I've added namespace like
using System;<br />
using System.Data;<br />
using System.Text;<br />
using System.Web;<br />
using System.Drawing;<br />
using System.Drawing.Text;<br />
using System.Drawing.Imaging; <br />
using System.Security.Cryptography;<br />
using System.Drawing.Drawing2D;
why is it like this?
|
|
|
|
|
That is not possible. FromImage is a method, not a constructor, so you can not use it that way.
If you skip the new keyword, it will work.
---
Year happy = new Year(2007);
|
|
|
|
|
oh so i can just put it this way:
Bitmap bmp = new Bitmap(width, height, PixelFormat.Format24bppRgb);
Graphics gph = new Graphics(bmp)??
|
|
|
|
|
No, you can't. There is no public constructor for the Graphics class.
---
Year happy = new Year(2007);
|
|
|
|
|
Hi,
I'm searching for syncing two databases in web ...
In my WebApp the user should be able to sync some tables with another database ( in web )
How can i do this ?
I'm thinking of a webservice to do this ... ( is it a right way ?! )
Regards,
Hadi
|
|
|
|
|
Hi,
how to store the uploaded file(.doc,jpeg) from asp.net page to sqlserver and retriveing the stored uploaded file from sqlserver and display it on asp.net page
|
|
|
|
|
|
Thanks its great its working ,but how to safe a .doc file like how to safe users word document resume in sqlserver database and retriving it
|
|
|
|
|
The upload function is the same whatever type of document (you can store .doc files in an "Image" datatype - it's just a blob field.
The OnPageLoad function where the file is retrieved:
Assuming the uploaded file is in the table MyTable in a column called MyFile, the mime type of the file is stored in MyFileMIME and the id field is MyID
private void Page_Load(object sender, System.EventArgs e)
{
int MyID = Convert.ToInt32(Request.QueryString["MyID"]);
SqlConnection connection = new
SqlConnection (@"server=INDIA\INDIA;database=iSense;uid=sa;pwd=india");
connection.Open ();
try
{
SqlCommand command = new
SqlCommand("select myFile, myFileMime from MyTable " +
"where MyID = @MyID", connection);
command.Parameters.AddWithValue("@MyID", MyID);
byte[] myFile = null;
string myMimeType = "";
SqlDataReader reader = command.ExecuteReader();
reader.Read();
myFile = reader.GetBytes(0, 0, myFile, 0, int.MaxValue);
myMimeType = reader.GetString(1);
}
finally
{
connection.Close();
}
Response.Clear();
Response.ContentType = myMimeType;
Response.BinaryWrite(myFile);
Response.End();
}
The above function takes retrieves both the file data and the mime type from the database (which you would have stored previously. For a word doc it's something like application/word and for a jpeg it's something like image/jpg but you could google mime types for more info (I'm just doing this from memory).
The above function replaces the html in the page with the file you are retrieving, so to use the above to display an image in a web page, you would use html like this:
in MyHtmlPage.html
<img src="GetFile.aspx?MyID=12345" width="100" height="100">
where file id 12345 is an image
or to retrieve a word doc, you would just put a link to it:
in myHtmlPage.html
<a href="GetFile.aspx?MyID=12345">Download file</a>
where file id 12345 is a file to download.
One final note: the above page load function is not particularly secure (it's for demonstration purposes only). You should google for info about "sql injection attacks" and modify the data access appropriately.
Hope that helps.
|
|
|
|
|
hi
is anybody familiar with production-ready distributed/clustered cache solution for .net ?
Google helped me to found some (like ncache and scale-out-state-server), but they are over-priced
thanks anyway for your time reading that
###
|
|
|
|
|
hi every body
in my code, i bind a data to dataset then make this dataset the datasource to my datagrid.
i want to prevent some columns from appearing in the datagrid but please don`t tell me to filter it in the select query i want to prevent these columns from appearing after the dataset is bound
what can i do?
haitham
|
|
|
|
|
Hide the column in the DataGrid.
Set the columns in the designer and set visible to false for the columns you don't want displayed.
only two letters away from being an asset
|
|
|
|