|
i made a profile page in my application and now i want that user can load his picture with all other information
please help me out how do i store / load picture in database along with all other information of the user
waiting for replies as soon as possible
regards 2 all
kanza
|
|
|
|
|
1.Insert a User into the Database and get the RecordId of that user
2.Than after save your photo into the Folder by record id name
FileUpload.SaveAs(Server.MapPath("Photo/") + RecordId + System.IO.Path.GetExtension(FileUpload.PostedFile.FileName));
3.Update Database Filed Photo By the RecordId.jpg
Photo = +RecordId + System.IO.Path.GetExtension(FileUpload.PostedFile.FileName);
Umesh
|
|
|
|
|
|
Go to ajax web site and watch video tutorials
|
|
|
|
|
Gagan Deep Garg wrote: how implement ajax.net.
How to search in google[^] ?
|
|
|
|
|
first u download ajax form net and install on ur system ofter that u ask me what next process.
Piyush Vardhan Singh
|
|
|
|
|
hi
please help me.....
am doing a mantanence project. i have writen some code to copy a file from server to harddisk. but there is some problem. i have developed this as windows application. now they want as web. tyhe problem is, i was reading the file path and copying in dos.in windos the path is already is there in html page in javascript. can i move the value to a the code behind string(C#). if we can convert how is it possible?
in code behind there is string Customer, book
on html page there is values of customer1 and journal as
var customer1 ='<%=Session["customer"]%>';
var journal = '<%=Session["journal"]%>';
how can we get the values of customer1 and journal to Customer, book
please help me....
please
|
|
|
|
|
P_Elza wrote: how can we get the values of customer1 and journal to Customer, book
Put these values into a hidden server textbox control. Access the values from there in server side. Make sure you are not storing any sensitive information as it is easy to tamper.
|
|
|
|
|
You Can create two hidden variables with tag runat="server" and assign the values to these hidden fields and access it from server side.
|
|
|
|
|
i have one master page, in this body we have written onkeydown event in javascript. in this javascript code we are preventing for Enter button keycode. this javascript function is preventing enterbutton for my whole application
in my default.aspx form, there is one contentplaceholder, in which there is textbox(multiline) control.
my problem is i want to activate/allow enter button onkeydown event only for my default.aspx textbox control.
How can i do this. ??
Ramana
|
|
|
|
|
Try this
function isValidText(oSrc, args)
{
}
Just Check it.
I guess in ur case oSrc.ClientID will give u desired thing. ClientID is a distinguisable feature in case of multiline control which is appended by rownumber in ID.
|
|
|
|
|
Hi,
when i run my asp.net application it shows msg Unable to debuging on web server. But when i select start without debuging then application get run.
Girish Soni
|
|
|
|
|
sonigirish wrote: Unable to debuging on web server.
Are you using a remote server ? If it is localhost, check integrated windows authentication is checked in IIS settings.
|
|
|
|
|
It is localhost and both prorerties are checked
Girish Soni
|
|
|
|
|
How to close a frame from either javascript or from code behind in a page? Suppose if in a page two frames are present and in one frame an aspx page is present...in onClick of a button in the aspx page the other frame should be closed and the aspx page should occupy the whole window ...is there any way to do this?
Koushik
|
|
|
|
|
Hi,
I am using zip method provided by java.util.zip which takes input as sbyte[].I am getting response from a function in Stream.This stream is a file data.And when I am making conversion from byte[] to sbyte[] because of some Data loss I am not able to open the file which gives error like file is corrupted or damaged. I can think of some solutions but here are the problems with them-
1.> Can I convert this Stream to sbyte[],presently I am converting it to byte[] through MemoryStream.
2.> Presently I am directly putting this byte[] to Response.BinaryWrite() and its working but how to do that with sbyte[] conversion from byte[] to sbyte[] to create a zip entry and then again converting it to byte[] for Response.BinaryWrite can damage the file.
Any suggestion will be appreciated..
Prateek..
|
|
|
|
|
plz try this code
byte[] data = new byte[100];
sbyte[] s = (sbyte[])(Array)data;
Rajendran
|
|
|
|
|
No, Still I am not able to open the file its given same error.
|
|
|
|
|
iam using iframe .in that iframe i kept an html page .now on clicking a button i want the complete source code of that html page form to
|
|
|
|
|
|
sir i want to read the source code of that html file through program or a when a button was clicked i want the source code of that html page in the i frame only
|
|
|
|
|
Using Javascript ? Then you need to get the content document of IFrame and look in InnerHTML property. If you need this in server side, put a hidden server side textbox, assign the InnerHTML to this textbox using Javascript before page gets posted. Access the value from this textbox on server
|
|
|
|
|
sir if dont mind give the code how to write
|
|
|
|
|
Assume your IFrame is named "MyIframe". So InnerHTML can be taken like
var IframeDoc = document.getElementById('MyIframe').contentWindow.document
alert(IframeDoc.body.innerHTML); I hope you know how to put this to a textbox and get this in server.
|
|
|
|
|
sir i used like this only with innerhtml .but iam getting only the source code from to.but iam not getting the java script which i used in the html page.
|
|
|
|