Is there an easy way to call DropDownList.Da taBind() from Javascript?
I have tried using WebMethods but no luck!
Many thanks in advance.
User Profile
Collapse
-
C#.NET Web: Calling DropDownList.DataBind() from Javascript?
-
How to escape a < sign that is in text?
I have a text output that could be like:
hello < there
but when displayed it cuts out the part after the < sign so it just displays the hello
what is a way around this of escaping the < sign and showing the full message?
Many thanks in advance. -
Thank you very much that does the job nicely :) -
Javascript: Sum up columns of a table
Hi all,
I have a simple table set up in which a user can insert values into the boxes and onkeydown it will sum up the column.
Table:
Code:<table> <tr> <td><input type="text" onkeydown="calcTotal(this, 'tot')" /></td> <td><input type="text" onkeydown="calcTotal(this, 'tot1')" /></td> </tr>
-
Thanks for your help I got it working with the link you providedLeave a comment:
-
-
I changed my way of doing this and now have a varchar variable with the three values that I want to insert into the table all separated by a comma e.g.
DECLARE @Row1 varchar(10)
SET @Row1 = (SELECT Col1 + ',' + Col2 + ',' + Col3 FROM Table)
IF NOT(@Row1 = NULL)
BEGIN
INSERT INTO Table2
(ID, Col1, Col2, Col3)
VALUES (@ID, *********sticki ng...Leave a comment:
-
SQL Stored Procedure Insert List of variables
Hi,
I am running a stored procedure where I pass in a large list of variables e.g.
ALTER PROCEDURE dbo.Insert(@Var iable1 varchar,
@Variable2 varchar,.....et c.
What I would like to know, is there a possible way to loop around all the variables, I think there is 16 of them, and insert them into a table with a new row for each variable in the list??
... -
Well here is the HTML markup with a few changes from me trying things:
Code:<div id="TabContainer1" class="blue" style="width:200px;visibility:hidden;"> <div id="TabContainer1_header"> <span id="__tab_TabContainer1_TabPanel1">Test</span><span id="__tab_TabContainer1_TB2">Test</span><span id="__tab_TabContainer1_TabPanel2">Test</span>
Leave a comment:
-
Auto expanding divs inside tab conatiner
What I would like to achieve is to have two divs on either side of my tab container, one on the left and one on the right both touching the far sides. Then information will need to go inbetween the two divs in the middle.
They also need to automatically expand in height when the tab container expands. Here is my code up to now:
Code:<html xmlns="http://www.w3.org/1999/xhtml"> <head
-
C# Web App: Retrieving documents stored in SQL
Hi,
I need some help retrieving documents I have inserted into SQL in an Image type field. What I want to get is that when the user clicks the view button it retrieves the document in the format it was saved as. Code is below:
Code:SqlConnection connSQL = new SqlConnection(conn); connSQL.Open(); SqlCommand cmdHeader = new SqlCommand("SELECT Title, Attachment, Attachment_Type FROM MDM_REQUEST_ATTACHMENTS
-
Try putting this after you have opened the connection:
MyCommand.Execu teNonQuery();Leave a comment:
-
-
C# Web App: If statment based on table values
Hi hope anyone can help me on this:
I am creating a table of values in code that has one row and holds a value in each cell, that value could be 'Y' or 'N'. At times it could be 3 values or it could be 4 or 5 the number differs so what my question is:
How can I create an if statement to say that if all values in the created table are all 'Y' then run some code??
Thanks in advance. -
Put the gridview in an update panel with any controls that update it and on the back end run:
GridView1.DataB ind();
In the call that the control makes it will bind the gridview with all changed values without posting back.Leave a comment:
-
Hope this can help you. In code behind:
HyperLink hyp = (HyperLink)Data List1.FindContr ol("Hyperlink1" );
hyp.CssClass = //if you want to change the css class
hyp.ForeColor = //to change font colorLeave a comment:
-
Hope this works for you:
if (Session["Status"].ToString() == "user")
{
DataGrid.Column s[IndexofColumn].Visible = false;
}
Obviously replace the session name you use for yours with the one I used "Status" and replace the IndexofColumn with the index of your button column e.g. could be 3 if its at the end of a 4 columned table.Leave a comment:
-
Try this hope it works
function find()
{
var box = $find('TextBox' ); //Replace with id of text box as shown on rendered page
var total = box.value; //This will give value of text box
}Leave a comment:
-
Attach a databound event to your dropdownlist on .aspx page e.g.
<asp:DropDownLi st ID="ddl" runat="server" OnDataBound="dd l_DataBound" />
Then in code behind retrieve value from database and make it selected value on drop down list e.g.
protected void ddl_DataBound(o bject sender, EventArgs e)
{
//Connect to SQL and run select statement to retrieve...Leave a comment:
-
hey many thanks for your help on this one you've been great :)
i'll give it a shot in my program and if all goes well will post some sample codeLeave a comment:
No activity results to display
Show More
Leave a comment: