|
sekannak wrote: That is different textbox on the same page...but it is reoadonly=true/Enabled=false.
This is your Server Side Control I Guess.
So first you need to read the Client ID and then read the Value From It.
var textBoxID="<%=textBox.ClientID%>";
var textBoxValue=document.getElementById(textBoxID);
Note : If the Textbox is server side control and you have make it ReadOnly, It will not send value to server while Postback.
Hope this will help you
|
|
|
|
|
Hello All,
i have two list box when i move list item from one list to another list using javascript i don't get destination list box item in server side.
so i have using IPostBackDataHandler interface that have one method LoadPostData method which return postcollection of item.
so can you please let me know how it possible that method return destination list item array
Thanks in Advance
Anish Patel
|
|
|
|
|
Hi Friends,
Can anyone send me the solution of this error. It's an urgent requirement.
Server Error in '/' Application.
---------------------------------------------------------------------------
Recursive fallback not allowed for character \u003F.
Parameter name: chars
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Recursive fallback not allowed for character \u003F.
Parameter name: chars
Regards,
Kishore
|
|
|
|
|
kishore309 wrote: It's an urgent requirement
Not for me atleast.
kishore309 wrote: Can anyone send me the solution of this error
You did not care to explain us what are you trying to do and when do you get this error. In such a case, I can not help you more than giving these [^]links.
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.
|
|
|
|
|
Hi All,
I have a scenario to validate a set of controls in a search page. (user must enter value atleast in one of the text box out of 10 text boxes).
How can i use .net validators
Thanks,
Venkat
Venky
|
|
|
|
|
Why dont you use your custome validator?it will be best for your scenario
|
|
|
|
|
Iterate through Control collection of the page and then check for Text box validation.
|
|
|
|
|
Hi Friends,
I need a help.In my application i set the connectionstrings and all settings in webconfig file.But anyone can edit teh webconfig.Is there any option to protect the webconfig editing in .net application as in access database.If anyone tries to edit the webconfig ask username and password.If the entered username and password is correct only the user have to edit the whole webconfig.
Send some queries to solve it.Because after publishing alos if anyone tries he can simply edit the webconfig.So i think in this way.
|
|
|
|
|
Does he has access to the server in which your application is hosted ?
Its impossible to access the web config and machine config file from browser...
Regards,
Vengat P
|
|
|
|
|
Not from the browser sir.If anyone open the config file in the application ask username and password first and if both are correct only he can edit the config files in the application.
|
|
|
|
|
|
Thanks for your kind reply sir.Actually my question is not that.We can secure the access database file by setting username and password.When anyone tries to open the file they ask password.Like that is there any way to secure my webconfig file in an application.If anyone tries to open the config file ask password(not in browser) and if teh password is correct only he can open the config file.Please i need that secureation.Not encrypting teh connectionstrings and not.
|
|
|
|
|
If your server is properly secured you shouldn't have this problem. Make sure that only the relevant personel can log in to the server, or if it is shared, restrict write access on the web.config file to specific users using standard windows security.
|
|
|
|
|
In my application I want to call a java script in a button click at the code behind.And the button is inside an update panel.But the java script is not working.If i place the button out side the update panel then it is working.My question is how to call the java script by placing the button inside the update panel?
|
|
|
|
|
How are you registering your javascript call? You might want to try ScriptManager.RegisterStartupScript , as this will be called following a callback.
|
|
|
|
|
I have already used it but still not working.
|
|
|
|
|
Have you added your button control inside the <triggers> tag of the Update panel...
and one more thing you also need to know whether it is a post back trigger or asynchronous trigger...
If you are not aware of this, Just try this the following piece of code
<Triggers>
<asp:postbacktrigger controlid="Your Button Name">
<asp:asyncpostbacktrigger controlid="Your Button Name" eventname="Click">
</Triggers >
Regards,
Vengat P
|
|
|
|
|
<asp:TemplateField HeaderText="Date" HeaderStyle-HorizontalAlign="Left" SortExpression="RecievingDate">
<EditItemTemplate>
<asp:TextBox ID="txtDate" Width="100px" runat="server" Text='<%# Bind("Coupon_Info.RecievingDate") %>'></asp:TextBox>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtDate1" runat="server" Width="100px"></asp:TextBox>
</FooterTemplate>
<ItemTemplate >
<asp:Label ID ="date" runat ="server" Text ='<% Bind("Coupon_Info.RecievingDate") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
this code doesnot work. it show no result in my gridview. i want to update my gridview which contains different attributes of two tables. what should b my binding property
|
|
|
|
|
Did you used GridView.Bind() to bind the data source with your grid control.
|
|
|
|
|
yeah i used Gridviewbind()
|
|
|
|
|
hi,
<asp:templatefield headertext="Date" headerstyle-horizontalalign="Left" sortexpression="RecievingDate>
<EditItemTemplate>
<asp:TextBox ID=" txtdate"="" width="100px" runat="server" text="<%# Eval("Coupon_Info.RecievingDate") %>">
<itemtemplate>
<asp:label id="date" runat="server" text="<% Eval("Coupon_Info.RecievingDate") %>">
<footertemplate>
<asp:label id="dates" runat="server">
and Code Behind,
gridview.RowUpdating event
do insert/update/select operation
then finally binding the Gridview
it will work........
I hope it will work....
Regards,
kannak.........
kannak
|
|
|
|
|
thnx 4 help but it cann't show any data in gridview.it shows gridview without data and it also shows edit link.
|
|
|
|
|
Hi,
Can u plz copy ur code....i ll try to resolve...
regards,
kannak........
kannak
|
|
|
|
|
Hello everyone,
I have a gridview,in which each row populates a question with its answers(as radio buttons). I have to execute some code on radio button's OnCheckedChanged event.Somehow,on its OnCheckedChanged event,page is postbacked but it is not going to OnCheckedChanged() method.Can anyone give any suggestions for how can I achieve this?
The code looks somewhat like this :
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:GridView ID="GridView1" OnRowDataBound="GridView1_OnRowDataBound" AutoGenerateColumns="false"
runat="server">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView2" AutoGenerateColumns="false" runat="server">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:RadioButton ID="RadioButton2" runat="server" AutoPostBack="true" OnCheckedChanged="RadioButton2_CheckedChanged" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
|
|
|
|
|
Clean Solution and then Rebuild.
|
|
|
|