Click here to Skip to main content
15,914,070 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to validate a textbox inside the datagrid Pin
coolestCoder18-Aug-06 20:09
coolestCoder18-Aug-06 20:09 
QuestionAutosave using Ajax in every 10 sec. Pin
Amit Agarrwal18-Aug-06 18:59
Amit Agarrwal18-Aug-06 18:59 
AnswerRe: Autosave using Ajax in every 10 sec. Pin
HRiazi19-Aug-06 1:14
HRiazi19-Aug-06 1:14 
GeneralRe: Autosave using Ajax in every 10 sec. Pin
Amit Agarrwal19-Aug-06 1:45
Amit Agarrwal19-Aug-06 1:45 
GeneralRe: Autosave using Ajax in every 10 sec. Pin
HRiazi19-Aug-06 5:55
HRiazi19-Aug-06 5:55 
Questioninsert sound into sqlserver Pin
suri8318-Aug-06 11:32
suri8318-Aug-06 11:32 
AnswerRe: insert sound into sqlserver Pin
Guffa18-Aug-06 12:19
Guffa18-Aug-06 12:19 
AnswerRe: insert sound into sqlserver Pin
coolestCoder18-Aug-06 20:17
coolestCoder18-Aug-06 20:17 
Hi,
Here's some code to get you started:

CREATE TABLE MyMp3s<br />
(<br />
Mp3Image image<br />
)<br />
GO<br />
<br />
CREATE PROC InsertMp3Image<br />
@Mp3Image image<br />
AS<br />
INSERT INTO MyMp3s VALUES(@Mp3Image)<br />
GO<br />
<br />
// C# code snippet<br />
<br />
Int32 m_MaxFileSize = 10240000;<br />
<br />
SqlCommand storedProcedure =<br />
new SqlCommand("InsertMp3Image" , SqlConnection);<br />
storedProcedure.CommandTimeout = 30;<br />
storedProcedure.CommandType = CommandType.StoredProcedure;<br />
<br />
System.IO.BinaryReader binaryReader =<br />
new BinaryReader(<br />
new FileStream (@"C:\Mp3\MyMp3.mp3",<br />
FileMode.Open,<br />
FileAccess.Read));<br />
<br />
byte[] buffer = binaryReader.ReadBytes(m_MaxFileSize);<br />
<br />
binaryReader.Close();<br />
<br />
storedProcedure.Parameters.Add( "@Mp3Image", buffer );<br />
<br />
storedProcedure.ExecuteNonQuery();


I copied it from -
http://www.thescripts.com/forum/thread80344.html[^]


suri83 wrote:
When we enter a word and do a search on that, we should get all the sound files containing that word.


As the other person told just store some unique information relating to the sound files in the database and search the db for this unique key!




<marquee>"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder

Anant Y. Kulkarni

QuestionASP.NET v.2 code behind Pin
Gary Hyslop at home18-Aug-06 11:16
Gary Hyslop at home18-Aug-06 11:16 
AnswerRe: ASP.NET v.2 code behind Pin
Brent Lamborn18-Aug-06 11:49
Brent Lamborn18-Aug-06 11:49 
GeneralRe: ASP.NET v.2 code behind Pin
Gary Hyslop at home18-Aug-06 13:27
Gary Hyslop at home18-Aug-06 13:27 
GeneralRe: ASP.NET v.2 code behind Pin
Brent Lamborn21-Aug-06 3:25
Brent Lamborn21-Aug-06 3:25 
QuestionGridview ClientSide column add and remove Pin
GaryT8018-Aug-06 10:11
GaryT8018-Aug-06 10:11 
AnswerRe: Gridview ClientSide column add and remove Pin
Mike Ellison18-Aug-06 10:47
Mike Ellison18-Aug-06 10:47 
GeneralRe: Gridview ClientSide column add and remove Pin
GaryT8021-Aug-06 12:10
GaryT8021-Aug-06 12:10 
QuestionGridview Searching and Filtering Pin
GaryT8018-Aug-06 10:09
GaryT8018-Aug-06 10:09 
AnswerRe: Gridview Searching and Filtering [modified] Pin
Brent Lamborn18-Aug-06 12:03
Brent Lamborn18-Aug-06 12:03 
GeneralRe: Gridview Searching and Filtering Pin
GaryT8021-Aug-06 4:16
GaryT8021-Aug-06 4:16 
GeneralRe: Gridview Searching and Filtering Pin
Brent Lamborn21-Aug-06 4:23
Brent Lamborn21-Aug-06 4:23 
GeneralRe: Gridview Searching and Filtering [modified] Pin
GaryT8021-Aug-06 5:56
GaryT8021-Aug-06 5:56 
GeneralRe: Gridview Searching and Filtering Pin
Brent Lamborn21-Aug-06 6:08
Brent Lamborn21-Aug-06 6:08 
QuestionSQL database in a .NET asp environment Pin
Rory Lewis18-Aug-06 8:29
Rory Lewis18-Aug-06 8:29 
AnswerRe: SQL database in a .NET asp environment Pin
seee sharp18-Aug-06 9:15
seee sharp18-Aug-06 9:15 
AnswerRe: SQL database in a .NET asp environment Pin
i.j.russell18-Aug-06 10:22
i.j.russell18-Aug-06 10:22 
QuestionASP.NET 2.0 Webservice call from ASP Pin
seee sharp18-Aug-06 8:04
seee sharp18-Aug-06 8:04 

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.