trying to get a popup from c# code behind only when a certain condition is present.
This code:
Page.ClientScript.RegisterStartupScript(GetType(), @"startup", @"<script>alert('Hello Man');</s...
I want to be able to redirect users from certain pages to other websites, but I want to define this in my web.config. I tried this but it didn't work:
<urlMappings>
<add url...
I have an xml file that I parse and insert into the database. What I want to do is, if the records in the xml file already exist in the database I just want to update the database, If they don...
When you put a new LinkButton1 control on a form and run it, then view the html sourcecode in the browser, you'll notice the linkbutton is defined as:
<a id="LinkButton1" href="javascript:_...
This is how I add new nodes and it works fine. Now I want to be able to edit and delete nodes based in the ID.
------------------------------- CODE C# -------------------------------
<%...
I developed a C# method to detect if documents are In WordXml2007 (a series of documents are read in).
If XmlNode body = doc.SelectSingleNode("w:document/w:body", nsmgr) returns null (bod...
I'm using HtmlDecode() to convert html entities such as . It works fine except if I have an '&' anywhere in the string preceding the then it does not convert to a space. If I r...
Hi experts, simple question, I have a FileUpload control where I need to validate to make sure the file name does not contain any spaces. So what I did was added a regular expression validator...
Hi, How to create New Session with javascript:window.open? I do not want to use session.abadon() because the user may opens multiple windows similtanously.
regards.
we have a gridview that we are manually setting up the columns in.
the column widths are defined by the user, but occasionly they specify a width that is smaller than required for the headi...
I am writing an ASP.Net 2.0 web page which contains a FileUpload control and a Button control for uploading the image. The FileUpload control is validated on the client, on click of the uploa...
Hi experts,
i got this error, "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. "
where can i put it?
full error
It is an ...
I have the following javascript in my ASP.Net page:
<script type="text/javascript">
function ConfirmDone()
{
if (confirm('are you sure'))
{
documen...
Hi,
I have a dropdownlist in a gridview for the edit mode. The problem is when I click the edit button the dropdownlist's selected value is always the first value of the dropdownlist's items....
I am using GridView with OnSorting event being used to sort columns when Column Header are clicked. Just today my Application started getting Error without break in the Application Code where ...
Hi Experts,
I'm trying to open a connection to sql server using sqlclient class. I'm getting the following error:
Keyword not supported: 'provider'.
Description: An unhandled exception o...
Doing some validation
function CheckText()
{
var SleeveID = document.getElementById('txtD1').value; //SleeveID
var PipeOD = document.getElementById('txtD2').value; //PipeOD
var Small...
Greetings all
I have the following scenario:
A listbox that display various titles, with details in a panel alongside. There are buttons to Insert, Edit, Save and Update (the database). ...
I'm going mad here...
I have a server-side dropdownlist control called cmbActions, that contains a list of possible actions. Before I postback the form I want to confirm that certain danger...
I have a GridView (UserSalesGridView) which has a few template fields and a few bound fields coded into the ASPX page. I am also dynamically adding bound fields to the grid with GridView.Colu...
OK, I haven't been able to find anything on this. How can I change the height of the tabs on a TabPanel?
I want to use images rather than text in the tab headers, but it won't size vertical...
On btnSearch_Click event I bind the gridview. First column "Name" is the hyperlink and the second column "UserID" value I need to pass to another page but NOT using Request.QueryString.
Here ...
Hi experts!,
How can the exception "A potentially dangerous Request.Form value was detected from the client" be handled without setting the validateRequest to falsein the page directive or...
First, thank you very much for your attention to this post. I have user a DropDownList control in my asp.net web page. The dropdownlist is not wide enough because of the layout of the page ...
Does anyone know how to correct this? and if so... How?
Server Error in '/' Application.
--------------------------------------------------------------------------------
Unable to ...