Hi check this like http://imar.spaanjaars.com/QuickDocID.aspx?QUICKDOC=223[^] bye timcyspet
Timcyspet
Posts
-
counter -
Error Messegehi is this your asp code check this bye timcyspet
-
Insert a dynamic image into aspxHi try this code
-
HTTP error 500 when creating a new ASP.NET ProjectHi r u using .netframework 1.0 if yes some installation copy having this problem then try to using any other installation copy OR Try to download framwork 1.1 or 2.0 from microsoft site and install in u r system bye Timcyspet
-
witdh of Dynamically generated BoundedC olumHi if it is non string column then pls ignore it it will automatically adject that bye timcyspet
-
free mail serviceHi I think this code will solve u r problem
Dim MailMsg As New Mail.MailMessage MailMsg.To = ToString MailMsg.From = FromString MailMsg.Cc = CCString MailMsg.Bcc = BCCString MailMsg.Subject = SubjectStr MailMsg.BodyFormat = Mail.MailFormat.Text MailMsg.Body = MailBody(Your Message) Mail.SmtpMail.Send(MailMsg)
bye Timcyspet -
witdh of Dynamically generated BoundedC olumHi try this
Function dgbind() DataGrid1.AutoGenerateColumns = False Dim con As New SqlClient.SqlConnection("connection str") Dim com As New SqlClient.SqlDataAdapter("Select top 10 LoginId,Password,Category from users", con) Dim Ds As New DataSet com.Fill(Ds) Dim dc As DataColumn For Each dc In Ds.Tables(0).Columns dc.MaxLength = maxSize(dc.ColumnName, Ds.Tables(0)) DataGrid1.Columns.Add(createBC(dc)) Next DataGrid1.DataSource = Ds DataGrid1.DataBind() End Function Function maxSize(ByVal str As String, ByVal dt As DataTable) As Integer Dim row As DataRow Dim i As Integer = 0 For Each row In dt.Rows If i < Len(CStr(row.Item(str))) Then i = Len(CStr(row.Item(str))) End If Next Return i End Function Function createBC(ByVal dc As DataColumn) As BoundColumn Dim bc As New BoundColumn Response.Write(dc.ColumnName) bc.ItemStyle.Width = New Unit(dc.MaxLength) bc.DataField = dc.ColumnName Return bc End Function
Bye timcyspet -
witdh of Dynamically generated BoundedC olumHi what send is a working code
DataGrid1.AutoGenerateColumns = False **Dim bc As New BoundColumn bc.ItemStyle.Width = New Unit(200) Dim bc1 As New BoundColumn bc1.ItemStyle.Width = New Unit(100)** Dim con As New SqlClient.SqlConnection("connection string") Dim com As New SqlClient.SqlDataAdapter("Select top 10 loginid,password from users", con) Dim Ds As New DataSet com.Fill(Ds) bc.HeaderText = "Login Id" bc.DataField = "loginid" bc1.HeaderText = "Passord" bc1.DataField = "Password" DataGrid1.Columns.Add(bc) DataGrid1.Columns.Add(bc1) DataGrid1.DataSource = Ds DataGrid1.DataBind()
bye timcyspet -
witdh of Dynamically generated BoundedC olumHi try this code
Dim bc As New BoundColumn bc.ItemStyle.Width = New Unit(100)
bye timcyspet -
required validationHi in aspx page For other buttons, which u need not be the couse for to trigger the validation function. use following properties in the tag CausesValidation="False" bye timcyspet
-
link button in a datagrid columnHi 1. use Template colume in the data grid 2. save the file name in the database use this code
code behind Dim keys As String = dg_topic_list.DataKeys(dg_topic_list.SelectedIndex) Dim RedirectPage As String = "../mentoring/mentortopics.aspx" If File.Exists("system path\files\" & data.ReturnDs(sql_str).Tables(0).Rows(0).Item("filename") & ".pdt") Then Response.Redirect("./files/" & data.ReturnDs(sql_str).Tables(0).Rows(0).Item("filename") & ".pdf") End If
bye timcyspet -
Web Application Deployment IssuesHi Read this and deploy you application this includes deployment of webapplication with crystal reports and MS sql 2000 Steps for Deployment of Wisdom Web application: 1. Install window 2003 Server , Web Edition with IIS 6 2. Install Microsoft SQL Server 2000 with Service Pack 3 or above 3. Install .NET Framework 1.1 Redistributable 4. Install Microsoft Data Access Component 2.8 5. Execute Generated SQL Script 6. Install webapplication Setup File. Deploying an ASP.NET Web Application The following procedures assume that you already have a web application or web services application ready for deployment. To deploy an ASP.NET Web application using the Crystal Report merge modules: 1. In VS .NET, open your web application and go to the View menu and select Solution Explorer. From the Solution Explorer, right-click you're web application solution and from the pop up menu, select Add then click New Project. 2. The Add New Project dialog box appears. Select Setup and Deployment Projects in the left pane and select Web Setup Project in the right pane. Click OK. 3. In the Solution Explorer, right-click the Web Setup Project and select Add then click Project Output… 4. The Add Project Output Group dialog box appears. Select Primary Output and Content Files to be added to your Web Setup project. When the Primary Output is added to the project, some detected dependencies will be added. If you are using the bundled version of Crystal Report 10, add: Managed.msm If you are using the full version of Crystal Report 10, exclude: dotnetfxredist_x86_enu.msm and dotnetcrystalreports.msm In both cases, the dotnetfxredist_x86_enu.msm and dotnetcrystalreports.msm dependencies should be excluded if it is not already. 5. In the Solution Explorer, right-click the WebSetup project and select Add then click Merge Module… 6. The Add Modules dialog box appears. Select the appropriate merge modules and add them to your project. Click OK. 7. From your WebSetup project, select the licensing merge module to display the properties. 8. Expand the MergeModuleProperties and enter a valid license key the in License Key Properties box. The license key is the 19-digit alphanumeric string you receive when registering Crystal Reports. Please note that this is not the 10-digit registration number. This is mandatory whenever you deploy a Crystal Reports for Visual Studio .NET application. 9. To build your Web Setup project, highlight and right-click your deployment packages (WisdomSetup) in the Soluti
-
setting row color of data repeater according to field valuesHi try to give bgcolor in TR tag bye timcyspet
-
asp.net stops working on win 2003Hi R u using SqlDatareader? if u r using pls check the sqlconnction getting closed bye timcyspet
-
How can i store the images to sql server database from asp.net webpages(using vbscript only)Hi open the file in binary stream store it in a binarystream pass as a parameter into stored proc i think this will do if u need exact code, feel free to reply bye timcyspet
-
How can i store the images to sql server database from asp.net webpages(using vbscript only)Hi open the file in binary stream store it in a binarystream pass as a parameter into stored proc i think this will do if u need exact code, feel free to reply bye timcyspet
-
asp.net stops working on win 2003Hi r u using lot of class? It may be due to memory over load. try use Garbage collection in ur program i think this will be the probs. bye timcyspet
-
storing images into sql server database from asp.net webformHi pls check this link http://dotnetjunkies.com/WebLog/abraham.mathew/articles/39751.aspx[^] bye timcyspet
-
How to retrieve and display Image from databasehi, try this http://dotnetjunkies.com/WebLog/abraham.mathew/articles/39751.aspx[^] bye timcyspet
-
How can i store the images to sql server database from asp.net webpages(using vbscript only)Hi there is two method to show image dynamiclly in the web screen 1. storing filepath in the database upload the file into a dir (image) when u want show the file use following code
../image/<%=filename%>
2. storing the image as image datatype image Variable-length binary data from 0 through 231-1 (2,147,483,647) bytes. bye timcyspet