|
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
|
|
|
|
|
|
|
Hi All,
I have some problem with imagebutton.
When I click on imagebutton code written inside imagebutton_click() event get fired two times.
When I keep beakpoint in dubug mode I just shocked when I saw this code executing twice.
I set
causevalidation to false
EnableViewState to false
but nothing is affecting this.
Please can anyone say why this is so?
regards,
Nagraj
|
|
|
|
|
There can be many reasons, if you want to have a chance for an appropriate reply, try to paste your code for imagebutton_click() and for Page_Load() methods.
|
|
|
|
|
I m using Dot.NET 2.0 and want to connect to sql server 2000. But it gives the following error when it opens a connection.
"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"
Any solution............
Do good and have good.
|
|
|
|
|
hi,
can you send your code snap.
|
|
|
|
|
Check your authentication mode - I usually set mine to Mixed unless there's a reason not to
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
ur sql server is not installed fully and there will be error in window authontication mode or mixed authontication mode.select 'mixed authontication'.and use username 'sa'.try it.
hi.
|
|
|
|
|
hi,
I have to upload a MS Word file from client machine in a page.After that I have to count the total no. of characters of that particular Word file. I have already written code to upload the file and save.It is working fine.But before saving how can I count the total no. of characters???
And again will there be problem if multiple users try to upload files at same time.
I am using .NET framework 1.1 and visual studio 2003
Please give me some link or idea.
Thanks in advance.
Tirthadip
Live life to the fullest
|
|
|
|
|
i dont know any direct solution but there is a work-around.
put a textbox (invisible) on the page. before uploading, put the text from the word file on the textbox. attach javascript to that textbox for counting characters.
if characters are more than your limit of characters. show error message or whatever you want to code.
javascript for it :
function textCounter(field, countfield, maxlimit)
{
if (field.value.length > maxlimit)
{
field.value = field.value.substring(0, maxlimit);
}
else
{
countfield.value = maxlimit - field.value.length;
}
}
i hope this is what you were looking for.....
a cigarette reduces 2 minutes from ur life while a working day reduces 8 hours.
|
|
|
|
|
Hi,
I have created an ocx control, I need it to be added in web page. How could I include it?
Any Help?
Regards
Rams.
Be simple and Be sample.
|
|
|
|
|
Hi there,
You can use the object[^] tag to host an ActiveX control in your web page, you can also use the CodeBase attribute to specify the url of the control in case the client needs to get it downloaded and installed.
|
|
|
|
|
i am developing an application in which i need to send sms messages from my asp.net application. i have googled a lot but to no avail..
Do anybody know the proper procedure to send an sms from asp.net application.
All responses are appreciated.
I need it urgent..
|
|
|
|