|
I would fill a html select control by a table in the database, and ^ more precisely by calling the method of loading data from the part DAL.
thank you for your help
|
|
|
|
|
|
I want to fill a html select control instead of dropdownliste with the result of a method that loads data from a database
|
|
|
|
|
HTML select element is rendered by and ASP.NET dropdownlist. Please learn the tools and environment you are trying to use.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi...
I want to direct play audio files from FTP Server, not downloading.....
How ca i do this?
Kindly help to solve this issue.
Thanks,
PUJA FALDU
|
|
|
|
|
Erhm, I Guess you will have to download the file. Maybe you can create some kind of fancy stream construction which will play the media while downloading, but you cannot play remote media on a local machine without downloading the data.
|
|
|
|
|
You would create a stream that would allow you to read the file, this means the data would obviously be in memory and would therefore not be stored on the local storage media.
However, as seen as you posted this in the ASP.NET forum, I assume you mean that you want a client to be able to play the audio files without downloading them? See here: http://en.wikipedia.org/wiki/Streaming_media[^]
^-^-^-@@-^-^-^
(..)-----;
||---||
^^ ^^
Moose.
|
|
|
|
|
Dear All,
I can send the hash of a pdf file to the browser in asp.net using hidden field. However, how can I sign this digest data in the browser? Using Capicom or .NET framework? or ActiveX?
|
|
|
|
|
Hi,
I am using asp.net with c# application in which i have to integrate flv video file.
My question is that how to play flv file in asp.net application that support all browser , i am searching it couple of day but did not get exact solution.
All flv file has kept in one root folder.
|
|
|
|
|
FLV (Flash Video) is a video format you can play using a flash video player.
You may want to look here[^]
|
|
|
|
|
Send any online tutorial for ASP.NET code behind language as C#
|
|
|
|
|
http://www.asp.net/[^]
Try Google, there are multiple numbers of tutorials out there.
Andreas Johansson
IT Professional at Office IT Partner i Norrbotten Sweden
What we don't know. We learn. What you don't know. We teach
|
|
|
|
|
Hi,
I am putting this question because before I go far, i need to decide the correct aproach.
On the webform, I need to implement two lists. List A and List B. the items in the List A is populated from database and from it a single item or all items can be selected and picked to List B. from List B, items can be pulled back to List A. Whatever items are in List B, when clicked a save button need to be inserted in the database.
List A List B
>>
item1 >
item2 <
item3 <<
[Save button]
In list B, I also need to have check box for each row to decide an attribute on it. i.e. list B rows should be editable in that respect.
I am not sure which control to implement here. A listview or a gridview? i dont want database operations on each select deselect button. Only when the save button is clicked, insert record in database operation should happen. how should I define the datasets for two lists here? should it be a session variable of virtual table ? or should i go for temporary table in database (but then it remains until the connection is valid). should I apply a hash table?
Any suggestions please ? any example?
Thanks.
vijay
|
|
|
|
|
i think you can make use of labeledit property of listview which enables editing of list items.
|
|
|
|
|
Hi Vijay,
You can handle this thing by get listview to put one label or textbox(if required edit) and maintain two separate dataset that can be stored in view state and for final save all dataset from view state need to save in database.
OR
Rather than dataset we can handle all this stuff by using javascript but that is little bit tricky so that good approach is take listview/gridview and implement all part in update panel so it would avoid full page post back call.
Thanks,
Amit
With Regards,
Amit Patel
91-9328488961
India
|
|
|
|
|
Hi,
popular statement - "Dotnet is popular for integrating applications of different technologies"
Remoting is a Dotnet techmology which replaced DCOM.
Does remoting help integrate applications in different technologies? Isn't there a requirement that both systems
participating in remoting should have Dotnet running and should have DotNet architecture support (I may well use
TCP por http with SOAP)
Then how can the statement I wrote first be generalized across Dotnet???
Please help me with a link / tutorial which can explain integration in simple words.
Regards,
NetQuestions
|
|
|
|
|
Hi,
I do not know how to create a business object for inserting data into the database.
thank you for showing me the path to follow
|
|
|
|
|
amina89 wrote: create a business object for inserting data into the database
From what you have written, it looks like you want to use an object to pass on the values to database layer.
Design a class, expose the properties associated (using get/set). Create an object of this class in UI layer, set the values of various properties of the object. Pass on this object from UI to Db layer. Get the values from object to set various parameters of Insert/Update query. Execute it.
|
|
|
|
|
Hi,
instead of using gridview to insert student marks (I have hundreds of students) thought I used the Excel:
1) allow managers of each module after authentication to download the excel file (containing the students enrolled in the given module)
they advice me to use business objects to
Create a business object for inserting data (a series of markes) in database.
Serializer a list of this object in XML format
# Send it to the internet
# Make it open with Excel
# Allow to change values
# Ask the server to download
# The deserialize a list object
# Update your database according to this list
I dont khnow if this method is better??
thanks
|
|
|
|
|
Hi,
instead of using gridview to insert student marks (I have hundreds of students) thought I used the Excel:
1) allow managers of each module after authentication to download the excel file (containing the students enrolled in the given module), the excel file ted is generated by the following code:
Num_inscription note_matière1 -------- ---- note_matière2
cn.Open();
SqlDataAdapter da = new SqlDataAdapter(@"DECLARE @MATIERE nvarchar(max)
SELECT @MATIERE =
STUFF(
(
select distinct ',[' + LIBELLE_MATIERE + ']'
from MATIERE where CODE_MODULE =11
for xml path('')
),
1,1,'')
DECLARE @SQL nvarchar(max)
SELECT @SQL = N'
select
*
from (
SELECT ETUDIANT.NUM_INSCRIPTION, ETUDIANT.NOM_PRENOM_ETUDIANT_ARABE,EXAMEN.CODE,
EXAMEN.NOTE,
MATIERE.LIBELLE_MATIERE
FROM ETUDIANT INNER JOIN
EXAMEN ON ETUDIANT.NUM_INSCRIPTION = EXAMEN.NUM_INSCRIPTION INNER JOIN
CAPITALISE_MODULE ON
ETUDIANT.NUM_INSCRIPTION = CAPITALISE_MODULE.NUM_INSCRIPTION INNER JOIN
MATIERE ON EXAMEN.CODE_MATIERE = MATIERE.CODE_MATIERE INNER JOIN
MODULE ON CAPITALISE_MODULE.CODE_MODULE = MODULE.CODE_MODULE
AND MATIERE.CODE_MODULE = MODULE.CODE_MODULE
WHERE (CAPITALISE_MODULE.CODE_MODULE = 11) AND
(CAPITALISE_MODULE.CODE_TYPE_RELATION_MODULE = 1)
) Data
PIVOT (
SUM(NOTE)
FOR LIBELLE_MATIERE
IN (
' + @MATIERE + '
)
) PivotTable
'
exec sp_executesql @SQL
", cn);
DataTable dt = new DataTable();
da.Fill(dt);
cn.Close();
Response.Clear();
Response.ContentType = "application/vnd.ms-excel";
string sep = "";
foreach (DataColumn dc in dt.Columns)
{
Response.Write(sep + dc.ColumnName);
sep = "\t";
}
Response.Write("\n");
int i;
foreach (DataRow dr in dt.Rows)
{
sep = "";
for (i = 0; i < dt.Columns.Count; i++)
{
Response.Write(sep + dr[i].ToString());
sep = "\t";
}
Response.Write("\n");
}
}
}
But in this code I do not know how to:
* Add the following condition: the student'marks is between 0 and 20.
* Calculate the average of this module : sum (coeff * mark) / sum (coeff)
2) Allowing responsable module send me the file containing the data (but then I do not know how)
3) Using data, by sending them to the database to calculate averages.
if itsnt the better way thank you to guide me I feel disturbed, and I really need help.
|
|
|
|
|
Hi! I'm working in two sites! lets say that first is the public second the private one!
in public site, we add a login form which redirects to the second site (in case the username and psw are correct). Now I want the user login in second site instead showing the login page (which are by default)
My current problem is that sessions don't work between sites. And Query Strings are very unsecure in that way (any user writing the correct QS would login or psw would be seen in the url).
How can I correct this little issue??
|
|
|
|
|
If you encrypt your data before puttning it into the query string, i think this is the best way.
you can encrypt using the following method:
public static string Encrypt(string originalString)
{
if (String.IsNullOrEmpty(originalString))
{
throw new ArgumentNullException("The string which needs to be encrypted can not be null.");
}
DESCryptoServiceProvider cryptoProvider = new DESCryptoServiceProvider();
MemoryStream memoryStream = new MemoryStream();
CryptoStream cryptoStream = new CryptoStream(memoryStream, cryptoProvider.CreateEncryptor(privateKey, privateKey), CryptoStreamMode.Write);
StreamWriter writer = new StreamWriter(cryptoStream);
writer.Write(originalString);
writer.Flush();
cryptoStream.FlushFinalBlock();
writer.Flush();
return Convert.ToBase64String(memoryStream.GetBuffer(), 0, (int)memoryStream.Length);
}
where privateKey is a byte[] of choice.
private static byte[] privateKey = ASCIIEncoding.ASCII.GetBytes("#privateKey#!!#");
or something like that.
Andreas Johansson
IT Professional at Office IT Partner i Norrbotten Sweden
What we don't know. We learn. What you don't know. We teach
|
|
|
|
|
Hi! thanks for reply!
Ok! that's a good alternative! I've read about it and it seems well! but I was wondering if there's a way to don't involve the url in the login process!
Anyway it might be the best solution (if there isn't another better) Thanks Andreas X
|
|
|
|
|
|
Ap per my knowledge query string is the best option to pass values to other sites/web pages. Hope this helps.
Hope this helps.
|
|
|
|