|
Hi,
You will need to handle the initial population of the DropDownList in Page_Load, or another page event, as the SelectedIndexChanged event of the list will not get fired on the inital GET of the page.
Hope this helps...
Clean code is the key to happiness.
|
|
|
|
|
putting it in page load worked. Thanks for your help!!
|
|
|
|
|
hi .
can any one know a free or open source PDF library that support Unicode?
sepel
|
|
|
|
|
|
kindly tell me the coding to display thumnail of an image using csharp asp .net coding
|
|
|
|
|
amitbhatt wrote: to display thumnail of an image
Image.GetThumbnailImage should help you right?
I have also shared a few tips on System.Drawing API over here:
http://www.dotnetspider.com/kb/Article3446.aspx[^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Have you even tried searching? There are planty examples available.
only two letters away from being an asset
|
|
|
|
|
I have a login page made in ASP.NET C#.
i want to create a response for logout for example a void in the c# code that when the ?action=logout is attached to the end of the address this void should be ran.
Shimi
|
|
|
|
|
Use Request.QueryString["action"] to look for the value in the query string. The value returned is as string, which is null if the value was not present in the query string.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I want to show the query result in Html table view directly..
with this sql statements we can make html table view for 'select * from tab'..It is working in Oracle Console..How Can I execute it in VB.net
SET markup HTML ON
spool INDEX.html
SELECT * FROM tab;
spool off
SET markup HTML off
|
|
|
|
|
Have you even done a cursory search for displaying data on web pages?
only two letters away from being an asset
|
|
|
|
|
Please don't cross post. Pick one forum that is relevant.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I want to show the query result in Html table view directly..
with this sql statements we can make html table view for 'select * from tab'..It is working in Oracle Console..How Can I execute it in VB.net
SET markup HTML ON
spool INDEX.html
SELECT * FROM tab;
spool off
SET markup HTML off
|
|
|
|
|
You may need to get a ASP.NET/VB.NET book and read chapters on ADO.NET.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
HI All,
I m using ReportViewer Control in my WEB Application.
also i m using documentmapping in ReportViewer for Drilling the Reprts and ReportViewer is running on LOCAL MODE
I have captured the DocummentMap Event
in that event i filtered my Data and agiain i m Binding or Adding the FILTERD Data to My Report.
as on doing this Getting Error : Some parameters or credentials have not been specified
How should i bind my filtered data in DocumentMap Event show that My page should be without ERRORS and DocumentMAP Should be Present.
any example or Code will help me.
T&R,
bhaskar
|
|
|
|
|
I am trying to place a panel inside a table and place various contents in the panel. show below... EX: Placed a multiview - View - Calender in view
<br />
<table style="position: relative"><br />
<tr><br />
<td style="width: 150px"><br />
</td><br />
<td style="width:700px" height=auto><br />
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0"><br />
<asp:View ID="View1" runat="server"><br />
<asp:Calendar ID="Calendar1" runat="server" Style="position: relative"></asp:Calendar><br />
</asp:View><br />
</asp:MultiView></td><br />
<td style="width: 150px"><br />
</td><br />
</tr><br />
</table><br />
But the height is not increasing the calender is being displayed out side the panel when the page is loaded.
Please, help if anyone have a solution to this...
If not what other ways can i do this.
Jats
|
|
|
|
|
You code is working fine for me.
Check the other tags in the page.
Bhanu
|
|
|
|
|
selecting row from gridview and displaying it in other text boxes
|
|
|
|
|
And you forgot to type your query.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
here i am giving my code which basically save image to gif file.
System.IO.MemoryStream ms = new System.IO.MemoryStream(imageBytes);
System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
img.RotateFlip(System.Drawing.RotateFlipType.Rotate270FlipXY);
img.Save(fileName);
ms.Close();
here imageBytes hold byte of data and this code save whole data to a .gif file.
but i want know how can i save image with above code specifying dimension as a example 640*480.
so plzz manipulate my code in such a way as a result image can be saved with size called 640*480.
plzz give me a sample code or manipulate my code. plzz help urgent.
tbhattacharjee
|
|
|
|
|
I have tried like this,
Update following in function you have already. Sorry, the code is in VB.NET.
Dim myCallback As Drawing.Image.GetThumbnailImageAbort = New Drawing.Image.GetThumbnailImageAbort(AddressOf ThumbnailCallback)
Dim myBitmap As Drawing.Bitmap = New Drawing.Bitmap(img)
Dim myThumbnail As Drawing.Image = myBitmap.GetThumbnailImage(800, 600, myCallback, IntPtr.Zero)
myThumbnail.Save(IO.Path.Combine(Server.MapPath("."), "test.jpg"))
And also add the following callback function.
Public Function ThumbnailCallback() As Boolean
Return False
End Function
Reference: http://msdn2.microsoft.com/en-us/library/system.drawing.image.getthumbnailimage.aspx[^]
|
|
|
|
|
You can apply ScaleTransform opertaions to your image through the use of the Graphics object (Held within the System.Drawing namespace). The Graphics object is primarliy used for GDI+ drawing operations but also includes a number of transformation methods that should do what you require. You simply need to work out the required scale factor i.e. 480 / img.Height and then apply this using the Graphics object that has been created from your image.
Search for ScaleTransform with GDI+ and you should fined a load of articles on the subject.
Clean code is the key to happiness.
|
|
|
|
|
I have shared a few tips on System.Drawing API here:
http://www.dotnetspider.com/kb/Article3446.aspx[^]
Check out whether this is able to address your requirement also.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
identity impersonate="true" username="****" password="****;<br mode=" hold="
i'm allowing users to upload files to a specified folder the application is working offline greatly
but when i uploaded it it requests the username and password of the domain
so i added the identity impersonate="true" ......
but it gives the error :Parser Error Message: Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.
Any help please
Many thanks identity
modified on Tuesday, January 29, 2008 5:01:45 AM
|
|
|
|
|
Are you using Forms or Windows Authentication? if so you may need to use the location element to allow anonymous access to your upload folder. Links below:
MSDN - location Element [^]
MSDN Magazine[^]
|
|
|
|