|
Check the request object you will find every thing that you want to know but rememebr one thing first check is it null or empty then use i don't know exact method name but can definaety say you will get in request object
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... "
|
|
|
|
|
Hai all,
i have a gridview(gvattendance) ,in that i maintain 7 days attendance of the perticular Employee by using radiobuttonlist in each and every column depending on weekno:1,2,......
,after this i saved the data.
now i had some problem for updating and editing?
for Editing i need to display the saved data of the employee (Who is already inserted above) in the same gridview(gvattendance) and after that ,i had to done updating?
Thanks
Subbu.
|
|
|
|
|
use the same query which u bind with gridview after the updation call the query again.
Devjit Das
|
|
|
|
|
I am trying to debug a code(asp.et) which was developed in 1.1v . i have migrated this to 2.0v . But when i attach the process , it doesn't stop at the breaks point i have set
The process is attached with out any error
|
|
|
|
|
Is it a debug build ? Have you tried rebuildng all ? Do the breakpoints look active ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I did a rebuild all , it works fine
thanks a ton
|
|
|
|
|
Hi,
I want to access session variable which is at code behind file(VB.Net).
I have HTML control. I want the session value and depending upon that input box(check box) property set to enabled.
How can I do
Thank You,
sjs4u
|
|
|
|
|
Hi,
Add a html hidden control (say hdnSession) in the aspx and set the value in the page load of the aspx file as below.
In Page_Load
hdnSession.value = Session("Sample")
Now in the javascript access the hidden variable.
Hope this will work...
Thanks and Regards,
N.Kalyan Kumar
|
|
|
|
|
Session is server-side object. you can't access the session value on the client-side. you can store it in the hidden field and access it on the client-side through javascript.
Regards - J O H N -
|
|
|
|
|
hi to all
i m working in asp.net 1.0
i bind a datagrid (with paging) on page acc. to the index change of dropdownlist.
when i click on page 5 in datagrid it work fine BUT if i change the value of dropdownlist to that item which don't have enough data to bind with datagrid up to pageindex 5 , it give error
"Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount"
plzz help
thanks in advance
|
|
|
|
|
findtango wrote: it give error
"Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount"
plzz help
Before binding the datagrid, set DataGrid.CurrentPageIndex = 0;
|
|
|
|
|
Hello frnds
i am using Msaccess Data base, I want to find total record count please any body give source code.
advance thnx.
srinivasan.s
|
|
|
|
|
|
if (!Page.IsPostBack)
{
int h = 0;
int k = 0;
int j = 0;
for (int m = 0; m < 2; m++)
{
k = h++;
// k = ++h;
}
Button1.Attributes.Add("OnClick", "javascript:return abc(" + h + ");");
}
<script language='JavaScript' type="text/javascript">
function abc(var d)
{
alert(d);
return false;
}
</script>
i am comminting any mistake somewhere?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
-- modified at 4:23 Tuesday 30th October, 2007
|
|
|
|
|
the mistake in javascript define function like abc(d)
Devjit das
|
|
|
|
|
I hope you have written this javascript function in your html code
function abc(var d)
{
alert(d);
return false;
}
if not plz do so and remove var from the definition of your function it will make function look like this
function abc(d)
{
alert(d);
return false;
}
now your function will work.
Shujaat
|
|
|
|
|
Have you bought a book yet ?
Sonia Gupta wrote: int h = 0;
int k = 0;
int j = 0;
for (int m = 0; m < 2; m++)
{
k = h++;
// k = ++h;
}
This stuff is a waste of time. Just set h = 2 and be done with it.
Sonia Gupta wrote: Button1.Attributes.Add("OnClick", "javascript:return abc(" + h + ");");
I think you mean onclick, it's all lower case. You could set OnClientClick in your aspx, or set that property without using the Attributes collection.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Sonia Gupta wrote: f (!Page.IsPostBack)
{
int h = 0;
int k = 0;
int j = 0;
for (int m = 0; m < 2; m++)
{
k = h++;
// k = ++h;
}
Button1.Attributes.Add("OnClick", "javascript:return abc(" + h + ");");
}
Add attributes out of condition for page postback.
int h=2;
Button1.Attributes.Add("OnClick", "javascript:return abc(" + h + ");");
if(!ispostback)
{
}
bEst Regard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
If we have a textbox and a send button.if we enter the name of a person and click the send button ,the message will be send to the client in the network.plz send the source code.
|
|
|
|
|
there are lots of methods to do it... just googling....
and u can try with netsend command
|
|
|
|
|
below is written in asp ( (C)opyright 2001 - Robin Paardekam)
however you modify to meet needs.
<br />
<%@ LANGUAGE = VBScript %><br />
<br />
<%<br />
' Sending a message using NET SEND on a Windows NT network<br />
' (C)opyright 2001 - Robin Paardekam<br />
' Nice script to embed on your intranet. Send a message to any user<br />
' on a network using your browser (!)<br />
' More scripts like this can be found at http://www.paardekam.nl<br />
<br />
'Checking for all necessary variables. <br />
Msg = TRIM(Request.Form("Msg"))<br />
NamUsr = TRIM(Request.Form("NamUsr"))<br />
Computer = Request.ServerVariables("REMOTE_ADDR")<br />
<br />
if Msg <> "" AND NamUsr <> "" THEN<br />
'Sending the message<br />
Response.Write "<P>Sending message to " <br />
Response.Write "" & NamUsr & ": " <br />
Response.Write Msg & "</P>" <br />
Set server_shell = Server.CreateObject("wscript.shell") <br />
server_shell.Run "%comspec% /c net send " & NamUsr & " [FROM:" & Computer & "] " & Msg <br />
<br />
ELSE<br />
'Displaying the form %><br />
<FORM NAME="Vorm" METHOD="Post"> <br />
To: <INPUT TYPE="text" NAME="NamUsr" SIZE="20"><BR> <br />
Message: <INPUT TYPE="text" NAME="Msg" SIZE="40"><BR> <br />
<INPUT TYPE="submit" VALUE="Send Message"> <br />
</FORM> <br />
<% END IF<br />
%> <br />
Cheers
Raz
/*
Ghazi Hadi Al Wadi, PMP, ASQ SSGB, DBA
*/
|
|
|
|
|
I need code and description how to connect with database using C# in ASP.NET
i m Chan Naseeb from Pakistan
|
|
|
|
|
Just start with basic ADO.NET
Check Oledb, Sqlclient with ConnectionString, DataSet,DataReader, Sqlcommand.
There are lost of free tutorial is avalible on net
Check this
Database access with ASP.NET and C#[^]
|
|
|
|
|
hi all,
I have a link like this
<a href="mypage.aspx" class="link" onclick ="set_values('done');">Edit/</a>
in the css class link
a.link
{
color:#999999;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
text-decoration: none;
}
a.link:visited
{
color:red;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
text-decoration: none;
}
a.link:hover
{
color:#996600;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
text-decoration: none;
}
i have written the above css. now if i execute my application, the edit text is displayed in visited link color(red) even before it is visited.
How can i differentiate between visited and unvisited links by color?
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Just call link.visited on click of link.
Devjit Das
|
|
|
|