|
the copy website does not work
what can be done????
|
|
|
|
|
What error are you getting??
Im having problems with the copy web site tool as well
At the end, i get an error saying that it had problems, but does upload the file, it only takes too much time, and im using vs2008 professional
Alexei Rodriguez
|
|
|
|
|
Hi, Can you post the error message?
Thanks
|
|
|
|
|
hi friends i need help for, if i put a mouse on a link button then that is show our message of content what we have. how can we will get on mouse overa text message is it possible in link button or anything else. Or that is only possible in flash buttons.
thank you please give me a rep
j somasekhar
|
|
|
|
|
Write javascript for onMouseOver event. Most elements have this event in javascript.
Put the following C# code in page_load to add the even in HTML.
LinkButton.Attributes.Add("onMouseOver", "mouseOver('" + LinkButton.ClientID + "');");
Add the following javascript to your mark up
function mouseOver(btnId) {
var LinkButton = document.getElementById(btnId);
}
function mouseOut(btnId) {
var LinkButton = document.getElementById(btnId);
}
I didn't get any requirements for the signature
|
|
|
|
|
hi dear.
can u help me. plz give me any sample application if u have, plz send it to me by somasekhara777@yahoo.co.in
j somasekhar
|
|
|
|
|
on mouse over message in .aspx page.
thank you
j somasekhar
|
|
|
|
|
Hi,
I have a gridview (source is a list) which contains information that would be required to pull out more data from the database. actually, i wil be using that list when a btn is clicked to retrieve more information and then assign this second list to the gridview... ie 1 grid and two sources but source 2 is dependent on source1. i am using asp.net so with button click , state is lost and i don't have anything in the list. How would i save this state... list1 has about 10 rows of 10 columns... i tried saving it in viewstate but page is showing error...
plz provide help
haseeb
|
|
|
|
|
When you need the data in your gridview, write a method SaveGridView to datatable. Then you can work with that datatable and use it to create datasource2.
I have a method like that in one of my applications, which I will post as an example. My example uses template fields in the grid, but you can work with datafields as well. Not once you call the saveGridToDataTable you can rebind the grid to the table you just created.
private DataTable saveGridToDataTable()
{
DataTable tbl = AppData.getEmptyOQTraineesTable();
int testScore = 0;
foreach (GridViewRow row in this.gvResults.Rows)
{
if (row.Visible)
{
DataRow r = tbl.NewRow();
DateTime dValue = DateTime.Today;
TextBox txtTestDate = (TextBox)row.FindControl("txtTestDate");
TextBox txtQaulificationDate = (TextBox)row.FindControl("txtQualificationDate");
TextBox txtScore = (TextBox)row.FindControl("txtScore");
TextBox txtEmpNumber = (TextBox)row.FindControl("txtEmpNumber");
if (string.IsNullOrEmpty(txtEmpNumber.Text))
r["Employee"] = DBNull.Value;
else
r["Employee"] = txtEmpNumber.Text;
if (int.TryParse(txtScore.Text, out testScore))
r["TestScore"] = testScore;
if (DateTime.TryParse(txtTestDate.Text, out dValue))
r["TaskDate"] = dValue;
if (DateTime.TryParse(txtQaulificationDate.Text, out dValue))
r["QualificationDate"] = dValue;
tbl.Rows.Add(r);
}
}
return tbl;
}
public static DataTable getEmptyOQTraineesTable()
{
string x = string.Empty;
DateTime y = DateTime.Today;
Int32 z = 0;
DataColumn dc1 = new DataColumn();
dc1.DataType = x.GetType();
dc1.ColumnName = "Employee";
DataColumn dc3 = new DataColumn();
dc3.DataType = y.GetType();
dc3.ColumnName = "TaskDate";
DataColumn dc4 = new DataColumn();
dc4.DataType = z.GetType();
dc4.ColumnName = "TestScore";
DataColumn dc5 = new DataColumn();
dc5.DataType = y.GetType();
dc5.ColumnName = "QualificationDate";
DataTable dt = new DataTable();
dt.Columns.AddRange(new DataColumn[4] { dc1, dc3, dc4, dc5 });
return dt;
}
I didn't get any requirements for the signature
|
|
|
|
|
Hi, Can you pls post your error?
Thanks
|
|
|
|
|
Hi, i don't get any compile time or runtime errors. i have to get values from table1 and then according to data of table 1, get table2 data using a button... i get data for table1 but when i click the btn, because http is stateless, i lose all the data that was in grid1... I need to maintain that data as state,so that in postback, i take out the data, do the searching and show table 2.... because table1 has alot of information, i don't know whether to save it in session,cookie or cache... also the data will change with each session, maybe 1 user will be checking one portion of table1 , other will be checking another portion... so how do i maintain all this detail...
Thanx...
haseeb
|
|
|
|
|
Hello,
In my pageInit I have
mSesID=Session.SessionID.ToString();
Each time a postback occurs, I receive a new sessionID #. Is this correct? Shouldn't the session be the same session value even during postbacks for the same user?
I assumed it would always be the same value, but I'm probably wrong.
Thanks
|
|
|
|
|
I'm not sure but you could easily create a new guid and store that in session. Then you would have an identifier.
I didn't get any requirements for the signature
|
|
|
|
|
According to MSDN it should be unique for the session. See Here[^]
|
|
|
|
|
You will receive different sessionID while you havent save something in the session
Once you save something in the session, the sessionID will remain the same
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
Response.Write("Init " & Session.SessionID)
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then Session("X") = "X"
End Sub
Alexei Rodriguez
|
|
|
|
|
Hi Everyone !
I have have small problem.
"I work with visual studio 2005."
HOW to do if i want to load different Menus depending on the profil of users (general admin, local admin, simple user)
I have a connection page there is an authentication by windows, after this the welcome page contains Different menus I need to know HOW to DO to LOAD the right menu acording to the users rights. My menu is directly in the Master Page
Thank for Helping me
|
|
|
|
|
|
Hi, its depend on the users who log if you want to enabled or disabled a menu.
for example:
''Masterpage load
Session("users")=id_manager
if session("users") = id_manager then
menu1.enabled=true
else
menu1.enabled=false
endif
Hope this one can help
Thanks
|
|
|
|
|
Thanks guys
I will try this tonite I will tell you
|
|
|
|
|
HI,
i have a formview with an itemtemplate that contains a table and a number of rows and columns. There is a label control in here that i want to assign a value at runtime.
i have tried
Label lbl=formview.findcontrol("labelname");
but the lbl is never found , possible because of the table. i need the table because i want to show data in different 4 columns making up three rows...
how would i find this control and assign it the value
thanx
haseeb
|
|
|
|
|
Hi,
I got this error while updating a particular record,i checked all the possibility and i got stuck with this,Please help me
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server.
|
|
|
|
|
|
I have 3 webpages identified, then I would like to make another one with automatic refresh every 10 seconds, and then in every refresh display one of the other three in order.
Is there a simple way in asp to accomplish this?
Thanks in advance
|
|
|
|
|
Go through below link for refresh the page.
Auto Refresh Web Page[^]
Maintain the session to display page one by one vice versa
Parwej Ahamad
|
|
|
|
|
Thanks!
Just one Q: what do you mean by "Maintain the session"??
|
|
|
|