|
]]>,
]]>,
]]>,
]]>,
]]>,
]]>,
]]>,
]]> and
]]>
Regards,
LEE
|
|
|
|
|
You can google it and get complete documentation for all these.
|
|
|
|
|
|
Hi,
i have one project named P1 with lot of forms and usercontrol and one usercontrol named Login control.One more project is there .i want to use the usercontrol Login control in p1 to this project .how can i do that?
This is a asp.net Project not windows applivcation
Can anyone help me.It is urgent
With regards,
Anu
|
|
|
|
|
First add into the solution explorer and then drag drop into the form.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Hi,
How can i add it into the solution Explorer
Anu
|
|
|
|
|
Is this a user control(ascx file) or server control ?
|
|
|
|
|
|
Then it's not possible. You need to add that control to your project and use it.
|
|
|
|
|
Following is the code , i am doing , but the error is occuring while the execution of last line.
Error
A generic error occurred in GDI+.
Where I am doing wrong
SqlConnection con = new SqlConnection(connectionstring);<br />
con.Open();<br />
SqlCommand cmd=new SqlCommand();<br />
cmd.CommandText = "spSelect_a";<br />
cmd.Connection = con;<br />
cmd.CommandType = CommandType.StoredProcedure;<br />
DataSet ds = new DataSet();<br />
SqlDataAdapter ad = new SqlDataAdapter(cmd);<br />
ad.Fill(ds);<br />
byte[] b = (byte[])cmd.ExecuteScalar();<br />
MemoryStream ms = new MemoryStream();<br />
ms.Write(b, 0, b.Length);<br />
Bitmap bmp = new Bitmap(ms); <br />
bmp.Save(Response.OutputStream,ImageFormat.Bmp);
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Pankaj Garg wrote: A generic error occurred in GDI+.
What does the InnerException says ?
|
|
|
|
|
This is he only exception i am getting , the external exception was handled by the user code , was written on the Exception title.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
I think this code will work just try it. And let me know it's working or not just change image format as per requirement and variable name and also that database fieldname.
Response.Clear();
Response.ContentType = "image/jpeg";
System.Drawing.Image image = null;
Cmd = new SqlCommand("SELECT fieldname FROM tablename where field='" + id + "'", Con);
Cmd.CommandType = CommandType.Text;
SqlDataReader Dr = Cmd.ExecuteReader();
if (Dr.Read())
{
byte[] imageData = (byte[])Dr[0];
MemoryStream memStream = new MemoryStream(imageData);
image = System.Drawing.Image.FromStream(memStream);
image.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
}
|
|
|
|
|
Hi All,
I involved in developing a small web site. I need to filter Questions and it's answers from DataBase into asp.net pages, every page contains just 3 Questions and it's answers, and others questions will be filtered into new pages generated automaticaly according the number of Questions in the database. I need some tips or any idea or topics talking about this.
all Regards
Mr.Wonderful
|
|
|
|
|
Why do you need to create different pages? If you are developing with ASP.NET 3.5, you could use a ListView with paging support to display questions in groups of 3 and allow the user to navigate between the groups of questions using standard paging controls.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
pmarfleet wrote: If you are developing with ASP.NET 3.5, you could...
That's nice. Now, what if he isn't using 3.5?
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: Now, what if he isn't using 3.5?
He didn't specify which version of the framework he was using. In the absence of this information, I would have to assume he was using the latest version, i.e. v3.5.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Wait a minute guys, don't bother. I didn't determine which version of framworke I used, because I Suppose 3.5 a new version, and many Developers (maybe) still doesn't used it including me. I still using Version 2. anyway this is a task assigned to me not my option, so if we say create panels at run time and filter just 3 Questions and it's answers into panel that will be created according the numbers of questions in run time with 2 buttons Next And Previous to navigate between panels.
by the way, how we can make these buttons appears in each panel and take this answers(I mean take it's value True or False when clicking on the next button, I determine in the database the right answer), maybe we talking here about QueryStrng or similir, any help please.
thanks in advanced
Mr.Wonderful
|
|
|
|
|
pmarfleet wrote: I would have to assume he was using the latest version, i.e. v3.5.
You what they say about assuming.
If you are in the business you know that the vast majority of development shops have not taken up 3.5 yet.
BTW, very mature to vote down the posts because they point out your deficiencies.
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: If you are in the business you know that the vast majority of development shops have not taken up 3.5 yet.
Like I said, the OP didn't specify which version of the framework he was using. I suggested that if he was using v3.5 of the framework he could use the ListView control. This was intended to open a dialogue with the poster, where I could have explored other options if he wasn't using this version.
Mark Nischalke wrote: BTW, very mature to vote down the posts because they point out your deficiencies.
I didn't vote down the posts, and I resent the accusation that I did. Maybe I'm not the only one guilty of making assumptions .
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
You could use the same control, say a Panel, to insert the text as needed. You don't really need to create separate pages.
BTW: This doesn't require 3.5
only two letters away from being an asset
|
|
|
|
|
hi every body i am trying to do something like this
i have two dropdown list
1. category
2.level belonging to that perticular category
so i want to display them 3 times but only 1 time they will be visible initialy and if i press [add onother ] button then second one will be visible vice vesa with [delete] button to remove second one and similar with thirs one....if i m not clear
http://msn.careerbuilder.com/jobseeker/resumes/postresumenew/postresumestart.aspx please title resume and put any text in resume text and on next page u will see experience category and years of experience in ....with add another and delete button ...
please help as soon as possible
thanx in advance
appu
|
|
|
|
|
Member 4065472 wrote: http://msn.careerbuilder.com/jobseeker/resumes/postresumenew/postresumestart.aspx
If you look at the source for this page, you can see that the showing/hiding of controls is done using javascript. Just download the .js files referenced in the page if you want to understand how the code works.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi Friends,
I new to vb.net. In c#.net in GridView i use RowDataBound method and make a check if commandname is Delete i catch the linkbutton(Delete) by FindControl and on Click i give javascript method for Confirm. If Ok it goes to RowDeleting else Cancel.
I am trying something same in vb.net for DataGrid.
The button in DataGrid is
<asp:ButtonColumn Text="??a??af?" ButtonType="PushButton" CommandName="Delete"></asp:ButtonColumn>
Any idea how can Throw a Confirm Message on Click of This button?
Any help would be greatly appreicated
Thanks
Cheers
Menon
|
|
|
|
|
VB.NET is just like C#, except for the lack of ; and more verbose, and less challenging
In either case, rather than requiring a postback to inject javascript code into the page to display a confirm dialog, you could just use a template button to contain a simple button control and specify the javascript.
<asp:Button runat="server" onclick="return confirm('Do you want to delete?');">
only two letters away from being an asset
|
|
|
|