|
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
|
|
|
|
|
hello abhijeet...corrected my code but tell me solution of my problem.. i.e how can i display data from datasource in tabular form when i select a bounded field of same data source in dropdownlist.. plz dear help me... thanks in advance
|
|
|
|
|
solo_gaurav wrote: ow can i display data from datasource in tabular form when i select a bounded field of same data source in dropdownlist.
Gaurav,
I am not clear about your problem. Can you please explain in details ?
|
|
|
|
|
dont worry sir i did it myself ... thanks for support and co-operation..
|
|
|
|
|
That's Cool
|
|
|
|
|
solo_gaurav wrote: cmd = new SqlCommand("select * from salescounts where ='"+DropDownList1.Text+"'", con);
As the other poster had mentioned, this opens you up for a potential SQL Injection attack. I recommend reading SQL Injection Attacks and Some Tips on How to Prevent Them[^] by Colin Mackay on this site.
If you could shed some light on what are actual data values of DropDownList1.Text would be helpful. Your trouble might be what is being generated as the SQL string and causing it not to bind the data.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
my system did not contain machine.config is not there in the bellow path. How to create machine.config in my system ?.is it mandatory to run asp.net
project or not.
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322(gacutil.exe and regsvcs.exe) are there in that location.
|
|
|
|
|
Ramesh Reddy11111 wrote: my system did not contain machine.config is not there in the bellow path
It is never supposed to be there in the path you mentioned but should be present at the location below:
C:\Windows\Microsoft.NET\Framework\v1.1.4322\CONFIG
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I have a wizard control in my form. In one of the steps there is a file upload control. If the user uploads a file using the browse button and then he clicks on Next button instead of Upload button, the textbox gets cleared.
Is there anyway to retain the string entered in fileupload control textbox so that the user need not enter again? Please help.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
only way is to place the upload file code in the next button as well, check if file is there and if so then upload it while the user is clicking on Next button
|
|
|
|