|
Hi,as of my understanding related to ur message I hope u haven't set any error message property for the RFV control.So u r unable to see any message even after the page post back happens(means the validation done).Try to make it.
I hope it helps.
If not can u clearly post the question on what ur troubling?
|
|
|
|
|
how to perform an action against the mouse click on the header of the c#asp.net gridview's column.
|
|
|
|
|
Simpler work around for this is
var vTh = document.getElementsByTagName("th");
for(var i=0;i<vTh.length;i++)
{
vTh[i].onclick=yourmethod;
}
But make sure that your html doesn't contain anyother THs, if so add your own logic to restrict it inside the for loop.
|
|
|
|
|
can u plz tel me how this code snippet is working.
|
|
|
|
|
in row databound event you will have to write something like..
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onclick", "javascript:ChangeRowColor('" + e.Row.ClientID + "')");
}
and changecolorfunction in javascript with what ever you want to do....
umerumerumer
|
|
|
|
|
Gridview column headers are nothing but THs in the html generated.
In the body load you have to put that code which will loop through the list of Ths in the document and associate onclick event for all of them.
|
|
|
|
|
but it is not recognizing 'var'
|
|
|
|
|
This code needs to be registered on page load.
TableObject.rows[0].onclick = Function("return YourFunctionName(this);");
Here
TableObject is ur gridview object
rows[0] gives the first row that is the header row.
Then write ur logic in "YourFunctionName"
Regards
Santhosh N
|
|
|
|
|
helllo,
how can i create a folder in the client side from server side and put in his content a folder named images that contain all images relative to a specific document.
i tried to make it shared and it was worked properly but the big problem is :
if any other user has access to the shared folder he can see all images.
How can i forbide the access of users to the shared folder, or is it any other solution to copy this files.
Can we an image or save it in the cache as an object.
regards
dghdfghdfghdfghdgh
|
|
|
|
|
.landscape
{
width:100%;
height:100%;
filter:progid:DXImageTransform.Microsoft.BasicImage(Rotation=3);
}
This is class of css file.
we have to be define this class at that div which we have require in landscape formate.
This code is use for landscape print when we click on form print button but it code is perform only for single page.
When we have two or more pages this code is never work properly.
Using this code the record is overflow.And when we click on print button we get one or more copies of one single page.
So we have to be require landscape print for one or more pages when we
Use window.print().
|
|
|
|
|
hi dear,
i have a small problem. how do we will send database to server through FTP. i.e directly that App_data send into our folder or Log file. I have .NET Hosting.
thank you
j somasekhar
|
|
|
|
|
somasekhara777 wrote: how do we will send database to server through FTP
You either detach the database from your local system then FTP the MDF and LDF files to the server, or you make a backup of the database on your local system and FTP the backup file to the server then restore it on the server.
somasekhara777 wrote: directly that App_data send into our folder or Log file
somasekhara777 wrote: I have .NET Hosting
You will need SQL Server hosting too.
|
|
|
|
|
ASALAMOALEKUM All, hope everyone is doing fine... code project is a good source to resolve problems and everytime i have believed this source it never disappointed me thats why i always feel free to post my problem here after trying hard to solve myself... thanks to team and all the membersss here..
current problem:-
Please if anyone has any good idea about my question please do guide me coz i have tried many ways to accomplish my task but time is running and my dead line date is very near and my task is still uncompleted!
I have to implement video conferencing in my web based project!
i am using asp.net along with c#.
in this regard if any one can guide me which API i should use, or any com component or ActiveX control pleaseeeeeee help me out... i am really helpless nowwww. few of com components i knew i have tried them but they are not working on web app.... please please reply and suggest any good tutorial in this regard.
thanks,
regards,
SANA
$@N@
|
|
|
|
|
If an ActiveX control is created in .Net and is used on a Asp .Net page does the client need to have the .Net framework installed in order for the control to work?
|
|
|
|
|
Yes, if the ActiveX based on .NET Framework.
you should use ATL if you want to clients access normal without .Net Framework
Glad to discuss with you and best wishes.
|
|
|
|
|
|
Hi i am doing an web application , in which i have to disable the back button using the C# code.
can you please help me??
else, can any one tell some coding in the asp side so that i can paste directly in the page??
|
|
|
|
|
You may have to solve this with some Javascript, so that you can trap the user when they press the Backspace Key on the keyboard.
function fOnKeypress() {
try {
var charCode = window.event.keyCode;
if (charCode == 13) {
window.event.keyCode= 9;
}
}
catch (er) {
}
}
You will need to load this in the BODY OnLoad event. I'm usign something like this:
var objForm= document.getElementById("aspnetForm");
objForm.onkeydown=fOnKeypress;
|
|
|
|
|
Very easy to enable or disable a button through C#. If your page has the following button:
<asp:Button ID="Button1" runat="server" Text="Click me" onclick="Button1_Click" />
Then you can enable/disable it in your code-behind file through setting its 'enabled' property:
Button1.Enabled = false;
or
Button1.Enabled = true
Hope this helps!
Frauke
Frauke Nonnenmacher
Creative Cats
|
|
|
|
|
Hope you are talking about the browser back button.
You cannot disable the back button if the browser instance is opened and your URL is typed in the address bar.
However you have control over the window which you are opening from your code.
So the only way to solve your problem is to have a default startup page in which you have to do a opendialog for your homepage and pass the arguments disbaling the menu bars and titlebars.
|
|
|
|
|
mr sundar,
its ok , i understand and know what you are telling.
thanks for replying.
but the scenario here is,
i am calling this page from a third party say like pay pal(after success full trans). in this case how can i give those things like disabling browsing button and all, can u please rpely
|
|
|
|
|
Sorry, i am not getting you.
Can you paste the code here ?
|
|
|
|
|
In my form, I have Update Panels and also Update Progress Controls. I want the UpdateProgress controls should not fire and shows the text "Loading..." when the SelectedIndex is -1. Is it possible to do so? If so, how? Anybody can provide any help on this? Thanks in advance.
Following is the code I have written:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:DropDownList ID="UserTypeList" runat="server" AppendDataBoundItems="true"
Width="155px">
<asp:ListItem Selected="True" Text="--Please Select--" Value="-1"></asp:ListItem>
</asp:DropDownList>
<asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="UpdatePanel1" runat="server" >
<ProgressTemplate><span class="ProgressBar" >
Loading...</span>
</ProgressTemplate>
</asp:UpdateProgress>
</ContentTemplate>
</asp:UpdatePanel>
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
It seems NO, you can set 'Loading' text to 'UpdateProgress'.
it will display 'Loading' when the page is loading...
check out this
|
|
|
|
|
Give an id for the span say "spanProgress"
Add handlers for beginrequest and endrequest
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(onBeginRequest);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(onEndRequest);
function onBeginRequest()
{
//add your logic for checking SelectedIndex == -1 and then hide the span
//by setting document.getElementById("spanProgress").style.display="none";
}
function onEndRequest()
{
//enable the span here
}
|
|
|
|