|
|
I am using external tool for creating menu.
But It allows me to open a URL only on click of that menu.
I want to make visible a table on click of that menu.
How to Do This ?
|
|
|
|
|
Can you not just set a javascript call to a function instead of a url?
Something like:
javascript:ShowTable();
and then in that function set the visibility of the table.
|
|
|
|
|
Hi,
I have a page that calls a sql procedure and it runs for 20 - 40 min. I use usual threading for this page.
Thread objthread = new Thread(new ThreadStart(ticketingThread));<br />
objthread.Start();
As i dont know when it will end. i never abort the thread. what happens is when user uses the page for 1 weeek, the page starts hanging. I dont know what happens. When i tried debugging it works fine.
I also saw creating thread in threadpools
ThreadPool.QueueUserWorkItem(new WaitCallback(ticketingThread));
Please advise which one i have to follow and what is the difference between the two.
Thanks
Venky
|
|
|
|
|
Hi Venky.
I have nothing to hand here, but i remember that you can use a delegate to run the thread, and then a callback function which will terminate it.
Im not sure how often this thread is getting created, but even if it is only once, it is good practice to terminate the thread when it has completed its job.
Cheers
Mark.
|
|
|
|
|
I have asp.net page for user login, after login they can sign out before exit page, but if they not click logout, the machine will remember his/her ID?
................
|
|
|
|
|
At the LOGIN save the user id in session e.g Session["UserId"] = userid.Text and on button click of logout clear the Session value. What will happen is if he doesnt press the logout button the value stays stored otherwise it will be cleared.
So u can use this value the next time he/she logs in.
Hope I helped
If only they could see what I see in my mind
|
|
|
|
|
I still can not get it, i mean if he does not click button logout, when other user open web as computer is will dispaly old user
................
|
|
|
|
|
The server will close automatically any session after 20 minutes of inaticity.
you can modify this parameter (20 min) in your Web.config file.
or by using the command "Session.timeout = 44;" (44 minutes for exp).
To clear all Session variables => "Session.Clear();"
Regards
The novice.
|
|
|
|
|
Thank for for helped me.
................
|
|
|
|
|
Sorry I didnt understand the problem if what novice said helped u then I misinterpreted ur prob
If only they could see what I see in my mind
|
|
|
|
|
In web application , the controls displaying the old values which are previous entered in a drop down list. In my application i need to clear off those values. Whether it's possible. If so, please help me.
Regards
Ravi
|
|
|
|
|
try being more descriptive, however u can use
ddlname.Items.Clear();
to clear the values and can populate the ddl again.
Hope I helped
If only they could see what I see in my mind
|
|
|
|
|
Its not a list/drop down control. Its a text box control where previously entered values will be displaying. I dont want to display those values for others. For example while logging into a mail Id if any emailid exists with that letter those list of values will be shown as a drop down list.
I hope you have understand what i mean to say.
Thanks for the help
Ravi
|
|
|
|
|
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.
|
|
|
|