|
Images can be stored in DB in the form of a BLOB. One way is to do it this way, have a inputfile control in your aspx page through whoch you can browse the image to upload. Then in the code behind block , u can do something like this
Dim imgStream As Stream = UploadFile.PostedFile.InputStream
Dim imgLen As Integer = UploadFile.PostedFile.ContentLength
Dim imgContentType As String = UploadFile.PostedFile.ContentType
Dim imgBinaryData() As Byte = New Byte(imgLen) {}
imgStream.Read(imgBinaryData, 0, imgLen)
in the insertion code, set a SqlParameter like this
Dim imgParam As SqlParameter = New SqlParameter("@Photo_Data", SqlDbType.Image)
imgParam.Value = ImgBinaryData
|
|
|
|
|
;)But what if i m using jsp or java to store the image to database can u have any idea what to do..
Lack:coder:
|
|
|
|
|
it has to be possible to do it using java or jsp too ~ SQL has a built in data type called image ~ stores images in binary form ~ what is usually called a BLOB ~ if u can get the input image to be converted to a byte array then it is possible to get it into SQL ~ i have never worked in jsp or java so i cant tell you how
|
|
|
|
|
Try this link, I think this is what you are looking for. If not let me know
link[^]
Brian Van Beek
Inside this room, all of my dreams become realities, and some of my realities become dreams. -Willy Wonka
Just started a new blog, yeah! [^]
|
|
|
|
|
Friends,
Some of the items in my listbox(Select box in html) are too big to display. Can I have a tooltip that displays the same text when I move over it? If so, how?
Any help or suggestions would be appriciate.
Thanks & Regards,
Shiby
|
|
|
|
|
This is a problem i agree. I faced same problem a while ago.
I do not have any idea how to add a tooltip to the list, and would appriciate if any body has that solution.
For my application what i did was - remove the width of the control and thus in turn the control takes the width of the broadest item in the list. In order not to mess the rest of the UI, do not place any other control in same horizontal line with this one.
Like it or not - Live with it. (was my attitude due to time constraints.)
Ketty
|
|
|
|
|
Hi,
My javascript onclick is not working for firefox, how can i make it work?
like
RadioMain.Attributes.Add("onClick","alert()");
its working in IE but not firefox
thanks in advance
viks
|
|
|
|
|
RadioMain.addEventListener("click", function(event) { alert(); }, false);
Reference[^]
|
|
|
|
|
Thanks for your reply
Actually My problem is that I am creating radioButton dynamically from xml file so I cannot use Attributes.Add in codebehind
I can write a function and adding it in XML file so it gives output like
<asp:radiobutton id="RadioButton1" onlick="toggleT(id1,h)" runat="server">
where my function is toggleT which is written in javascript file.
function toggleT(_w,_h) {
if (document.all) { // is IE
if (_h=='s') eval("document.all."+_w+".style.visibility='visible';");
if (_h=='h') eval("document.all."+_w+".style.visibility='hidden';");
} else { // is NS?
if (_h=='s') eval("document.layers['"+_w+"'].visibility='show';");
if (_h=='h') eval("document.layers['"+_w+"'].visibility='hide';");
}
}
this is working fine in IE but not in firefox and message in JavaScript console is not clear as it is not statisfying any of if condition so whatever i am putting in last it goes there.
Any suggestion will be great
Thanks
viks
|
|
|
|
|
Actually my mistake was using document.all when I am using document.getElementById its working fine in firefox
Thanks
Viks
|
|
|
|
|
Hi,
I"m writing a page in asp. When the user presses on Submit the form is passed by Post to a url in a different site.
The problem is that i want to do this action in script, meaning call a function which will call the url and pass the form by Post.
There are :
Server.Transfer - passes only to a page in the same site, so no good for me.
Response.Redirect - Doesnt pass and form or query parameters so no good for me again
So how will i do this?
Thanks in advance
Goldwind
|
|
|
|
|
I think You can use the following,
document.FormName.action="Your URL"
document.FormName.submit()
N.Rajakumar B.E.,
Application Developer,
|
|
|
|
|
I have a web application written in asp.net using vb.net. I have a problem with windows prompting to auto remember passwords for my webpage. This worked fine on my page, autofilling usernames and associating and autofilling passwords UNTIL I added a textbox for searching in the menu control (.ascx) located at the top of the page no longer making the username and password texboxes the first textboxes on the page. If i take the search textbox off of the page, windows then starts prompting me to associate passwords with the autofilled usernames. If the search textbox is on the page, windows no longer will associate passwords with the autofilled usernames; but does still remember usernames. I believe that the problem is some how associated with the username and password textboxes no longer being the first 2 textboxes on the page. does anyone know why this is happening??? is there a way to associate two textboxes so that windows will autofill passwords when their?
Thanks in advance for your help
|
|
|
|
|
Hi,
I want to restrict access my website unauthorized user. I am using SSL certificate and digital ID and I want to retrieve digital ID's public key with asp code or any language to authenticate users for give them role based function. How to retrieve public key to authenticate users?
Thanks in advance
|
|
|
|
|
Suppose I have a page_1 with a link to page_2.
And page_2 has frames.
Is there any way I could open page_2 with a specific frame indicated in a link in page_1?
Using HTML and JavaScript only!
Anyone got an idea?
Thanks,
Isaac Sasson,
Small time programmer - complainer at large!
Sonork ID 100.13704
-- modified at 12:28 Thursday 22nd December, 2005
|
|
|
|
|
Isaac Sasson wrote: Is there any way I could open page_2 with a specific frame indicated in a link in page_1?
Yes, assuming you own page_2 . The easiest way is to simply set up a new frameset document for each frame that you might need loaded, and navigate to the appropriate one. An alternative is to set up some javascript in the frameset document that parses the URL appropriately.
If you don't own page_2 , then you're pretty much out of luck, unless the page has already been set up to handle this sort of navigation (example: Most page requests on MSDN are redirected to default.asp, with the original path in the url= parameter).
|
|
|
|
|
Hi guys
I have a very weird bug and will welcome gracefully any help
We developed ASP.Net application that run on production server, Net Framework 1.1 , IIS 6.0, the application is huge, having hundreds of user controls and worked under massive requests load : 200-1000 connected sessions and millions of page views per day
The application is stable; the only and urgent problem is that:
About 10 times per day, more frequently at pick hours, we see this error in windows event log:
Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID: 0
Date: 21/12/2005
Time: 18:42:28
User: N/A
Computer: XXX
Description:
The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: .NET Runtime version 1.1.4322.2300- Setup Error: Failed to load resources from resource file
Please check your Setup.
After this the worker process that connected to application pool is recycled and application is extremely slowly till it loads all resources and updated all cache entries (we use server cache (HttpContext.Current.Cache) to save expensive queries results), it is unacceptable for our client.
The description of event is very general, and all my Google research can’t help me to find helpful information about source of event.
I do not believe that somebody can tell me exactly the source of the problem,
But any instructions about what I can to do research the problem: debugging tools, some tools to get more descriptive event source description, general tips how to research this kind of problem would be very, very welcome
Thanks a million for any help
and may the source be with you
|
|
|
|
|
I dont know exactly the reason of ur prob but I got same kind of problem some times back. I was using remoting where my remote object on server was accessing the MSMQ on another machine for some client requests. The path of the Queue was wrong, so the instantiation of that object was generating the error on client and since the Runtime failed to handle such kind of errors, it gives this one.
I think u may get some idea.
Akif
|
|
|
|
|
THanks for your help , Akif
actually we solved the problem with help of some guys on Google groups
our problem was recursion between 2 public properties of some user control that was happening in very limited comnditions
what was finally used to find the solution (and now we will able to find the reason of any problem like this) is DebugDiag tool that creates a dump file when app.pool process is crushes and WinDebug to read the dump and find line of code that cause the problem
anybody that has app.pool crush problem is invited to read following thread :
http://www.dotnetnewsgroups.com/newsgroupthread.asp?ID=239983[^]
or visit blog of guy that solved it for us:
http://blogs.msdn.com/jamesche[^]
and may the source be with you
|
|
|
|
|
hi!
i am having a serious problem in displaying message in HTML message.
i am using webbased from cum sending email application, from where a html page created and along with that an email send in HTML format if i use text formta it is working perfectly, but i when i use HTML format it not showing full message body at Pegasus mail4.0. when i check the email on rediffmail, hotmail, outlook express, yahoo. there the all format and data are showing correctly there are no data loss. only in pegasus i getting problem sometime half of data, sometime 3/4 of data are displaying formatting are also not there, using style sheet if i put different different colour to the message body text. its showing black only for pegasus, others are showing perfectly allright.
can any one help me out? i can produce varible declaration and send mail code also, if requried.
sujata.
|
|
|
|
|
I want to set focus on some control within a datagrid in ASP.NET as textbox.
it should be on pageload.
how can i do this??
|
|
|
|
|
how about this...if using this js method getElementbyId("yourtextboxid").setfocus()
<< >>
|
|
|
|
|
|
i want to store the data from aspx page to excel sheet.anybody can help me
|
|
|
|
|
Try searching the articles on this site...
Phil
|
|
|
|