Member Avatar

Hai , I used gridview for student list , and export it to pdf. But the 2nd column is not need to export. I make the gridview's 2'nd column visible false. [CODE] GrdStudent.Columns[2].Visible = false; [/CODE] But pdf file contain this column. Can you help me to solve it. Regards, sreevidya

Member Avatar
+0 forum 6
Member Avatar

Hai, I Have an sp like this: [CODE]ALTER procedure [dbo].[SP_ClassInsertion] @ClassType varchar(50), @ClassTypeId varchar(50), @ClassName varchar(50), @SchoolId varchar(50), @ClassID varchar(50), @BatchId varchar(50), @Userid uniqueidentifier, @ClassCategoryId varchar(50), @SchoolClassCategoryId varchar(50) as declare @STATUS int begin if exists(select Class_Id from SCH_Class where Class_Name=@ClassName and School_Id=@SchoolId and Is_Valid=1) begin set @STATUS=0 end else begin insert into SCH_Class (Class_Id,Class_Type_Id,Batch_Id,School_Id,Class_Name,Created_Date,Updated_Date,Created_By,Updated_By,Is_Valid) values (@ClassID,@ClassTypeId,@BatchId,@SchoolId,@ClassName,GetDate(),GetDate(),@Userid,@Userid,1) set @STATUS=1 return @STATUS end [/CODE] Can u please help me to execute this sp and get the return value from it. Regards, sreevidya

Member Avatar
+0 forum 7
Member Avatar

Hai , I have a gridview containing datalist in it.In the datalist i placed 2 labels. My problem is that the content of the datalist not placed within a gridview row cell. The design and css used is: [CODE] <ItemTemplate> <td> <asp:DataList ID="DlistItem" runat="server" RepeatDirection="Horizontal"> <ItemTemplate> <div class="datalisthead"> <div style="padding-left: 20px; padding-top: 1px;"> <asp:Label ID="LblStaff" runat="server" Text='<%#Bind("Class") %>'></asp:Label> <br /> <asp:Label ID="LblSubject" runat="server" Text='<%#Bind("Subject_Name") %>'></asp:Label> </div> </div> </ItemTemplate> </asp:DataList> </td> </ItemTemplate> [/CODE] [CODE].datalisthead { width:150px; height:auto; border-right:1px; border-right-color:Black; border-right-style:solid; }[/CODE] Thanks in advance, Sreevidya

Member Avatar
+0 forum 2
Member Avatar

hai , I used LINQ in application. I want to perform batch update. For that i used the code as: [CODE] int[] istudentId = new int[]; int j = 0; for (int i = 0; i < GrdStudent.Rows.Count; i++) { if ((GrdStudent.Rows[i].FindControl("chkSelect") as CheckBox).Checked) { istudentId[j] = ObjStudent.Student_Id; j++; } } DataContext ctx = new DataContext(); ctx.ExecuteCommand("update SCH_Student_Promotion_Master set Class_Id='" + DdlClassTo.SelectedValue + "' where Student_Id in('" + istudentId + "')", "", ""); [/CODE] but i got some Error like: Conversion failed when converting the varchar value 'System.Int32[]' to data type int. Thanks in advance Sreevidya

Member Avatar
+0 forum 1
Member Avatar

hai, I want an expression for all alphabets and some special characters like . - ' etc. I use an expression like ^[-_'.,A-Za-z]* but it doesnt contain '. can i get a correct expression for this. Thanks in advance Sreevidya

Member Avatar
+0 forum 1
Member Avatar

Hi, How can I delete duplicate records from a table in a single query. Thanks in advance.

Member Avatar
+0 forum 6
Member Avatar

Hi, I have web page containing 4 ImageButtons for get new id,delete a record,edit the record and save a record.The three of them worked correctly. But when clicking on the save button, a message of microsoft internet exolorer displayed like this: The Web Page you are Viewing is trying to close the window. Do you want to close the window? If I click on 'No', the Save button Works its function. What is the reason for it? How can i overcome this problem? Hope you can help me. Thanks in advance.

Member Avatar
+0 forum 6
Member Avatar

Hi, I stored a file in the folder taht selected using file upload control. When I tried to view this content from that folder I got an error like this. Cannot find the C:\Documents and settings\Terapc\LocalSettings\temporary Internet Files\Content.IE5\6AJ9DNHZ\name.txt file Do you want to create a new file? The code I used to view this file is: [code=asp.net]if (file.Exists) { Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name); Response.AddHeader("Content-Length", file.Length.ToString()); Response.ContentType = "application/octet-stream"; Response.WriteFile(file.FullName); Response.End(); } else { MsgBox1.alert("The file does not exist"); }[/code] Hope you can help me. Thanks in advance.

Member Avatar
+0 forum 1

The End.