|
If you want to call javascript function on page load event,try out this line.
ClientScript.RegisterStartupScript(this.GetType(), "FunctionKey", "<script language="javascript">FunctionNameHere();</script>");
please don't forget to vote on the post that helped you.
|
|
|
|
|
Thanks for ur help.
|
|
|
|
|
You can use this stuff and in page load call this fuction
private void ValidateControls()
{
control.Attributes.Add("eventName", "javascript:return JavascriptFunction(args);");
}
Bhumika
|
|
|
|
|
Call javascript function in Body Tag Onload Event .
In the Body Tag
Eg:
|
|
|
|
|
Hi in my grid first cell is button column,
from Second cell databoundcolumn,
When i am click the datboundcolumn the row contained values have to come on my textboxes, So i fired there <b>selectionindexchanged</b> event,
And, When i am clicking the button column it have to remove the row from the grid list(delete),So there i have to fire rowdatacommand event...,
Now my problem is when i am click the boundcolumn its firing the selection index change event, its ok,
But when i am clicking the button column also its firing the selectionchange event...,
But there i need to fire my rowdatacommand event,
How to do tat,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
|
How can i move a particular font to the client machine from server.Actually the problem is that i have a font installed on my server , when i try to access the web page with that special font , it does not show up wit that face . So , how can i move the server font to the client machine(while client is accessing the server)
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Hi,
After I change all control panel regional and language options to arabic text in VS.NET web applications appear in arabic except text in code-behind appear in something like Latin language.I try the same code in another computer and it wroks fine.Could any one help me to solve this problem?
I am too late but i will never give up
|
|
|
|
|
|
I have an xml file, with "any number of page nodes" each with 3 certain child nodes.
With the XMLDoc, I have read the contents of the pages' 3 child-nodes for purposes of populating a form with their values.
I added a "+" sign at the end of each of the 3 child nodes as I pass them into a string variable so that I can later split them into an array.
I know a "regular" string is passed the repective dimension of the recently split array, i.e.
Dim Page1 as string = split(AllPages(0), "+")
***********************************************************
Whats boggling my mind is the matter of the number of pages in the XML can be any number. I am able to pull the number of pages in that user's XML file via code, but I can not declare
Dim Page(x) as string = split(AllPages(i), "+")
because Page(x) is now an array which is not what it needs to be. It needs to be an ordinary string, but since I do not know how many pages a user has in his XML, I do not know how to dynamically create ordinary string to pass the split array. I know the code has to be:
Page1 = split(AllPages(0), "+")
Page2 = split(AllPages(1), "+")
and so on, but again, I do not know how many pages therefore I cannot declare,
Page1 as string
Page2 as string
etc...
*************************************************************************************
Anyone have a clue on what I should do? C# is fine, but VB is preferred. Thanks !
|
|
|
|
|
crystal9154 wrote: I added a "+" sign at the end of each of the 3 child nodes as I pass them into a string variable so that I can later split them into an array.
Your code is messy. You could use XMLDocument.GetElementsByTagName() or XPath query to get the child nodes.
|
|
|
|
|
http://www.codeproject.com/KB/webforms/JavaRowSelect.aspx - it is a good example that I need, but I have GridView with ItemTemplate (CheckBox column) and I don't like call onclick-event when user checked any row. How can I detect on what column user clicked?
|
|
|
|
|
You could asked this query on the 'Article's discussion forum' for a better response with respect to the article.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
All the world's a stage,
And all the men and women merely players.
They have their exits and their entrances;
And one man in his time plays many parts... --William Shakespeare
|
|
|
|
|
Hello
I do web form into the website to send a mail message
but an error will occur when i click the submit button.
This my code:
"<%@ Language="VBscript" %>
<% Option Explicit %>
<%
On Error Resume Next
Dim message, NewMailObj
message= "Name: " & Request.Form("firstName") & " " & Request.Form("lastname")
message = message & vbcrlf & "<br /> email: " & Request.Form("email")
message = message & vbcrlf & "<br /> Level of Education:" & Request.Form("Level of Education")
message = message & vbcrlf & "<br /> comments: " & Request.Form("comments")
'Response.write "Message: " & message
Set NewMailObj=Server.CreateObject("CDONTS.NewMail")
NewMailObj.From = "FeedbackForm"
NewMailObj.To = "info@ihacademy.net"
NewMailObj.Subject = "E-mail from the Website: " & Request.Form("firstName") & " " & Request.Form("lastname")
NewMailObj.Body = message
NewMailObj.BodyFormat = 0
NewMailObj.MailFormat = 0
NewMailObj.Send
Set NewMailObj = nothing
'response.write "Error: " & Error.Description
If Error.Number <> 0 Then
Response.Redirect ("success.htm")
Response.End
Else
Response.Redirect("error.htm")
Response.End
End If
%>
"
Assaf
|
|
|
|
|
Assaf82 wrote: an error will occur when i click the submit button
What is the error?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
All the world's a stage,
And all the men and women merely players.
They have their exits and their entrances;
And one man in his time plays many parts... --William Shakespeare
|
|
|
|
|
Please provide the error message you are getting?
Is the "CreateObject" throwing an error? If yes, then check if the correct class name is referenced in the CreateObject method.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
HI
anybody has a sample program (with VB or JAVA) to read from an XML file to a simple form (include a text field and a check-box or radio-button) and load dat of these controls and then save changes again on XML file by pressing a "save" button.
I need for old ASP (not ASP.NET)
thank you
|
|
|
|
|
LeilaBayat wrote: ASP (not ASP.NET)
Questions about that goes in the web development forum.
LeilaBayat wrote: with VB or JAVA
Neither is used in ASP. I suppose that you mean VBScript or JScript.
Despite everything, the person most likely to be fooling you next is yourself.
modified on Sunday, June 8, 2008 6:15 PM
|
|
|
|
|
|
hi there!
i' having i think a little probleme with my iis.i' ve a;ways used my visual studio 2005 embbeded web server and now i'm trying to use
it but i'm facing a weird error statement like "Failed to access iis metabase".
I'll try to describe my iis configuration as precise as possible.
first visual studio is on and my project files are on E:\Visual Studio 2005\projects ,E:\Visual Studio 2005\Templates,
E:\Visual Studio 2005\WebSites.
the iis default web site properties
web site
-description:default web site
-Ip address : 127.0.0.1
- tcp port :80
home diretory
- local path:c:\inetpub\wwwroot
-combo box checked:read, write,directory browsing,log visits,index this ressource
-application name:default application
-starting point: default web site
-execute permission: script only
-application protection:Medium(pooled)
Directory security
-anonymous access checked
-username :YEVI-61394B25B9\Administrator
-allow iis to control password checked
-integrated windows authentication checked
asp.net
version:2.0.50727
virtual path:default web site
file location: c:\inetpub\wwwroot\web.config
file creation date : 06/08/2008 09:46:13 (just set default language to c#, ithnik by default the authentication mode is set to windows)
file last modified :06/08/2008 09:46:13
my site iw propertis are quite the same
home diretory
designated directory checked
- local path:\iw
-combo box checked:read, write,directory browsing,log visits,index this ressource
-application name:"it is empty"
-starting point: <default web="" site="">\iw
-execute permission: script only
-application protection:Medium(pooled)
Directory security
-anonymous access checked
-username :YEVI-61394B25B9\Administrator
-allow iis to control password checked
-integrated windows authentication checked
asp.net
version:2.0.50727
virtual path:default web site
file location: c:\inetpub\wwwroot\iw\web.config
file creation date : 06/08/2008 09:46:13 (just set default language to c#)
file last modified :06/08/2008 09:46:13
i just created one page site with one labels and 1 button.the same thing works with the the embbeded server.here i'm having this:
Failed to access IIS metabase.i included the page.thanks for suggestion
Ps:by the way in my search i just found stuff code to register the iis.
this:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>asp.net_regiis" don't know if it secure i'just want to have people i trust opinion(i mean you fellas).
eager to learn
|
|
|
|
|
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>asp.net_regiis -i"
Yes, it is secure.
When you are running the 1.1 and 2.0 framework simultaneously then as you stated problem comes into the picture.
No problem at all just go ahead and install it (aspnet_regiis -i).
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
|
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
while executing this file default or any other file. it is displaying the error message. i am display the error message also. what is problem i could not understand. please help me out to solve this problem . this problem is encountered to all the files. the error message is.
Server Error in '/Websites' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type '_Default'.
Source Error:
Line 1: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
Line 2:
Line 3: <%@ Register Src="header.ascx" TagName="header" TagPrefix="uc1" %>
Source File: E:\WebServices\Webservices Security\Websites\default.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0
|
|
|
|
|
The problem is that the class containing the code behind for the page doesn't exist.
You have to compile the code before running it. If you have deployed the files to a server, you have to include the compiled code (bin folder) also.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Just make sure that the page with name default exists in your website.
If this page exists and you are still getting the error, then please let us know..
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|