|
hi all.....
i have databound the gridview using configure data source wizard....and its working properly the problem is that if i perform any updation in the data base through any databound control database gets updated but the data being displayed in the control is not updated till i restart the application.....is it possible to refresh the data source control through that wizard.....or the only solution is to write the code in .cs file..???
|
|
|
|
|
Try re-binding the data to the control again. Actually you have to do that if you want to have your control updated.
|
|
|
|
|
but how can we rebind it using configure datasource wizard.....can you give ma an example....i'm unable to rebind it using wizard...???
|
|
|
|
|
hi iam using asp.net with c# with sql server
in my grid there is checkbox in the 1st column, then product,price,quantity,total columns available
when user enters the value in quantity field i should get the value in total field (ie) price* quantity
and finally i should get the grandtotal value in the footer
can you give me a example which helps me
|
|
|
|
|
It depends how you want to do this, on the client-side or server-side.
On client-side you need to add some JavaScript to to handle the onblur event for the quantity textbox that will update the other fields. On the server-side you need to handle the postback and bind the other other columns.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
you can use a javascript function and add onchange event for the textbox.
|
|
|
|
|
I have a ASP.NET WebForm on which I have placed a Infragistics WebTab control
The tabs on the control are generated at as the page is rendered. No problem there.
I have then created a UserControl consisting on a standard WebPanel in which I have placed a standard GridView control.
The idea is to add the UserControl to the Tab pane, when the user selects a tab and a PostBack is actioned, at which point the Gridview is populated with data depending on the tab selected.
What I am trying to do is obtain the Height of the parent container and tried the following:-
Dim myParent As Infragistics.WebUI.UltraWebTab.Tab
myParent = Me.Parent
The problem is Me.Parent returns a System.Web.UI.Control where I need to cast the parent as a Infragistics.WebUI.UltraWebTab.Tab
Any help, greatly appreciated
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Did you try casting the control to tab type? Did you get any errors?
If Third party controls are .NET compatible then you must be able to cast that 'control' to tab control.
Above all, if you contact Infragistics forum directly did you get any problem out there as they must be in better position to help you out as they have provided the dll. Isn't it?
Thanks,
Arindam D Tewary
|
|
|
|
|
im having 4 textboxs in repeater if all the text boxes are empty validation is disabled and if the 1st text box is empty and any of other text boxs are filled then error msg should display...
how can i do that...
|
|
|
|
|
It doesn’t seem to be possible with the available validation control we are having in ASP.NET.
You can do this as following.
Client Side:
On the form submit/ or submit button click call a javascript function and check the value of each textboxes.
<form onsubmit="return Validate();" method="post">
And check the values of all the textboxex, if the validation passes then return true so that form can post otherwise show an error message.
Server Side:
Loop through the repeater and find each textbox control and check the validation.
WWW, WCF, WWF, WPF, WFC .... WTF
|
|
|
|
|
|
Hello all,
When I want to add a new forms element in system.web like this:
<system.web>
<authentication mode="Forms">
<forms name=".ASPXAUTH"
loginUrl="Login.aspx"
protection="All"
timeout="30"
path="/"
requireSSL="false"
slidingExpiration="true"
cookieless="UseDeviceProfile" />
</authentication>
</system.web>
it says that :
" Unrecognized configuration section system.web/forms. C:\Users\Tamash\Documents\Visual Studio 2008\WebSites\WebMembership\web.config ".
If someone knows how to solve this issue please help me!
|
|
|
|
|
|
|
I have one gridview. In that gridview i have one button control, when i click on that button i have to copy that button text in clipboard where i can paste some other place.
my code is:
function CopyProvider(id) {
debugger;
var new_data = window.clipboardData.getData("Text");
return new_data;
}
<asp:TemplateField HeaderText="Provider" SortExpression="ARGProviderName"
Visible="true">
<ItemTemplate>
<asp:Button id="BtnProvider" Text='<%# Bind("ARGProviderName") %>' runat="server" OnClientClick="return CopyProvider(this)" />
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" />
</asp:TemplateField>
Kindly help me.
Thanks in Advance...
|
|
|
|
|
|
|
The images are far too indistinct to make out.
A wild guess: have you used IsPostBack when binding data?
me, me, me
"The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!"
Larry Niven
|
|
|
|
|
thks for your reply, I don't have any code inside the DataBinding.
My ListView is inside an updatePanel.
Above my DataPager is Listview InsertItemTemplate, If my listview without showing the insertItemTemplate,
is working normal, but with InsertItemTemplate will showing twice DataPager while postBack.
Thank You !
yutu
|
|
|
|
|
Dear All,
Can any one please help me how to get singel header for multipel columns in Telerik Rad Grid as shown in the below figure.
------------------------------------------------
| January | February | March |
| Win | Loss | Win | Loss | Win | Loss |
-------------------------------------------------
Regards,
Pavan.
|
|
|
|
|
You are supposed to ask this to the control Vendor...
|
|
|
|
|
Hi all,
In my webapplication I want to find browser close event. in the following event it is working fine for IE but not to fire fox
function onBrowserClose()
{
if(window.screenTop>10000){
alert("You have clicked browser close button ")
}
}
window.onunload=onBrowserClose
</script>
but it is not working for firefox.
any body can help me
thanks to all
|
|
|
|
|
|
I am trying to set value in Label and Dropdown list in Asp.net content page from external javascript file. I did for textbox by passing ClientID of TextBox through parameter as:
function setValueInTextBox(ctrVal)
{
ctrVal.value="strvalue";
}
and in cs file:
btnSet.Attributed.Add("onClick","setValueInTextBox("+txtValue.ClientID+")");
This works for TextBox.
But i unabled to set values in Label and Dropdownlist controls.
What should i do, please suggest me.
|
|
|
|
|
In javascript to set the value of a label instead of using value property use innerText.
Like
ctrl.innerText ='Something';
In case of dropdown list you need to iterate the collection and compare each value in the option collection.
for(var i=0;i<ctrl.length;i++)
{
if(ctrl[i].value=='Something')
{
ctrl.selectedIndex = i;
break;
}
}
WWW, WCF, WWF, WPF, WFC .... WTF
|
|
|
|