|
Thanks, I'm getting started, but I'd like to have a 'MenuItems' tag within which I place the menu items, in your context. Using 'InnerProperty' for the collection gives me this, but how do I associate 'children' with this property?
|
|
|
|
|
Sorry, I was looking at the wrong class in my project for the example. change the attributes to this:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
PersistenceMode(PersistenceMode.InnerProperty)]
|
|
|
|
|
I'm building a Tab Control using a MultiView and Menu control. I need to be able to dynamically add tab pages to this control, and I would rather add instances of my own TabPage user control, built on a View control. How could I achieve this? Can View controls in a MultiView be nested in other controls in some way?
Duh I'll just put the TabPage controls inside the view controls, not comprise them of View controls.
|
|
|
|
|
Hi
The current method that I use to deploy my website to the server is to simply open the project in VWD 2005, edit a file and then save that file. The file on the server is instantly updated.
Is this a standard techinque people use or do people use other methods?
thanks
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
1. Publish the website and upload the dll files along with the aspx
2. Use click once deployment
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
But why do it that way?
The way your suggesting means that the entire project gets built everytime you make a change to one file. Why would you want to do this?
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
when you publish you precompile your web project, that is it get in compiled format. But the scenario you're telling makes the pages recompiled for the first time after updation
|
|
|
|
|
Hello,
I have to introduce a validation hence user will enter only characters defined in the regular expression. I have to validate all the text box on every web form on an application.
I think placing a custom or range validation server control against each control will not be a good idea as there are so many text boxes on each page.
Could some one guide me what is the best approach for this.
Regards,
Pavas
|
|
|
|
|
Placing validation controls is a good idea. Why do you think it isn't?
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Because it will increase my page size and there are many text controls on the page. It may effect the page layout too
Regards,
Pavas
|
|
|
|
|
sir abt text box
Sir i need to create control , The control provides the dots between the numbers automatically. An example is the IP address control in many Windows networking dialogs, which is a combination of four three-character fields that accept only numbers.
i need same thing
Raghvendra
modified on Wednesday, September 10, 2008 6:17 AM
|
|
|
|
|
He has given you an example in the post you started below
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
Well i could not got relate that example with me
Sir can u plz guide me
Raghvendra
|
|
|
|
|
|
</C1WebGrid:C1TemplateColumn>
<C1WebGrid:C1TemplateColumn HeaderText="Comments">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemTemplate>
<asp:TextBox runat="server" ID="txtComments" TextMode="SingleLine" Width="120px" />
</ItemTemplate>
</C1WebGrid:C1TemplateColumn>
i hve txtComments textbox....i want to access tht value in javascript
how i will get tht value in javascript
|
|
|
|
|
var textValue = document.getElementById('txtComments').innerText;
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Microsoft JScript runtime error: Object required
if i use like tht thn
above error is coming nw
|
|
|
|
|
var textValue = document.getElementById('<%txtComments.ClientID%>').value;
|
|
|
|
|
hi shaik........thts not workin gives an error....
any another way?
|
|
|
|
|
What are you using is it gridView ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
i forgot to add '=' symbol after '<%' take below like working
var textValue = document.getElementById('<%=txtComments.ClientID%>').value;
This is Example simple code to check, you take new page add the code after page directive run this page u will find the output . for futher help contact sk.haneef@gmail.com
<title>Untitled Page
<asp:textbox runat="server" id="txtComments" text="Test Message" xmlns:asp="#unknown">
alert(document.getElementById('<%=txtComments.ClientID%>'));
var textValue = document.getElementById('<%=txtComments.ClientID%>').value;
alert(textValue);
|
|
|
|
|
Hi
im using asp.net login control on my website
what im trying to is....
automaticaly check wheather someone login or not on default page . If not login then page will automatic redirect to login.aspx and after login page will redirect to default page. I dont want to click login to go to login.aspx
Any instruction or example will be helpful
Thanks in advance
Sarfarj Ahmed
|
|
|
|
|
What i understand from you statement is that if a user is not logged in to the site it should redirect to login.aspx page.
I would recommend you to read forms authentication and use it.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Thnaks for ur quick reply
My master page is alraedy authinticated, if i run my website then page redirecting to login.aspx and i used the code below in master page load event
If MasterLoginView.LoggedInTemplate IsNot Nothing Then
Response.Redirect("login.aspx")
End If
on my login page i used the following code
If UserNameIsValid AndAlso PasswordIsValid Then
FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, False)
End If
problem is,
LoggedinTemplate showing the login name but not redirecting , still on login.aspx
i changed web.config
<authentication mode="Forms">
<forms cookieless="UseUri" timeout ="10" slidingExpiration ="true"/>
</authentication >
thanks
Sarfarj Ahmed
|
|
|
|
|
Hi guys
I am working a shopping card application
there is a quantity option in which when 0 or -1,-2 enter no validation is fire
after page refareshing its working properly
what is the problem any one plz help me
my html code are as
<asp:requiredfieldvalidator font-size="XX-Small" id="RequiredFieldValidator1" runat="server" controltovalidate="txtqty" errormessage="*" xmlns:asp="#unknown">
<asp:textbox id="txtqty" runat="server" maxlength="3" style="width: 33px;" value="<%# Eval(" qty")="" %>"="" xmlns:asp="#unknown">
<asp:rangevalidator id="RangeValidator1" font-size="XX-Small" runat="server" controltovalidate="txtqty" xmlns:asp="#unknown">
ErrorMessage="Invalid Number" MaximumValue="999" MinimumValue="1" Type="Integer">
krishna veer singh
|
|
|
|