|
|
2.0 is my advice.
There are many, many good reasons. Here are some of my favorites:
- master pages and themes
- ado.net improvements
- datasource controls and improved data display controls
- navigation and login controls
- language enhancements and partial classes
- membership model
- encryption of connection string /app settings in web.config
- improved configuration api
- web parts
|
|
|
|
|
2.0 is so much better!
Reasons are as follows.
1. Master pages are great. They simplify having a common design.
2. Themes are also cool design your controls and use the same theme everywhere.
3. Your HTML will not change when you switch to desgin view.
4. ObjectDataSource controls are hot, you can bind data to a method in a separate data file. This allows all your code that accesses the database to be in a separate class, very helpful.
5. Gridview is much better then a datagrid.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Hi Developers
Can I update multiple rows using single query. Let me clear what I need. I have an XML file say
<br />
<br />
<Ad><br />
<id>1000</id><br />
<url>www.codeproject.com</url><br />
</Ad><br />
<br />
<Ad><br />
<id>2003</id><br />
<url>www.hotmail.com</url><br />
</Ad><br />
<br />
.....So on.........
Now in my database table I need to feed each URL value against each id. If I put simple Update Query then I have to execute it so many times how many I have IDs in table.
Is there any possibility that I can do this in single Query(Only one time connection with database should be establish).
Note: I am using MySQL at backEnd
Thanks in advance
Lets work it Out.........!
-- modified at 11:34 Wednesday 5th July, 2006
|
|
|
|
|
fetch all the id's from the database table and concatenate them to form a comma-separated string. like: 1000,2003,2005,....
then pass this comma separated string in the update query
UPDATE table_name SET column_name = 'new_value'
WHERE id IN (1000,2003,2005)
hope that helps......if this is not what you were looking for then plz explain your problem a bit more so that i can understand it properly and help you out
|
|
|
|
|
Hello all,
I am wondering if it is possible to have a flash player play .asx files (XML files that point to a URL for video streaming) and have the following characteristic... The file which is played needs to be able to be dynamically specified. (depending on user action)... Any help would be awesome...
I am using ASP.NET 2.0 C#, Flash MX 2004 Pro
Thanks in advance...
Brandon
|
|
|
|
|
Hi All,
Can i hide the full address from the address bar?.
I mean that when i select www.mysite.com/page1.aspx or www.mysite.com/page2.aspx
i want to show in address bar only 'www.mysite.com'
Thanks
Thomas
|
|
|
|
|
Then you make a frameset as the default page of the site, and open the pages in a frame. The address bar will show the address of the frameset, not the page in the frame.
To be correct html, a frameset needs to contains at least two frames. Make one of them invisible by using rows="*,0".
---
b { font-weight: normal; }
|
|
|
|
|
Hello alll
I need to find 24 Hrs back time using C#. How to do this.
How to do this?
regards
GV Ramana
|
|
|
|
|
Ramana. G.V wrote: need to find 24 Hrs back time using C#.
DateTime.Now.AddDays(-1)
Tarakeshwar
MCP, CCIE Q(R&S)
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes.
!sgub evah t'nseod margorP sihT ?sgub naem ayaddahW
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
using System.Web.UI.Design;
public sealed class DataGridNavigationBarDesigner : ControlDesigner
{
public override string GetDesignTimeHtml()
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("");
sb.Append("");
sb.Append("");
sb.Append("");
sb.Append("");
sb.Append("");
sb.Append("");
sb.Append(" Number of rows | Page size ");
sb.Append(" | Current page | ");
sb.Append(" ");
sb.Append(" ");
sb.Append(" ");
sb.Append("");
sb.Append(" |
");
sb.Append(" ");
return sb.ToString();
}
}
The error is during compilation it says cannot find System.ComponentModel.Design;
and
using System.Web.UI.Design;
but since i have the dll it works fine .But i have to do changes to it.
Pls suggest solution(alternatives for the same)
thnks in advance.
|
|
|
|
|
Are you sure that the project has reference to the System.Design.dll ?
|
|
|
|
|
i have a treeview web control on a user control.
now on page load , i want to set the focus on the treeview.
how can i do that?
thanks
kapil
|
|
|
|
|
Try to add to element attribute OnLoad...
-- modified at 12:04 Wednesday 5th July, 2006
|
|
|
|
|
Sir,
I want to create the user control for the tree view .Can i get ur code.I tried very much to create the tree view .But in vain.
Thank You
|
|
|
|
|
ur email id is not confirmed on the site.....so the mail is not going to you through code-project.
yaar give me ur personal email id so i can send it u.
i would be able to explain it better through a mail and also there's a lot of data to be sent
bye
take care
|
|
|
|
|
Hello,
I want to disable an asp:button control or set Enabled property to false on the click event of a Html checkbox by using javascript. how is it possible?
Regards.
AbuaBakar
|
|
|
|
|
simply call a javascript function on checkbox click event and enable or disable your button in that function.like
code for page load
checkBox.Attributes.Add("onclick", "enablebutton();");
here is script for aspx page
function enablebutton()<br />
{<br />
var btn = document.getElementById("Button1");<br />
btn.disabled = true;<br />
}
Nav.
|
|
|
|
|
To answer your question:
It's not possible. You can't access a server control from Javascript. They only exist on the server, and are used to create the html code for the page. Consequently you can't access the Enabled property either.
You can however access the html element that is created from the html code that the server control created. You can use the disabled property of the element to achieve the same thing that changing the Enabled property of the server control would.
That is done the way mnaveed showed.
---
b { font-weight: normal; }
|
|
|
|
|
I m generating htmltable on serveride and then placing it on webform with placeholder.Now i can show all htmltable on webform and user can see results coming from database.But now i want user to edit that information he wants so how can i do this?
Plz help
|
|
|
|
|
i think its better to use Grid control with Edit functionality
Nav.
|
|
|
|
|
Word Doc in asp.net
How can i generate a word document in asp.net project?
also, its content would be from my database depending on the user id... so, any idea how to do it?
Regards,
Nina
|
|
|
|
|
|