|
hi
I am developing one network monitoring tool Which contain table..
I want to insert grid veiw in one row i.e in <asp:tablecell>.
but problem is once i put that gridview control in <asp:tablecell>
it disappear that whole column.
(I am developing the tool just like computer managment application.
You can see this on your own computer.
1. write click it on My computer.
2. Manage
)
so how can i use this control???
eg:
<asp:TableCell Width="70%" BorderWidth="3" Height="100%">
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</asp:TableCell>
I am waiting for ur reply..
|
|
|
|
|
how can i able to annotate text document in a web page using c#.
Are there any Free downloads of web based annotation tools.
Plz suggest any tool...
|
|
|
|
|
It might help if you specified what kind of text document you are working with. Is it for example Microsoft Word documents?
---
b { font-weight: normal; }
|
|
|
|
|
What ever may be the document(pdf,MSword,acrobat)i get by searching for technical documents based on search keyword i enter.
|
|
|
|
|
I drag a DataList on the Web Designer,
and set a Dataset as it's DataSource.
the dataset is filled by Adapter using products table of Northwind.
oh,I paste the code here,help me found what is wrong.thank u.
aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<title>无标题页
<asp:datalist id="DataList1" runat="server">
<itemtemplate>
<asp:button id="Button1" runat="server" commandargument="<%# Eval("ProductName") %>"
="" oncommand="Button1_Command" text="<%# Eval("ProductName") %>">
---------------
aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=Northwind;User Id=sa;Password=;");
SqlCommand comm = new SqlCommand("select * from Products", conn);
SqlDataAdapter da = new SqlDataAdapter(comm);
DataSet ds = new DataSet();
da.Fill(ds);
DataList1.DataSource = ds;
DataList1.DataBind();
}
protected void Button1_Command(object sender, CommandEventArgs e)
{
Response.Write(e.CommandArgument.ToString());
}
}
|
|
|
|
|
the error is:
postback or postback arguments is invalid.use <pages enableeventvalidation="true"> in the settings or in the page to enabel event Validation....
I come from china,so the error message is Simple Chinese.I translate it.
|
|
|
|
|
I read a lot of articals on net via google.
but none of them is about event handling of controls was created at runtime For example in for next loop.
'Creation Part
Protected Sub btnCreateRuntimeButtons_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCreateRuntimeButtons.Click
For i As Integer = 0 To CInt(txtNumberOfButtons.Text)
Dim btn As New Button
btn.Text = i.ToString()
AddHandler btn.Click, AddressOf Me.btnClicked
Panel1.Controls.Add(btn)
Next
End Sub
'Event Part
Protected Sub btnClicked(ByVal sender As Object, ByVal e As EventArgs)
Dim btn As button = CType(sender, button)
Response.Write(btn.Text & "th button is clicked")
End Sub
please help and run this code :'(
-- modified at 3:31 Sunday 29th October, 2006
|
|
|
|
|
I have two frames in a frameset.once right frame is reloaded,left frame should get reloaded.how to do this using javascript
|
|
|
|
|
How to call javascript function of one form into other using javascript.
|
|
|
|
|
|
Hi there. Im creating a web system in ASP.Net web matrix.
I was wondering if anyone can help, with my Basket page.
Here's the thing, if the user clicks on an image(in catalogue page)
i want the system to display all details of that particular item in a
table/ datagrid...How do i code it???
PLEASE someone help
Thanx
|
|
|
|
|
Your question is far to vague. What is it specifically that you have a problem with?
---
b { font-weight: normal; }
|
|
|
|
|
The way the Poster's request reads I'm almost certain he/she wants us to tell him/her how to write the whole page, and a DataGrid connection and display specifically.
"When I get a little money, I buy books and if any is left, I buy food and clothes." --Erasmus
|
|
|
|
|
Yes Yes Yes....
The DataGrid connection, and settings and what else..?
Please someone
The Q:
Customer clicks on cart picture in Catalogue page,
The system goes to the Cart page and displays the item that the customer have clicked.
A:?
How to do DataGrid connection & settings?
|
|
|
|
|
What is it specifically that you have problems with?
Opening a page when someone clicks something?
Sending information to the page you open?
Creating a page?
Recieveing the information in the page?
Connecting to the database?
Querying data from the database?
Using parameters in a query?
Recieving the data from the database?
Adding a DataGrid to the page?
Binding the data to the DataGrid?
---
b { font-weight: normal; }
|
|
|
|
|
Adding a DataGrid to the page and
Binding the data to the DataGrid
The Q:
step1 :A customer clicks on a product image
step2 :The system then takes the customer to the cart page displaying
the product/s that the customer have selected in a datagrid.
step3 :The system must also calculate the total price of all products in datagrid.
Thanx
|
|
|
|
|
how could i set any image is created at runtime to image box?
|
|
|
|
|
What do you mean?
---
b { font-weight: normal; }
|
|
|
|
|
I'm trying to operate with event logs in my asp.net application,here is my code:
<br />
EventLog ev = new EventLog("MyAppLog",".","MyApp");<br />
EventLogPermission ep = new EventLogPermission(PermissionState.Unrestricted);<br />
ep.Assert();<br />
ev.Clear();<br />
A Win32Exception raised when runing to ev.Clear(): System.ComponentModel.Win32Exception:Aceess denied.
What's the problem in my code? Or any other advice to me?
Note these code is running under the ASPNET windows account.
Regards
|
|
|
|
|
user control(A) has a button, when button is clicked i raise an event.
at default aspx, i have another users control(B), a textbox to specify number of A and a linkButton named "Fill", and a another button named "POST THE PAGE"
B is a container for A and user input number then click Fill button then i add A s inTo B at runtime. i added event in B for A's buttonClick event also i add addhandler command for catching B's buttonclick event in default.aspx.
i noticed when i clicked Linkbutton, A's and B's page load event is RAISED before LinkButton Click event. i know if i add controls at pageload i dont need to add addhandler for events. So i used a public method _FillTheTable to fill A into the page. But FillTheTable is called after the page load.
at the end, i click "POST THE PAGE", so that i dont fill the table with A s at page load event,after the page is posted back, i see page is empty :S
What i have to do to solve this problems?
|
|
|
|
|
hi
what is thr Disadvantages of using Using Context Object to pass parameter between pages?
the folowing is example
//page1.aspx.cs
this.Context.Items["x"] = TextBox1.Text;
Server.Transfer("page2.aspx", true);
//page2.aspx.cs
TextBox1.Text = this.Context.Items["x"].ToString();
|
|
|
|
|
The disadvantage is that you can pass between pages only within the scope of the paticular request.
You cannot use Response.Redirect() with Collection Item.... If you use Server.Transfer the URL does not get updated for the users.
You can use Session Object.
Hope Helped.
Happy Programming....
Sanjeev
|
|
|
|
|
thanks Sanjeev,
I understand from you the following:
If we pass variable value from page 1 to page 2 by using context.item and server.transfer
We can get the variable value in page 2 only so we can not get it in page 3 or page 4
But if we use session we can get it during the session in any page but it will consume the RAM and professional programmer don’t prefer to use the session
thanks again
|
|
|
|
|
how to refresh a frame when there occurs reload of another frame in a page using javascript.
|
|
|
|
|
HI
i'm using VS 2005 and i need to use QueryString to pass variables between paged but its visible is there any why to Encrypt this variable value in URL address bar
thanks a lot
|
|
|
|