|
RX Maverick wrote: I would like to use this with AJAX but in doing so I can't have it in a form element
Really? I thought that could be done. You have the calendar in an UpdatePanel, which would be in a <form> element, right?
|
|
|
|
|
Hello,
I am trying to create a simple webpage which displays a image from a record in my mysql (v4) db. Im using asp.net c#.
I found the article on this site name "Storing Images in MySQL using ASP.NET" however I am really having trouble getting the example to compile.
Does anyone out there know of any other good examples or tutorials I can follow? Has anyone done this before that could give me some guidance?
Thanks for your time.
|
|
|
|
|
Hello tmoney101,
its very simple. Define a HttpHandler for drawing images, define it in your web.config file in httphandler section <httphandlers>... Read the image from your DB, give the right ContentType and send the image data with Response.BinaryWrite().
|
|
|
|
|
Hey thanks heaps for your reply. I have started to read up on those techniques you have given me, however I am unsure if that link you gave me points to a reference webpage? When i follow the link it takes me a safe2web page that has no coding!
Thanks again.
tmoney101
|
|
|
|
|
Sorry, that was only a signatur.
Here you can find samples about implementing simple IHttpHandler:
http://www.codeproject.com/aspnet/domainforward.asp
http://www.15seconds.com/issue/020417.htm
|
|
|
|
|
Hi!
I would like to thank Mike Elliott for his nice example and program for IE Tree View Web Control for ASP.NET 1.1 and Client Scripts Overriding to stop posting back.
It's great.
But, I got stuck to the following enhancements:-
1. How can I implement Expand All and Collapse All features to the tree?
2. Finding the node data that matches the user input into a text box and based on the matches found the hierarchy to these node should be expanded.
3. How to stop Mozilla or Safari browsers to posting back the page?
Thanks
Tonmoy Roy
|
|
|
|
|
Where is the article from Mike Elliot which explains IE tree View. I have been looking for an article of this nature for quite some time since I wanted to create a webpage which displays databases record (by topic) in a tree view. I had post a question asking how to do this but unfortunately did nto get a response. It would be greatly apprecaited if you can point me to Mike's article.
Skan
Coding makes the world go round!!!
|
|
|
|
|
|
HI
Guys can any one please let me know the considerations to be kept in mind while making data acces layer for ASP.NET Web application, reply me ASP,
Thankx in advance for ur replies.
|
|
|
|
|
King Shez wrote: reply me ASP
That's a sure way to have your message ignored.
Your question is a very broad one. Can you narrow it down a bit? What specifically are you having problems with?
|
|
|
|
|
Hello I need edit one field in gridview but I do not wish to use the standar button of update, I need that the field can be edit same that a checkbox and I need that when the user change of row this change update automatic without botton of update.
Thanks very much
|
|
|
|
|
Please don't cross post. We have asked you before.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Please don't cross post. We have asked you before.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Sorry my english is very poor, I don´t understand. Can you repit this with other words?
thanks and sorry.
|
|
|
|
|
Hi,
I try to create a CompositeDataBoundControl based custom control like this MSDN example.
On first call this page is correctly loaded, CompositeDataBoundControl too.
But on postback the CompositeDataBoundControl is empty.
How can I use automatic ViewState saving and loading for restoring inner table state on postback ?
Loutre Maline
|
|
|
|
|
In this case, you simly a child control such as Label to store data and the Text property of the control can be restored from the ViewState. Another important thing that you should remember is that you only set (or bind) data to the child control after it is added to the parent control.
protected override int CreateChildControls(IEnumerable dataSource, bool dataBinding)
{
table = new Table();
Controls.Add(table);
int count = 0;
if (dataSource != null)
{
SimpleSpreadsheetRow row;
IEnumerator e = dataSource.GetEnumerator();
while (e.MoveNext())
{
object datarow = e.Current;
row = new SimpleSpreadsheetRow(count, datarow);
TableCell cell = new TableCell();
Label lbl = new Label();
cell.Controls.Add(lbl);
row.Cells.Add(cell);
this.Rows.Add(row);
++count;
if (dataBinding)
lbl.Text = datarow.ToString();
}
}
return count;
}
|
|
|
|
|
In fact my table doesn't contains any control. I'm just using Render méthod.
Here is the solution solving my problem :
- Rows must be added to table, even if dataBinding equals false (for creating controls tree), in CreateChildControls.
- Custom Rows (that contains informations to display) must override LoadViewState and SaveViewState methods to save informations.
|
|
|
|
|
loutremaline wrote: Why Table was not saved automatically in ViewState ?
By design, the table does not persist its contents in ViewState.
loutremaline wrote: On postback, dataSource is an object array with only null object. Is it normal ?
Yes, it is.
loutremaline wrote: Is line this.Rows.Add(row); must be executed even if dataBinding equals false ?
Yes. If you don't, the control is not created as exactly as it's last time viewed. Basically, you use the overload the CreateChildControls ( new in the ASP.NET 2) to build the control hierarchy and this method runs when you bind data to the control and on postback. The dataBinding parameter can tell you that you can build the child controls based on the real data source for the first time or from the dummy dataSource. Though the datasource contains all null values, it gives you the most important thing is that the size of the datasource. Based on this size, you can rebuild the table, row and cell....and add child controls like Label to the table and the Text property of the Label can be restored from the ViewState as soon as it is added to the control.
|
|
|
|
|
How can i add blog creation in my asp.net 2003 project.
deepjyoti
|
|
|
|
|
You might want to look around for open source blog software like SubText.
|
|
|
|
|
Hi everyone!
I have combo box and a button in one page,i need,if i select any text in combo box and click the button it should re-direct to another page,that page also in same solution.my all the combo and buttons are html controls.
pls someone help me to that.
|
|
|
|
|
Try to write a subject that says anything specific about the question. Almost every thread here is about someone wanting help with something, so that information is totally useless for distinguishing the thread from others.
If you want to use server code:
In the click event for the button, write:
Response.Redirect(NameOfTheComboBox.SelectedValue);
If you want to use client code:
In the onclick event of the button, write:
window.location=this.form.NameOfTheComboBox.options[this.form.NameOfTheComboBox.selectedIndex].value;
For either to work, the values in the items of the combo box needs to contain the URLs to use for redirection.
---
Year happy = new Year(2007);
|
|
|
|
|
you should change the como box and ... to server controls not html controls...
for doing that right click on your button or combo ... and click "run as server control" ... then double click on your button and go to its code and write response redirect code to connecting it to another page by clicking...
|
|
|
|
|
i'm delvelping a employee information system and i need help when i input my user in my sql table i want to input at the same in excel file i only know for this we use fstream object and i don't exactly know how to do that so anybody know plz help me
OuNy
|
|
|
|
|
Why don't you set your excel sheet to pull data from a query on the server and to automatically refresh when it is opened. Would probably be a little simpler than updating it every time - you'll run into problems if someone has it open when you add a user...
|
|
|
|