|
|
Hi All!
I have VS2005 installed on my machine, i am unable to open resource file in the editor, When i click on the resource file to open it i get an error.
"operation could not be completed, unspecified error".
If someone is having some idea about this error?
Regards
|
|
|
|
|
There are 9 directive like <% Page %>, <%Assembly%>, etc can u give me the usage of all the directive.
Regards,
LEE
|
|
|
|
|
9 directive !!!!!!!!
Can i see that ?
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!
|
|
|
|
|
]]>,
]]>,
]]>,
]]>,
]]>,
]]>,
]]>,
]]> 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
|
|
|
|