Click here to Skip to main content
16,004,882 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Datagrid Operations Pin
Imran Khan Pathan17-Oct-07 23:44
Imran Khan Pathan17-Oct-07 23:44 
AnswerRe: Datagrid Operations Pin
N a v a n e e t h17-Oct-07 23:44
N a v a n e e t h17-Oct-07 23:44 
AnswerRe: Datagrid Operations Pin
John-ph18-Oct-07 0:01
John-ph18-Oct-07 0:01 
GeneralRe: Datagrid Operations Pin
divya.narayan17-Oct-07 23:57
divya.narayan17-Oct-07 23:57 
GeneralRe: Datagrid Operations Pin
N a v a n e e t h18-Oct-07 0:06
N a v a n e e t h18-Oct-07 0:06 
Questionwebfarm File Upload Pin
monu nair17-Oct-07 23:19
monu nair17-Oct-07 23:19 
AnswerRe: Datagrid Pin
Imran Khan Pathan17-Oct-07 23:32
Imran Khan Pathan17-Oct-07 23:32 
QuestionUpload Pin
SreejithAchutan17-Oct-07 23:13
SreejithAchutan17-Oct-07 23:13 
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ page import ="java.sql.*" %>
<%@ page import ="javax.sql.*" %>
<%@ page import ="javax.naming.InitialContext" %>
<%@ page import ="java.sql.PreparedStatement.*" %>

<%
try
{
int up1=Integer.parseInt(request.getParameter("num"));
String up2=request.getParameter("attach");
java.io.File f=new java.io.File("up2");
java.io.FileInputStream fis= new java.io.FileInputStream(f);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection
con=DriverManager.getConnection("jdbc:odbc:balaji", "admin","qsg");
PreparedStatement pst=con.prepareStatement("insert into upload values(?,?)");
pst.setInt(1,up1);
pst.setBinaryStream(2,fis,(int)f.length());
pst.executeUpdate();
pst.close();
con.close();
%>

File Uploaded Successfull


<%
}
catch(Exception e)
{
%>

File Does not Uploaded


<%
}
%>




this source code is for saving an uploaded image into a database uaing java how we convert it into local sql database query
QuestionUploading Photos Pin
SreejithAchutan17-Oct-07 22:57
SreejithAchutan17-Oct-07 22:57 
AnswerRe: Uploading Photos Pin
Imran Khan Pathan17-Oct-07 23:11
Imran Khan Pathan17-Oct-07 23:11 
GeneralRe: Uploading Photos Pin
SreejithAchutan17-Oct-07 23:14
SreejithAchutan17-Oct-07 23:14 
QuestionAccess right to admin/user(.Net 1.1+ c#) Pin
That's Aragon17-Oct-07 22:42
That's Aragon17-Oct-07 22:42 
AnswerRe: Access right to admin/user(.Net 1.1+ c#) Pin
VenkataRamana.Gali17-Oct-07 23:54
VenkataRamana.Gali17-Oct-07 23:54 
GeneralRe: Access right to admin/user(.Net 1.1+ c#) Pin
That's Aragon18-Oct-07 0:11
That's Aragon18-Oct-07 0:11 
GeneralRe: Access right to admin/user(.Net 1.1+ c#) Pin
VenkataRamana.Gali18-Oct-07 0:26
VenkataRamana.Gali18-Oct-07 0:26 
GeneralRe: Access right to admin/user(.Net 1.1+ c#) Pin
That's Aragon18-Oct-07 0:46
That's Aragon18-Oct-07 0:46 
QuestionHelp me to solve this error..., Pin
Member 387988117-Oct-07 22:38
Member 387988117-Oct-07 22:38 
AnswerRe: Help me to solve this error..., Pin
Jintal Patel17-Oct-07 22:46
Jintal Patel17-Oct-07 22:46 
GeneralRe: Help me to solve this error..., Pin
Member 387988117-Oct-07 23:17
Member 387988117-Oct-07 23:17 
GeneralRe: Help me to solve this error..., Pin
Bjohnson3317-Oct-07 23:35
Bjohnson3317-Oct-07 23:35 
QuestionTreeview Postback Problem Pin
evilamigo17-Oct-07 22:38
evilamigo17-Oct-07 22:38 
AnswerRe: Treeview Postback Problem Pin
Bjohnson3317-Oct-07 23:40
Bjohnson3317-Oct-07 23:40 
AnswerRe: Treeview Postback Problem Pin
Sri_346418-Oct-07 1:37
Sri_346418-Oct-07 1:37 
GeneralRe: window closing event[off topic] Pin
Sonia Gupta17-Oct-07 22:36
Sonia Gupta17-Oct-07 22:36 
GeneralRe: window closing event[off topic] Pin
ThatsAlok17-Oct-07 22:59
ThatsAlok17-Oct-07 22:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.