|
b ravi kumar wrote: Its a text box control where previously entered values will be displaying. I dont want to display those values for others
yourtextBox.Text = "";
Hope I answered your question.
If not, please clarify
Sincerely,
Elina
Life is great!!!
Enjoy every moment of it!
|
|
|
|
|
Hai,
I need to store 3 excel files (data) in a database (sql server) using asp.net. So, that whenever i need i should recall it. Can i store each file as an object. If so, just guide me. In each excel file it consist 5 sheets.
Regards,
Ravi
|
|
|
|
|
HI all
I am displaying images from FTP server in a Datagrid(Image name and Image)
When user click selected Image name it will download
Now I want to give code to only once the user download that file after that the image will Inactivate.
Like When we recive a new Mail it will in bold letters after opening the mail that will inactivate.
How can i write code for this Plz
Can any one help me iam using 1.1 ver
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
(Simply I want to use scanner in client side in DMS (Document Management System) web application. I have searched the Internet for solution but I found it very expensive for me, then I found small program wreten By Taha Zayed it works fine but when it coms to saving the image it did'nt save it in any where on the PC.
Thanks
Ghannam
GH
|
|
|
|
|
maybe the code just needs a little twiking send me the code, or better yet the part where it is supposed to save the image and I will have a look at it.
If only they could see what I see in my mind
|
|
|
|
|
hi,,,
when i published the website used VS2005(build->publish website) , the error was appearing:
Server Error in '/yp' 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 the assembly 'App_Web_index.aspx.cdcab7d2'. Make sure that it is compiled before accessing the page.
Source Error:
Line 1: <%@ page language="C#" masterpagefile="~/template.master" autoeventwireup="true" inherits="index, App_Web_index.aspx.cdcab7d2" title="index" %>
Line 2: <asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server">
Line 3:
Source File: C:\Inetpub\wwwroot\yp\index.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
thanks
|
|
|
|
|
I have this problem and it only seems to happen in IE 6.0. Its an authentication page that goes to a SQL server to get access info. This works great in IE 5.0 and Firefox. But not in 6.0. In firefox if access = true, then I get redirected to Management.aspx not in IE 6. All that happens is textboxes clear and I start at the same page
try
{
string scm = "sp_Access_SEL @Login='" + this.txtLogin.Text + "', @Password='" + this.txtPassword.Text + "'";
InsertIdtoDB(scm);
this.lblPass.Visible = true;
}
catch(Exception ex)
{
this.lblAccess.Text = ex.Message;
}
if(this.lblPass.Text == "0")
{
StringBuilder url = new StringBuilder();
url.Append("Login.aspx");
Response.Redirect(url.ToString());
}
else
{
StringBuilder url = new StringBuilder();
url.Append("Management.aspx");
Session["name"]= this.txtLogin.Text;
Response.Redirect(url.ToString());
}
I have no idea how to fix this. The only other objects on this page are 2 menu(User Controls) and 2 image buttons
-- modified at 3:36 Monday 12th June, 2006
|
|
|
|
|
Have you debugged through it and checked what the value in lblPass is when you come back from the DB using IE 6? It must not be 0.
|
|
|
|
|
Hi,
In the RowDataBound event, this is how I refer to a particular column (i.e. using the index number).
e.Row.Cells(7).Text = TotalB1
How is it possible to refer to the column name instead of the index number i.e.:
e.Row.Cells("B1").Text = TotalB1
Thanks
|
|
|
|
|
Hi there,
The Cells collection is of the TableCellCollection type which only supports the indexer with the int as parameter. If you don't want to remember the column index, you can use the Columns collection of the GridView control, and specify the index value based on the column header, then you can apply the index value in the Cells collection. Another option is that you can place a Label control in the column, then in the RowDataBound event handler you can use the FindControl method to get reference to the label, and you can assign the value to the Text property of the label instead of the column.
|
|
|
|
|
Hi minhpc_bk,
Could you spare a code example of what you are describing if you get a chance?
thanks.
|
|
|
|
|
Hi Tanya,
The sample code look something like:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataControlField column = GetColumnByHeaderText(GridView1.Columns, "ColumnHeaderText");
e.Row.Cells[GridView1.Columns.IndexOf(column)].Text = "some text";
Label label = e.Row.FindControl("Label1") as Label;
label.Text = "some text";
}
}
private DataControlField GetColumnByHeaderText(DataControlFieldCollection columns, string headerText)
{
IEnumerator enumerator = columns.GetEnumerator();
while (enumerator.MoveNext())
{
DataControlField column = enumerator.Current as DataControlField;
if (column.HeaderText == headerText)
return column;
}
return null;
}
|
|
|
|
|
|
Hi ,
I need to add values from textbox or listbox which are place outside the grid.When I clicked on add button all the values of textbox and listbox should be displayed in Datagrid.
Please help me as soon as poosible.
|
|
|
|
|
Save all the values of the textboxes and list boxes in a dataset using a data adapter and just tell the datagrid the datasource i.e.
OleDbDataAdapter da = new OleDbDataAdapter(ADD THE SOURCE WHERE U SAVED THE VALUES);
da.Fill(ds);
DataGrid1.DataSource = ds.Tables[0];
DataGrid1.DataBind();
Hope I helped
If only they could see what I see in my mind
|
|
|
|
|
Sorry still not getting...........
|
|
|
|
|
where did u save the values ? can u paste the code here
If only they could see what I see in my mind
|
|
|
|
|
Actually I am trying to save the values in Arraylist for displaying data in Datagrid.
But now getting that????
|
|
|
|
|
Well the easiest thing u can do is save those values in a temporary database and read them from there using OleDbCommand, i.e. saving those values in the command and then follow the rest of the steps I mentioned earlier. The command is the source now.
If only they could see what I see in my mind
|
|
|
|
|
Hello,
I have this code
System.Web.UI.WebControls.TextBox textpersid = new System.Web.UI.WebControls.TextBox();
textpersid = (System.Web.UI.WebControls.TextBox)e.Item.Cells[1].Controls[0];
and I always get the error:
Exception Details: System.InvalidCastException: Unable to cast object of type 'System.Web.UI.WebControls.DataGridLinkButton' to type 'System.Web.UI.WebControls.TextBox'.
Can someone help me on this?
Thanks alot,
Commickey
|
|
|
|
|
In editItemTemplate there is linkbutton or textbox.If there is a linkbutton then change it to textbox.
|
|
|
|
|
Hello, the only option in the edititemtemplate is a linkbutton or push button... so how do I change this to a textbox?
Thanks alot,
Commickey
|
|
|
|
|
linkbutton or push button is your project options or you are saying only two two controls are available in the edititemtemplate.If your case is latter one then you can check it again , there is checkbox, button, image,label,textbox controls etc available in the edititemtemplate.You can use any of them
|
|
|
|
|
hello,
thanks alot, I am using Visual studio 2003 and it has only two controls in the edititemtemplate which are link button and push button...
So how u I change this to a textbox?
|
|
|
|
|
How do I reach the edititemtemplate in visual studio 2003?
|
|
|
|