|
Is the other page that's being opened an aspx page? If it is, you can try declaring an object type of formview in the popups code behind. For ex. FormView fv = new FormView();
fv = (FormView)this.Parent.FindControl("NameOfFormView");
fv.DataBind();
However, I used AJAX's modalpopupextender on an ascx User Control that was on my page, so I hope it will work for you too.
There is a possibility Parent may need to be in there more than once depending upon the levels.
|
|
|
|
|
Hi All,
I need to read image from the bitmap. I don't want to save it on to the server, but read directly from object in order to display it in image object . My code is:
HttpWebResponse response = request.GetResponse() as HttpWebResponse;
Stream stream = response.GetResponseStream();
MemoryStream ms = new MemoryStream();
BinaryWriter bw = new BinaryWriter(ms);
BinaryReader br = new BinaryReader(stream);
bw.Write(br.ReadBytes((int)response.ContentLength));
ms.Position = 0;
Bitmap fred = Bitmap.FromStream(ms) as Bitmap;
Now Please give me a solution to read the image from this bitmap.
D'kng
|
|
|
|
|
Are you making a windows application or a web application?
If you are making a windows application, you can just show the Bitmap in a picture box.
If you are making a web application, you are on the wrong track. To display the image in the browser you don't use a Bitmap object at all (unless you actually want to modify the image). What you read from the web request is an image file in form of a binary stream, and that is exactly what you send to the browser when it requests the image. However, you can't use the image stream in the same response as the page, you have to send it in a separate request. Make a separate page that gets the image and sends it as the response stream to the browser, and use that page as source in the image tag.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi Guffa,
Thanks for ur suggestion. I am using it on web application. I have written an HttpHander for the same, but it is not working on Firefox.Can u give me a quick solution.
Here is my handler.
public class FlyImage : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
System.Net.HttpWebRequest request = System.Net.WebRequest.Create("http://www.codeproject.com/SiteRes/CP/Img/Std/logo225x90.gif") as System.Net.HttpWebRequest;
context.Response.Clear();
context.Response.Expires = -1;
context.Response.ContentType = "image/gif";
context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
byte[] img = null;
System.Net.HttpWebResponse response = request.GetResponse() as System.Net.HttpWebResponse;
System.IO.Stream stream = response.GetResponseStream();
System.IO.BinaryReader binaryReader = new System.IO.BinaryReader(stream);
img = binaryReader.ReadBytes((int)response.ContentLength);
context.Response.OutputStream.Write(img, 0, img.Length);
}
public bool IsReusable
{
get
{
return false;
}
}
}
DK
|
|
|
|
|
d'kng wrote: but it is not working on Firefox
The code doesn't run in the browser, it runs on the server, so it's not really browser specific in any way. What specifically do you mean by "not working"?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi Guffa,
Now it is working fine. The code was OK but the only problem was due to my Default page. As when I changed my page name, it started working fine. Initially it was asking to download my Default.aspx Page. I don't know the reason but now it is working fine.
Many Thanks....DK
|
|
|
|
|
hi frnds,
I want to use Tab control in asp.net, i have VS2005. how can i do that ???
any idea abt tab control in asp.net ???
thankx in advnace
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
use tabindex to handle tabstops.
Abhishek Sur
|
|
|
|
|
Hi,
I had migrated ASP.Net 1.1 application to ASP.Net 2.0.
Somehow I could succesfully run the Migrated ASP.Net2.0 application and now the major issue is DEPLOYMENT.
After I publish, when I host the application in a webserver where there is only .Net Framework 2.0.I am facing errors(like file not found), when I trace I could see that the migrated solution is refering to the old ASP.Net 1.1 path.
and the application is not functioning perfectly its giving few errors.
NOTE: I migrated to ASP.Net Web Application of ASP.Net 2.0
please guide me.
|
|
|
|
|
Check for latest .net security patch update is available in ur server
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
http://www.javascriptkit.com/script/script2/triplecombo.shtml .. in this link the data for the dropdownlist (HTML control) is given thru option tag .. i wanted to fetch tht from a database .. how to do tht . can anyone pl help me with this ....
|
|
|
|
|
you have to had MDAC installed on the client in order connect to the database from client-side script. Then just use standard ADO.
But note that its not recommended, once the database will be in other machine than the client. It could be very slow or even not possible. not mentioning security issues...
Intelligence is almost useless for those who have nothing else!
Email: caiokf@gmail.com
|
|
|
|
|
Hi.
In servers (hosts for web application), Does create a windows user account for per web application?
when we give a host, there is a user account in windows for us?
Best wishes
|
|
|
|
|
I doubt anyone understands your question, including you. Please try to explain what you want to know - if its about web hosting with a 3rd party, you need to ask them.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi.
When I encrypt Web.Config using RSA, a key is generated and is placed in \Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys
But when I upload it the key is in my copmuter, how should I send the key to server?
Best wishes
|
|
|
|
|
You should do the encryption on the server.
|
|
|
|
|
Hi,
idont speek english well sorry!
I work with visual web developer 2005 for the 1st time and sqlserver2005 to achieve an intranet site for the service school.
Now what they are doing is that university is:
For each semester, the registration service write the names and num-registration ds register students this semester in an Excel worksheet for each level.
each teacher introduced the notes of his field for different students in a column (note_matière1 for example) of this spreadsheet excel.
they use Excel to calculate ways,..
I spent a lot of time to test a gridview but there is no possibility of inserting a column if I:
Num_inscription name marks_frensh
1077 ssss 12
1078 AAA 15
1079 kkkkk 16
To insert the notes they need me whenever select and then click update for each student and it is not practical !!!!!
I spent a lot of time with and excel without result.
I consulted a lot of forum was told than in the controls Infragistics, there is a grid like excel but I need the license !!!!!!!
how to insert an entire column marks by clicking on a button.
I dont know if I happened to explain this project or not.
Thank you very much,
Thanks again.
|
|
|
|
|
please explain what exactly u want... i am not getting u....
chat wt me i am online on
prashant_83@hotmail.com
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
Sorry i don't have a hotmail count my email is nature.fleur@gmail.com
|
|
|
|
|
Student_id Name_student Marks
15555 gg
15556 cc
15557 ss
INSERT
Let me explain once so student_id and name_student I select them from my BD and column marks is in editmode ;I need to insert marks students( values column marks)just with a Cliq button.
thanks
|
|
|
|
|
Hi;
i havn't solution
Each teacher will have the GridView before him he should write notes of all students, and then save them in the db .The problem is how to store this data just by clicking a button (not for each student but the list).
Update the column is possible :
1 foreach (GridViewRow row in GridView1.Rows)
2 {
3 sb.Append("UPDATE EPREUVE SET NOTE = '");
4 sb.Append((row.FindControl("txtLastNote") as TextBox).Text);
5 sb.Append("'");
6 sb.Append("WHERE ID_ELEVE = ");
7 sb.Append(Convert.ToInt32((row.FindControl("lblUserID") as Label).Text));
8
9 sb.Append(" and CODE_MATIERE=");
10
11 sb.Append(Convert.ToInt32((row.FindControl("lblfield") as Label).Text));
12 sb.Append(" and CODE_ANNEE_UNIVERSITAIRE='" + DropDownList1.SelectedItem + "'");
13 sb.Append("");
14
15 sb.Append("");
16
17 sb.Append("");
23 }
24
I try to do the same thing to insert
|
|
|
|
|
Hi Friends,
I want to change password in active directory but because of password constraint violation i am not able to do so.
so i want to change password policy through .net.
Thanx in advance.
Reasons are not Important but Results are Important.
Swati Tripathi
|
|
|
|
|
Why - would it not be easier to get the admin to change the policy...? Or put in a valid password...
|
|
|
|
|
Here i am trying to convert grid data into pdf format.
when i am running i am getting the following error.
Acrobat reader
'File does not begin with %PDF-'
Here is my code on button click event,on page load i am filling datagrid(dg) with data
Response.ContentType = "application/pdf"
Response.Charset = ""
Me.EnableViewState = False
Dim tw As System.IO.StringWriter = New System.IO.StringWriter
Dim hw As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(tw)
dg.RenderControl(hw)
Response.Write(tw.ToString())
Response.End()
Can anybody solve my problem.
i want to write griddata into pdf format.
i am using .net 1.1.
kissy
|
|
|
|
|
I THINK..... you cannot convert the datagrid information to PDF directly. we need some third party tool
|
|
|
|