|
che_kar wrote: I Want to know about connect between asp page and sql sever
This is very basic stuff. Please buy a good book on ASP.NET and work out the examples provided.
|
|
|
|
|
Dear all,
I want to develop a live broadcast program in asp.net with c#, but i have no any idea about web cam related program. I already work on streaming technology for video site.
if anybody have web cam related program in asp.net then please ping me.
Thanks,
Ashutosh Kumar Jha
ashutosh kumar jha
|
|
|
|
|
Hi, I am using a calendar control in my project. When i click on the date the control was post backed. My guide told to make the post back false. But thers is no post back property for that control. Can anyone tell how to achieve it?
|
|
|
|
|
Karthick_gc wrote: My guide told to make the post back false. But thers is no post back property for that control.
Your guide ? Is that like your boss ? There's no AutoPostBack property ? Perhaps you need a javascript calendar, the one built in to .NET kind of sucks.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Is there is any link to access the Javascript calendar?
|
|
|
|
|
Here[^]. Looks like you need to read this[^] article.
|
|
|
|
|
am using checkboxes to select rows in a gridview and once i click on the checkbox and click on transfer i want the selected rows to get displayed in another gridview..
heres the code .. but am getting Input array is longer than the number of columns in this table error message..
am stuck here...
DataTable dt = new DataTable();
foreach(GridViewRow dgr in GridView1.Rows)
{
if(((CheckBox)(dgr.FindControl("chkbx"))).Checked==true)
{
dt.Rows.Add(dgr);
}
GridView2.DataSource=dt;
GridView2.DataBind();
any help would be great appreciated..
scarface
|
|
|
|
|
scar_face wrote: GridView1
scar_face wrote: GridView2
This is for an obsfucation contest ?
Which line blows up ? I don't think a row can exist in two tables, I think you need to copy it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
what i meant was to copy rows from one gridview to another gridview ..so can you help me with the code...it would be of great help..
scarface
|
|
|
|
|
Google it, tons of results. But basically, you need to make a new DataRow, then copy the data column by column. Google will show you the way young padawan.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
few lines of code would help me out...i did google a lot before posting in this forum..not much help over there for this thing..
scarface
|
|
|
|
|
i ,
i am getting error's like,
Scale error during implicit conversion of NUMERIC value '195061.44' to a NUMERIC field.
Specified cast is not valid.
procedure with out put parameter as @v_End_Balance numeric(22, 2) out
in code i am giving as
cmdEndBal.Parameters.Add("@v_End_Balance", OdbcType.Numeric,22);
cmdEndBal.Parameters[2].Direction = ParameterDirection.Output;
cmdEndBal.ExecuteNonQuery();
Int32 RetVal = (Int32)(cmdEndBal.Parameters["@v_End_Balance"].Value
|
|
|
|
|
So change the type you're using, given that the given type 'is not valid'.
Perhaps casting a float to an int is the issue ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Please any body who knows how to create a link in data grid View..
|
|
|
|
|
You format a column to output a link. did you try google for examples ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
How to pass values from javascript to server-side
|
|
|
|
|
Using a hidden input field.
|
|
|
|
|
|
1 - put a server hidden field in your page
2 - write the name of the field as a variable through to javascript, so you have the client side Id
3 - use document.getElementById to find the Id, and then set the value in JS
4 - on postback, read it from the hidden field.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
<input type="hidden" name="txtHidden" id="txtHidden" runat="server">
document.getElementById("txtHidden").value = "Set your value here" You can use txtHidden.Text on server side to get the value.
|
|
|
|
|
runat=server won't change the id ? I see it's not a server control, but still, I did not know that.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: runat=server won't change the id
It will, only if the control is in a container(like panel etc). In such cases, it prefixes the container id with the control id to make the name unique. In normal cases, it won't.
|
|
|
|
|
Hello everyone!
I need to ask for an advice on my dilemma... I have a form with a dropdownlist, that is being filled with data from the database, and a textbox that is disabled.
What I want to do is if the user select the value 'Other' from the dropdownlist, the textbox will be enabled without having to submit the form.
I read from a forum that i can use a javascript for this, but since I'm really new to javascript I want to ask for your suggestions and/or expert opinions on how can I proceed on this one.
Thanks in advance!
modified on Thursday, February 26, 2009 1:40 AM
|
|
|
|
|
jalandoonkNEWBIE wrote: I read from a forum that i can use a javascript for this
Handle the onchange event.
1 - Use var obj = document.getElementById(YourDropdownId) to get the dropdown list
2 - obj.options[obj.selectedIndex].text to get the selected text.
Do the necessary checking and enable/disable textbox.
|
|
|
|
|
Ok, I already solved my 'problem', and for the benefit of those who want to know what I did here is may javascript:
function ValidateInfo(DropDownID)
{
var form = document.forms[0];
intLength = form.elements.length;
for (var ctr=0; ctr<intlength;> {
var element = form.elements[ctr];
var elementName = element.name;
if (elementName.indexOf(DropDownID) > 0)
{
strGroupID = element.selectedIndex;
if (strGroupID == (element.length - 1))
{
TextEnabled = false;
}
else
{
TextEnabled = true;
}
break;
}
}
for (ctr=0; ctr<intlength;> {
var element = form.elements[ctr];
var elementName = element.name;
if (elementName.indexOf('txtNewGroup') > 0)
{
element.disabled = TextEnabled;
break;
}
}
}
and called it within the page_load function.
|
|
|
|