|
Ok,
Could you please let me know how can i use direct-x with c#.net.
I am developing a website where i need to convert mp3 file to .wav and .aiff.
Is there any link which will help me or any third party component which i can use?
Thanks
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
The direct X support built in to .NET is useless. There's a number of libraries that use interop to give you all of DX. http://slimdx.org/[^] is the one that people seem to be talking about.
I really don't know the specifics of what you need, sorry, I just know how this stuff works, and DX is really where you need to start. Once you have SlimDX, you can read any DirectX tutorial and use it in .NET.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Ok thanks,
I will try it and let u know.
Thanks
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
At design time I put html table control, increased its cells to say 300x300 pixels, put there TextBox controlls and specified their width and height as 100%.
At design time they fill entire cell space, and at run-time they did so until today. Nothing has changed in the project, I just launched it today to discover at run-time they are 100% width but about 2 lines of text in height only. The vertical 100% height just disappeared. Though they are centered in the cells.
All the properties are the same, as in design time they look normally.
What happen to then after they are executed???
Чесноков
|
|
|
|
|
Check the DOCTYPE of your *.aspx page. Some DOCTYPE version does not support '%'.
Try removing the DOCTYPE tag.
|
|
|
|
|
it is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
but DOCTYPE never changed. I just opened the project the next day
when I type in the text into text boxes and submit the page, on the next load as they are filled with text, they become 100% aligned as it was before.
Чесноков
|
|
|
|
|
hi everyone can u please help me
i m looking to upload and convert the videos in .flv fomat before saving on the server.
is there any .net control available or any code?????????????
|
|
|
|
|
|
|
http://www.dominion-web.com/applications/flvconverter/
i hve downloaded from this address can u please help me how to use the dll in my
project
|
|
|
|
|
hi,
i wanna to prevent postback in dropdown list on some particular item selection
in asp.net 3.5
|
|
|
|
|
Handle onchange event in javascript. Call a javscript function which should return true or false in the onchage event.
Check whether the selected item is that particular item and return false or true based on that. If the function return false, it will not postback.
|
|
|
|
|
hello every one my name is josh smith ,i create my project on online bank management system,i completed my all coding part,but in design i wanna use the silver light .so any one tell me how i can use silver light with the asp.net.
joshsmith
to know about the best credit card deals please see the link below..
Best credit card deals
|
|
|
|
|
|
Hi,
I am having problems with using css in asp.net. I was a php programmer about 3 yrs back, jumped into C# about 2 yrs back but worked with windows applications. Now i wish to work in asp.net. I have good C# knowledge, am using an asp.net book too but this problem, wasn't able to find any help.
sorry, if my question is stupid... Actually, i remember in php, using a template on each page and for each page changin colors manually to show selected menu. With asp.net and master pages, i have used CSS to create the master page but changing hyperlink (menu) color is being problematic.
Is it a good idea to use CSS in asp.net? Anyways, my question is if i have a css element selectedMenu. how would i apply it to menu items on each page. menu again is css generated, used on master page...
Please provide help
thanx in advance
|
|
|
|
|
mark_me wrote: Is it a good idea to use CSS in asp.net?
Absolutely. ASP.NET, like PHP, is an engine for generating HTML, javascript and CSS ( what else could it be ? ). Therefore, it would be worthless if it had no support for a central platform of web development.
mark_me wrote: Anyways, my question is if i have a css element selectedMenu. how would i apply it to menu items on each page. menu again is css generated, used on master page...
Ultimately, if you're using css and creating a menu, this is a html/general web development issue. There's nothing in ASP.NET that could possibly hope to change how a browser reads css, or what it does with it. So, your best starting point is to look at the script being emitted, and try to work out what's missing, or in the wrong place, or whatever. Then work backwards from there, and work out why the way you're using ASP.NET is not creating the result you expect.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hi, thankyou for replying but i want to re-iterate my question.
In php, you would make every page. For home page, you will use css element selectedMenu for homelink, in product page you will use selectedMenu for Product, similarly for pageN you will have PageN set to selectedMenu. That way, a user will know which page he is viewing. Inshort, every page is kinda redesigned in php.
In asp.net, you will have one template, the master... with menu in master, you can have multiple pages but how would you set css property to selectedMenu for page Product programmatically, again how would u set it to pageN programatically. Will i have to use page.Load.
Again, thanks for replying.
|
|
|
|
|
mark_me wrote: Will i have to use page.Load.
Well, plainly not. You can use the prerender event, and that's often a better idea, because it fires after events.
What you would do, is write code to change the classes of your menu items, based on what page is selected. The way I'd do this, is write a menu class that uses a session variable to know which item to show as selected, then each page sets the right value. Another reason to use prerender, so you have time to set that value first.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Hi,
I am updating an XML file (and I need to use a file because it's being used as input to a flash map (that i don't have code for)) - right now I'm implementing code that:
-checks the date on the file - if a day or more old - then update the file - using an application object to lock the file and update it.
But this application is on a server farm - so I have to have more than one copy of the file - but each will get updated using this way.
Is there a better way to do this?
Thanks in advance.
|
|
|
|
|
why dont you place it in a location common to everybody, even in database will do. In this case you are leaving out the unnecessary bugs that comes with multiple occurrence of the same file.
|
|
|
|
|
Yes I understand what you are saying -
however I'm using flash code in my application that requires as input the name of an xml file with the data the flash application needs. I want to update this data in the xml file one time per day.
So a file is required in this case - but I'm not sure of the best way to update this file only once per day.
|
|
|
|
|
You could always manage this with a scheduled application (say, a console or winforms app scheduled to run through Task Scheduler).
|
|
|
|
|
hey all.. i need a guidence to my problem im facing
i want to display data in gridview binded to a sql datasource
but the problem part is i want to bind a field of that datasource to a dropdownlist and when a item is selected in that dropdownlist then correcposnding to that data will be displayed in gridview...
i have done the binding of datasource and gridview... but not of cropdownlist...plz help buddies... i'll be very grateful ... thanks in advance
here is my code which im using
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{ con = new SqlConnection("Data Source=.;Initial Catalog=abc;Integrated Security=True");
con = new SqlConnection("Data Source=.;Initial Catalog=abc;Integrated Security=True");
cmd = new SqlCommand("select * from salescounts where ='"+DropDownList1.Text+"'", con);
con.Open();
SqlDataReader dr = cmd.ExecuteReader();
if (dr.HasRows)
{
GridView1.DataSource = dr;
GridView1.DataBind();
Label1.Text = "Result found:" + GridView1.Rows.Count;
}
else
{
Label1.Text = "not found";
}
con.Close();
}
modified on Sunday, July 26, 2009 12:51 PM
|
|
|
|
|
Just Try this one
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DataSet Ds=new DataSet();
con = new SqlConnection("Data Source=.;Initial Catalog=abc;Integrated Security=True");
cmd = new SqlCommand("select * from salescounts where ='"+DropDownList1.Text+"'", con);
SqlDataAdapter DA = new SqlDataAdapter(cmd);
DA.Fill(ds);
if(Ds.Tables[0].Rows.Count>0)
{
GridView1.DataSource = ds;
GridView1.DataBind();
Label1.Text = "Result found:" + GridView1.Rows.Count;
}
else
{
Label1.Text = "not found";
}
con.Close();
}
Quick Suggestion :
solo_gaurav wrote: cmd = new SqlCommand("select * from salescounts where ='"+DropDownList1.Text+"'", con);
Never Execute SQL Query like this from UI level. It will causes SQL Injection. Always used Parameterized query / Stored Procedure .
Thansk
|
|
|
|