|
Your main problem is that if you don't add your controls bfore the page load event, viewstate will not be restored and so you don't be able to get the selected values as tehy won't be set in the code behind for you.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
how to run (asp.net with C#) website using IIS
|
|
|
|
|
You must have to install .net Framework (appropriate version)
And have to install front page extension server
Best Regards,
Chetan Patel
|
|
|
|
|
<% If (Request.Form("Submit1") = True) Then
Response.Write("Hi")
End If
%>
<title>Untitled Page
i got the error at runtime
Conversion from string "" to type 'Boolean' is not valid.
please help...
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
YES, see Submit1 is empty and you cannot convert "" into a boolean.
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|
|
|
What is the issue? Your submit1 control has a value "" (empty). And you cannot convert that empty value into boolean.
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|
|
<% If Request.Form("Submit1") Then
Response.Write("Hi")
End If
%>
try this and enjoy
Best Regards,
Chetan Patel
|
|
|
|
|
|
R u passing 'true' or 'false' value as a submit1 var
if yes try this
Request.Form("Submit1") = "True"
Best regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
All this is happening in a aspx page.
Submit1 is a html button
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<%
If Request.Form("Submit1") Then
Response.Write("Hi")
End If
%>
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server">Sonia</asp:TextBox>
<input id="Submit1" type="submit" value="submit" /></div>
</form>
</body>
</html>
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
u r passing string value and checking boolean value so its give error
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
Hi,
Replace following things
Sonia Gupta wrote: If Request.Form("Submit1") Then
If Request.Form("Submit1") = "submit" Then
and
Sonia Gupta wrote:
I tried with the modified changes it's working...
The problem in ur code is Request.form("Submit1") returns string value....so its giving error..
and one more thing.....for submit button it should contain name attribute, when ever u click on that button the value will be passed to form
Regards,
Sandeep Kumar.V
|
|
|
|
|
transferring to another page using Server.Transfer conserves server resources.
Does it mean that it does not tell the browser that it transfer the user to another page.I mean -
1.it does not update the history.
2.I am sending the user to another page with some information (server.transfer(abc.aspx?id=9))
the another page - having address bar - is not showing the id .is that mean the server resource conservation
or
3.There is some other meaning of server resource conservation?
-- modified at 1:59 Thursday 26th July, 2007
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Sonia Gupta wrote: Does it mean that it does not tell the browser
Yes it will not show the address.so histroy will not be updated...
Regards,
Sandeep Kumar.V
|
|
|
|
|
Using Server.transfer we are shifting the control of the execution to another Page on the same site. so it is not server resource conservation
Best Regards,
Chetan Patel
|
|
|
|
|
use response.redirect("")
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
its not possible my dear. response.redirect working or not
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
Sonia Gupta wrote: transferring to another page using Server.Transfer conserves server resources.
True, Because it won't send information to the browser that, page is redirecting. So you will be seeing the same page even though you are not standing on it. Server.Transfer() reduces HTTP requests. This helps to improve speed. More over, if you set preserverForm to true then you could be able to access all the controls and querystring on the previous page in new page.
|
|
|
|
|
Protected: Protected access gives a variable accessibility within their own class or a class derived from that class
i implemented it in the followiog example .
is that example right?
Class abc
Protected d As Integer = 9
End Class
Class def
Inherits abc
End Class
Class ghi
Inherits def
Private Sub f()
Dim f1 As Integer = d
End Sub
End Class
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
yes that's right
-- modified at 1:34 Thursday 26th July, 2007
Basharat
|
|
|
|
|
how can i check it access limits?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
this integer d is accesable to all........ of it's drived classes
Basharat
|
|
|
|
|
i meant that , is there any way to check that d(protected data type) is not accessible somewhere,
as protected says it is accessible in it's class and the class deived from it.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
there is no limit so i don;t things so that there is any way to check out if you got any one please forward it to me
Basharat
|
|
|
|