|
Please give me a exact full coding (form tags and vb coding)
thank you
abglorie
|
|
|
|
|
I have written a code in vbscript as
Sub validates(byval sender as object,byval e as e.eventargs)
Dim app As String
app = txtname.Text
If app = "" Then
MsgBox("Please Enter your Name")
End If
End Sub
calling this in the buton event
<asp:button id="Button1" runat="server" onclick="validates()" style="z-index: 103; left: 408px; position: absolute;top: 240px" text="Check">
adding attribute in the Page_load event as
button1.attributes.add("onclick","return validates")
by running this code first it going for saving the data presnt in the Button_click event and then getting an error message while saving the record then getting validation error.
What modifications I have to do for thiscode inorder to run at the client side itself
Please help me
Priya
|
|
|
|
|
what is difference between remoting and webservices
Naik M
|
|
|
|
|
|
Hi to all,
I designed a webpage in c# with asp.net for online shopping. In that I want to display the image of the product and the information about the product. For that I which one is better table or datagrid. I kept one dropdown list for category(home appliance, computer peripherals) if the user select the home appliance the products related to that should be displayed.
For that which one is better table are datagrid
Please help me.
jai prakash
|
|
|
|
|
It more depends upon your personal choice. If you want to simply display data you must use tables and if you want to easily handle edit/delete operations you should use Data grid. Using data grid will make your life easy while sorting and performing other SQL related tasks.
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
Datagrid is better option.
Generally in shopping sites, different options like gridview, listview etc vailable, it depends on ur requirement.
u can check in amazon, rediffshopping, ebay, timeshopping.
Ramana
|
|
|
|
|
in online shopping.. better one is datagrid. and u can also use datalist
Naik M
|
|
|
|
|
HI all
i have an login page for user.
If The user login and
if he kept the System idle for 5 min then how can i kill the
session
can any one give me an idea on this
Than Q
Keerthi
|
|
|
|
|
Hi,
The Timeout property specifies the time-out period assigned to the Session object for the application, in minutes. If the user does not refresh or request a page within the time-out period, the session ends.
Session.Timeout [=nMinutes]
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Hi,
First check the timeout property of session,
if it exceeds 5mins then call
Session.Abondon();
Naik M
|
|
|
|
|
Set session time out as 5 minutes. Set the session timeout tag in config and it will be applicable for whole application
<sessionstate
="" mode="InProc" stateconnectionstring="tcpip=127.0.0.1:42424" sqlconnectionstring="data
source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="5">
Shujaat
|
|
|
|
|
Session.Abondon();
this is used for kiling Session.
Naik M
|
|
|
|
|
HI all
Thx for reply
My requriment is when user login
if he idle for 10 min then page will redirect to login.aspx
how can i detect system idle time
Thx
keerthi
|
|
|
|
|
BOOL GetLastInputInfo(
PLASTINPUTINFO plii
);
just go through it.
http://msdn2.microsoft.com/en-us/library/ms646302.aspx
Naik M
|
|
|
|
|
Hi All,
I am having 2 aspx pages, first page is having GridView and on update button click which is inside gridview I redirect that page to another page with the id. Now in page 2 i have another gridview (textbox inside gridview)and a update button. Now my problem is that I need to update the values of the textbox when I click update button.
I am not getting how to read gridview row by row since the gridview on 2 page may have more than 1 row and also textbox in each row.
Please help me...
|
|
|
|
|
<br />
foreach(GridViewRow row in GridView1.Rows)<br />
{<br />
string textBoxText = ((TextBox)row.FindControl("TextBox1")).Text;<br />
}<br />
Ramana
|
|
|
|
|
Thanks for the reply but I am not getting the value. gridview is something like this:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="622px" Height="146px">
<Columns>
<asp:BoundField DataField="PeriodContextRef" HeaderText="PeriodContextRef" />
<asp:BoundField DataField="EndDate" HeaderText="InstanceDate" />
<asp:BoundField DataField="BeginningDate" HeaderText="BeginningDate" />
<asp:BoundField DataField="EndDate" HeaderText="EndDate" />
<asp:TemplateField HeaderText="Value" >
<ItemTemplate>
<asp:TextBox ID="txtValue" runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Is Closed">
<ItemTemplate>
<asp:CheckBox id="chkIsClosed" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "Status")%>' />
</ItemTemplate>
</asp:TemplateField>
<asp:CheckBoxField HeaderText="Pending" Text="Pending"/>
<asp:TemplateField HeaderText="Comment" >
<ItemTemplate>
<asp:TextBox ID="txtComment" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Comment")%>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Something wrong I am doing in this???
|
|
|
|
|
Hi,
I am consuming a Java web service from my .NET client application.
I am able to send and receive all primitive types but when I send ArrayList of Hashmaps to Java Web Service, I am getting the following error.
"caught exception while handling request: deserialization error: no deserializer is registered for schema type: hashMap"
Please find the code that I wrote given below. Kindly help me to fix this problem.
private void Form2_Load(object sender, EventArgs e)
{
object[] objarray = new object[1];
MyWebService1 ts = new MyWebService1();
arrayList al = new arrayList();
hashMap hMap = new hashMap();
mapEntry[] mEntryArray = new mapEntry[1];
mapEntry mEntry = new mapEntry();
mEntry.key = "ert";
mEntry.value = "54";
mEntryArray[0] = mEntry;
hMap.mapEntry = mEntryArray;
objarray[0] = hMap;
al.item = objarray; // = objarray;
arrayList alt;
alt = ts.testArrayListOfArrayListOfHashmap(al);
}
M-o-h-a-n
|
|
|
|
|
Hi,
I have many pages under secure flder in my project which i want to give form authentication.
But when i click particular button to redirect to the corresponding page in Secure folder but its not redirecting to the corresponding page, its redirecting to the defaultURL that is Login page ,
which i have given in my web.config file.
|
|
|
|
|
Did you add :
<location path="SecureFldName" >
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
within the Tag system.web tag in web config
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
yup, I added that code already in my web.config file.
Thing is i added one more page say member.aspx into that secure folder.
if i click the respective button to redirect member.aspx, its not redirecting to member.aspx.
its going to the login page(Login.aspx)
|
|
|
|
|
Can you post here what you have written in web.config file for form authentication.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
<system.web>
<authentication mode="Forms">
<forms name="frmLogin"
="" loginurl="Login.aspx" defaulturl=".\Secure\Member.aspx">
<authorization>
<deny users="?">
<location path="Secure">
<system.web>
<authorization>
<deny users="?">
I gave added one more file in my Secure folder. named ChangePassword.aspx,
If i click the respective button to redirect ChangePassword page, its redirecting to the Login.aspx.
-- modified at 5:24 Tuesday 18th September, 2007
|
|
|
|
|
if i am ceating the web setup then the code behind file are getting deployed at the client machine as well and on the other hand if i publish the web site , in that case , i am not being able to browse the website
because i am getting te following error.
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
Soniagupta1@yahoo.co.in
|
|
|
|