|
sir will u help with code once
|
|
|
|
|
In CSS
.textboxstyle{<br />
background-color: red;<br />
}<br />
and set this class to the CssClass property of your textbox..
|
|
|
|
|
What's the problem in the following chunk of code
function rtrim(s)
{
var temp = s;
var obj = /([\W\w]*)(\s*)$/;
if (obj.test(temp))
{
temp = temp.replace(obj, '$2');
}
return temp
}
|
|
|
|
|
Sonia Gupta wrote: What's the problem in the following chunk of code
Where you stuck ? Is this code shows any error ?
|
|
|
|
|
no error is occuring , but it is not trimming from the right side
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
|
wohhhhhhhh That's so simple expression.
Thank You
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Hi all,
I have a problem which is as follows
I have a server located at remote location. I want to map a network drive on one of the client machines located at our premises through a form. The mapped path should be stored in a database table.
When a user wants to access some files stored in the shared folder, my program will pick up the path stored in the table and accordingly fetch the requisite files from that location.
I am using ASP.NET 2005 with C# as code-behind language.
Let me tell you what I have done. On one of my forms I have used the file upload control which helps me in arriving at the destination folder. I also have the path appearing in the text box when I click on the Open button. I extract the directory path and send it to the database table. So far so good. When I come to my second form, I fetch the path from the table and put it as a parameter to an ODBCConnection object. This is where it gives me an error stating (unknown) Not a valid path to the server.
Regards
v1i9n6o7d
|
|
|
|
|
You have a file on a network path at a client. Your web server is located remotely from the site, and doesn't have access to the network drive - so when you try and access the drive from the web server, no joy.
What you might want to do is provide the path as a link on the page. When the client clicks the link, they should be able to access the network drive.
|
|
|
|
|
I have a page which needs to be visible only after logged in. So for that I have added the following piece of code to my page.
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
In the same page I have one text box, a DropDownList and a submit button. My problem is when the page is submitted, it goes to Logout page. Once in a while only it happens.
And I think it happens during first time log in only. Next time if I log in the form is properly submitted.
Can anyone tell the reason?
|
|
|
|
|
Soumini wrote: My problem is when the page is submitted, it goes to Logout page. Once in a while only it happens.
How are you validating that a logged in or not?
And how you redirect to the Logout page?
|
|
|
|
|
To redirect to logout page, I am giving the following code in the Page_Load event
if(session["user"])==null)
Response.Redirect("Logout.aspx");
|
|
|
|
|
Hi,
I have a problem with web pages, each time i run the appln, the pages are loaded from history, which are not updated. Though i clear the history, each time its not possible to do that, can some body tell ne how to refresh an web page programatically.
Thanks in advance
|
|
|
|
|
content="10"> Refreshes every 10 seconds.
|
|
|
|
|
Anuradha612 wrote: I have a problem with web pages, each time i run the appln, the pages are loaded from history, which are not updated.
Why is it happening like that? I think there might be some problems with your code...
OR, there might be something wrong with your browser setting?
|
|
|
|
|
Hi,
This is from CHandrakanth.
I have one gridview in that EDIT button is there.
When i click on Edit Button the columnValue(ApplicationName - value) should be displayed in the DropdownList and that should be selected.
the code and all i giving here
protected void gdvRoleDetails_RowCommand(object sender, GridViewCommandEventArgs e)
{
ddlApplications1.SelectedIndex = 0;
GridViewRow row = (GridViewRow)gdvRoleDetails.Rows[Convert.ToInt32(e.CommandArgument)];
if (e.CommandName == "Edit")
{
ListItem item = new ListItem();
item.Text = row.Cells[2].Text;
ddlApplications1.Items.Clear();
hdnRoleId.Value = row.Cells[0].Text;
txtRoleName.Text = row.Cells[1].Text;
hdnAppl.Value = row.Cells[3].Text;
ddlApplications1.SelectedIndex = ddlApplications1.Items.IndexOf(ddlApplications1.Items.FindByText(row.Cells[2].Text ));
}
}
can any one suggest me what to follow for that
Chandrakanth
|
|
|
|
|
i have developed web application using c# with asp.net 2.0. this application will use some person in local machine only. So how can i give that application for production. i mean how to deploy asp.net 2.0 application.
regards,
vidya
Try!!Try!!Try!!......SUCCESS!!!!!!
|
|
|
|
|
You can create installer for your application and deploy the installer executables.
|
|
|
|
|
create a Virtual Directory on IIS and deploy the web sites !!!!
|
|
|
|
|
Hi guys i need ur help in query,
I knew this place is not correct to place abt sqlserver...,
But i need it urgently..,
So plz if any one knows help me,
See i have 2 tables values in that tables look like this:
Table1: *|* Table2:
Key Id name *|* Id M1 M2
1 100 Magesh *|* 100 50 50
2 101 Kumar *|* 101 60 55
Now i want to that "kumar" Id want to 100 and that "Magesh" Id want to 101..,
So i want to update the records using key field...,
While updating the table1 Id and name.., the changes have to update in Table2 records also (Id,m1,m2)...,
How to do that?
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
The best way is to create a trigger on table 1 for insert/update which will update table 2 automatically
------------------------------------------------------------
"The only true wisdom is in knowing you know nothing." --Socrates
|
|
|
|
|
Can you explain me how to add event handler in asp.net to standard control ?
|
|
|
|
|
keyto wrote: sp.net to standard control ?
What is standard control ?
|
|
|
|
|
I assume that standard controls means the controls that included in .NET framework by default..
It's simple. For example, if you want to add the event handler to button, you can wrote like that .
C#
this.saveButton.Click += new System.EventHandler(this.saveButton_Click);<br />
void myButton_Click(object sender, EventArgs e) {<br />
Response.Write("Button Clicked");<br />
}
|
|
|
|
|
Hii,
Could any one please tell me how to Add Text boxes Dynamically in a ASP page and taking values from those different text boxes into a single column of database table as a different rows.
Also when fetching the value from the database the value should get displayed in their respective text boxes from where it has been inserted to the database.
Help of anyone is greatly appreciated.
Thanks
Imran
Imran
|
|
|
|