|
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
|
|
|
|
|
Does anyone know if the asp.net adrotator control supports flash banners.
If so, how does the XML file look with a flash banner in it. I am trying to
get a .swf flash file to work with the adrotator and it doesn't seem to be
displaying. I just not sure what needs to done.
Any info would be much appreciated,
|
|
|
|
|
Can you show us the code for your XML file?
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the internet, we know this is not true." -- Professor Robert Silensky
|
|
|
|
|
Hi there
In VS2003 whenever I wanted something done in the PreRender phase, I'd select the Page class from the control dropdown, select the events (on the lightning icon) and then double click on PreRender.
Where do I access the same functionality in VS2005...?
I know I could just hook up to the event in the Page_Load method, but I wanted to do it "right" :->
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|
|
I need some steps to follow to:
1.Link a microsoft access database to asp.net
2.Write some line of code to make it run and open another page on a button click.
thanks
|
|
|
|