|
If the textbox is supposed to contain only integers, you can use the parseInt function to convert it.
---
b { font-weight: normal; }
|
|
|
|
|
Thank you very much ..this helped me alot to accomplish my javascript validation
I am too late but i will never give up
|
|
|
|
|
I'm trying to make the data which appears in datagrid linkable in such a way when i click on it it will execute some sql command and redirect to same page but it will display another datagrid depending on the sql command I specify could anyone help me out in this matter .
S.Mohamed Radhi
|
|
|
|
|
You can make in the data grid item template a hyperlink control that has a command arg and command name and then handle the command using a method like this:
public void hyperlink_Click(object sender,CommandEventArgs e)
{
if(e.CommandName=="MyCommand")
ExecuteMyProcedure();
}
Where ExecuteMyProcedure() is the method that you should design to execute the stored procedure and you can use the results in QueryString to be redirected to the page as you wish.
I have wrote the code from my memory so you should check it to be shoor using good refrences.
I am too late but i will never give up
|
|
|
|
|
hi
I have a datalist. Linkbuttuon inside it. On clikc of which i need to fll up a data repeater with images of particular id .(commandargument of linkbutton is id) Now I need to do this same with href. Means I want to put href instead of linkbutton .so
I want fun() calls the codebehind method which fills up datarepeater with images of particular id. But I dont want this to be ajax method as it wont access server controls in code behind. means if fun('id') calls FillUp() in code behind which is declared as ajax method then i wont be able to get repeater access in it . Now i m trapped here. Neither I can use ajax nor I want to use linkbutton as on its mouseover i get javascript_dopostback() comes which need to be removed. so plz suggest any alternative ?
Prob 1 : put linkbutton but remove javascript_dopostback() from status bar on mouseover.
Prob 2 : If use anchor instead linkbutton then how to fill up repeater with javascript method.
plz help .
regards,
max
|
|
|
|
|
I tried to use push model to create crystal reports in our project. For that i got sample code from our codeproject forum.
-----------------------------------------------------
private void Page_Load(object sender, System.EventArgs e)
{
CrystalReport1 report=new CrystalReport1();
CrystalReportViewer1.Visible=true;
DataSet ds=new DataSet("Account");//give same name as on
//dataset1 table header
DataTable table=new DataTable("Account");//give same name as on
//dataset1 table header
table.Columns.Add("Fname",typeof(System.String));
table.Columns.Add("Lname",typeof(System.String));
table.Columns.Add("Salary",typeof(System.String));
DataRow row=table.NewRow();
row["Fname"]="Mathew";
row["Lname"]="Hayden";
row["Salary"]="5000$";
// add to table
table.Rows.Add(row);
ds.Tables.Add(table);
// set report's dataset
report.SetDataSource(ds);
// set report source
CrystalReportViewer1.ReportSource =report
-----------------------------------------------------
But in my project i cant create object for the crytal report
like this "CrystalReport1 report=new CrystalReport1();". i am struggling with this 2 days. Could you help me.
Jey
|
|
|
|
|
Hello...
Can someone tell me how to save and retrieve a gif/doc file to a my sql server. i need to upload resume and photograph through my form.
Nizha
Nizha
|
|
|
|
|
pls find below url,
http://support.microsoft.com/kb/317670/en-us
Parwej Ahamad
|
|
|
|
|
|
Hello !!
I've one Image control on form.
I'm using FileUpload control to browse an image.
I want to display the selected image in the Image control when I click on Open Button in DialogBox(which opens after clicking Browse button).
Waiting for answer...!
|
|
|
|
|
u can do in two
1) direct set the path of image control url to filecontrol.path
or
2) first save on local machine on default location with the help of map path and then set imageurl to default path
parwej ahamad
|
|
|
|
|
u can do in two way
1) direct set the path of image control url to filecontrol.path
or
2) first save on local machine on default location with the help of map path and then set imageurl to default path
parwej ahamad
|
|
|
|
|
Thanx
pls Tell me where to write code for assigning path to imageurl?
And how to get path which is displayed in that textbox? because FileUpload control has property FileName which gives only file name but how to get whole path???
|
|
|
|
|
filecontrol.value property.
Parwej Ahamad
|
|
|
|
|
Thanks.
But I'm using FileUpload Control and there is no any propery like value.
Pls tell the solution.
Thanking You again in advance....
|
|
|
|
|
first u make filecontrol runat server
right click on control and selectect run at serer.
if u feel more trouble then pls send me your code and description on my id
Past in message body don't attach.
g_parwez@rediffmail.com
parwej ahamad
|
|
|
|
|
how can we bind DataReader() results to a table in asp.net WebForm (in dynamic format)(without using DataAdapter())?? Please help me.... its urgent....
|
|
|
|
|
execute query from command object
like command.executereader and
dim Rd as datareader=commnad.executeread
and then bind the grid
Softy Boy
|
|
|
|
|
i would like to bind it dynamically(prefferably html table) not in a grid...is there any options??please help
|
|
|
|
|
Perhaps if you explain what it is that you want to accomplish.
An html table has no data binding capabilities.
---
b { font-weight: normal; }
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
I want to delete a record from database with link in web.when the link was clicked display a yes/no question for delete.
Any info would be much appreciated,
|
|
|
|
|
On the link you can call a javascript function like :
<a href="javascript:Validate_content();">Delete</a>
and define this javascript function to see Yes/No confirmation box.....
<script language="Javascript1.2">
<!--
function Validate_content()
{
var answer = confirm("Are you sure you want to Delete ?");
if(answer)
{
document.contentform.submit();
}
else
{
return;
}
}
//-->
</script>
Please remember, you need to manage c# code for a particular Id or whatever...
Suman Singh
|
|
|
|
|
Hi,
I am using a multiple dropdownlist and want to select more than one items coming from database..
Let say, the multiple dropdown has following items :
1
2
3
4
5
and from database an array with values 2 and 5 is coming.
string[] val = {2, 5};
I want to select 2 and 5 in the dropdownlist.
Please help.
Suman Singh
|
|
|
|
|
You can't use a DropDownList for multiple selections. This is a limitation of the resulting HTML, not ASP .NET. You have to use a ListBox instead if you want to select multiple items.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|