|
Student_id Name_student Marks
15555 gg
15556 cc
15557 ss
INSERT
Let me explain once so student_id and name_student I select them from my BD and column marks is in editmode ;I need to insert marks students( values column marks)just with a Cliq button.
thanks
|
|
|
|
|
Hi;
i havn't solution
Each teacher will have the GridView before him he should write notes of all students, and then save them in the db .The problem is how to store this data just by clicking a button (not for each student but the list).
Update the column is possible :
1 foreach (GridViewRow row in GridView1.Rows)
2 {
3 sb.Append("UPDATE EPREUVE SET NOTE = '");
4 sb.Append((row.FindControl("txtLastNote") as TextBox).Text);
5 sb.Append("'");
6 sb.Append("WHERE ID_ELEVE = ");
7 sb.Append(Convert.ToInt32((row.FindControl("lblUserID") as Label).Text));
8
9 sb.Append(" and CODE_MATIERE=");
10
11 sb.Append(Convert.ToInt32((row.FindControl("lblfield") as Label).Text));
12 sb.Append(" and CODE_ANNEE_UNIVERSITAIRE='" + DropDownList1.SelectedItem + "'");
13 sb.Append("");
14
15 sb.Append("");
16
17 sb.Append("");
23 }
24
I try to do the same thing to insert
|
|
|
|
|
Hi Friends,
I want to change password in active directory but because of password constraint violation i am not able to do so.
so i want to change password policy through .net.
Thanx in advance.
Reasons are not Important but Results are Important.
Swati Tripathi
|
|
|
|
|
Why - would it not be easier to get the admin to change the policy...? Or put in a valid password...
|
|
|
|
|
Here i am trying to convert grid data into pdf format.
when i am running i am getting the following error.
Acrobat reader
'File does not begin with %PDF-'
Here is my code on button click event,on page load i am filling datagrid(dg) with data
Response.ContentType = "application/pdf"
Response.Charset = ""
Me.EnableViewState = False
Dim tw As System.IO.StringWriter = New System.IO.StringWriter
Dim hw As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(tw)
dg.RenderControl(hw)
Response.Write(tw.ToString())
Response.End()
Can anybody solve my problem.
i want to write griddata into pdf format.
i am using .net 1.1.
kissy
|
|
|
|
|
I THINK..... you cannot convert the datagrid information to PDF directly. we need some third party tool
|
|
|
|
|
if u have any idea just post the code/link.please
kissy
|
|
|
|
|
use this code
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", strReportName);
Response.AppendHeader("content-length", Result.Length.ToString()) ;
Response.BinaryWrite(Result);
Response.Flush();
Response.Close();
this will render the data in the grid(result) to pdf
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
in the above code what is strreportname and result.
I dont want to use anytype of report or third party control.can it be possible?
kissy
|
|
|
|
|
Hi Friends
I want to set an image that it is in the ImageFolder In Root of my web
project to an Image control(Image1) in codding :
Image1.ImageUrl = Server.MapPath("~/ImageFolder/fl_61.jpg");
But is's not set !
I Should say that if I set the same image with the ImageUrl Property
it's work succesfully.
|
|
|
|
|
try this
Image1.ImageUrl = Server.MapPath("ImageFolder/fl_61.jpg");
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
In both way :
1-Image1.ImageUrl = Server.MapPath("~/ImageFolder/6ib7k9.jpg");
2-Image1.ImageUrl = Server.MapPath("ImageFolder/6ib7k9.jpg");
The Image Control affect but not Open the image !
|
|
|
|
|
lesae check image path by right clicking image and seeing property and check the path
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
I Look That's AddressUrl was Not Available
|
|
|
|
|
Hi all i want to import contacts from Orkut,FaceBook...etc plz send me any help.....
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
hai.
currently i m using asp.net with vb (2.0 framework).
here i have created a gridview and values has been populated.
for the column starting from 3 (the end column, i will specify in my
for loop), i want to make the values as hyperlink, so that if user clicks that link it will redirect to a particular page (all links will redirect to same page). here the columns which is binding to gridview is also dynamic.
So how can i achieve it?
Help me! - KARAN
modified on Monday, September 22, 2008 11:35 PM
|
|
|
|
|
Hello friends
My aim is to change the label text dynamically which is present in the header of a accordian pane
If any one knows it then please do let me know
thanks and regards
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
add control in Headr tag like Label and in code
finc that control from pane and set therrir text
like
Label lblheadertext=LeftBarPane1.FindControl("Id");
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
thanks i have written that code but was giving the id wrong
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
please chk the syntax and line of code .... that logic works 100%
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
Dear ALL,
I want to make javaScript to make new row in gridView control,
is it possible when new row added correctly with naming that grid Used like this
to be access by server side ??
---------------
this view source of row in orignal gird
<tr style="color:#000066;">
<td align="left">5</td><td align="center">
<span style="position: relative"><input id="GridView1_ctl06_RadioButton1" type="radio" name="GridView1$ctl06$GR" value="RadioButton1" /></span>
</td><td align="center">
<span style="position: relative"><input id="GridView1_ctl06_RadioButton2" type="radio" name="GridView1$ctl06$GR" value="RadioButton2" /></span>
</td><td align="center">
<span style="position: relative"><input id="GridView1_ctl06_RadioButton3" type="radio" name="GridView1$ctl06$GR" value="RadioButton3" /></span>
</td><td align="center">
<span style="position: relative"><input id="GridView1_ctl06_RadioButton4" type="radio" name="GridView1$ctl06$GR" value="RadioButton4" checked="checked" /></span>
</td>
</tr>
------------------------------------------------------------------
this new row that i can done
<tr style="color:#000066;">
<td align="left">newID</td><td align="center">
<span style="position: relative"><input id="GridView1_ctl07_RadioButton1" type="radio" name="GridView1$ctl07$GR" value="RadioButton1" /></span>
</td><td align="center">
<span style="position: relative"><input id="GridView1_ctl07_RadioButton2" type="radio" name="GridView1$ctl07$GR" value="RadioButton2" /></span>
</td><td align="center">
<span style="position: relative"><input id="GridView1_ctl07_RadioButton3" type="radio" name="GridView1$ctl07$GR" value="RadioButton3" /></span>
</td><td align="center">
<span style="position: relative"><input id="GridView1_ctl07_RadioButton4" type="radio" name="GridView1$ctl07$GR" value="RadioButton4" checked="checked" /></span>
</td>
</tr>
----------------------------------------------------------------------------------------------
Yes. CreatiVity withOuT limiTs
|
|
|
|
|
Hi.
I've used a flash menu in my web page, but when viewing the page, when mouse goes over the menu a white border appears around the flash, and its buttons are not clickable.
but when once clicked on the menu all become normal. I set the border of it 0, but nothing changed.
Best wishes
|
|
|
|
|
Dear Friends,
I am frequently come across error called "System.OutOfMemoryException".
whent this error come I need to restart my server.
I search on google it suggested that iis memory get full.
My concern is what cause this memory get full and how to avoid this error.
THANKS IN ADVANCE.
|
|
|
|
|
Generally the cause of this is:
Reading large data sets into memory.
Creating excessive cache entries.
Uploading or downloading large files.
Excessive use of regular expressions or strings while parsing files.
Excessive view state.
Too much data in session state or too many sessions.
Maybe if you are using Reports it may sometimes eat up the whole memory. Increase the memory of IIS and also do optimisation to your code so that you dont use much of your server space ....
Abhishek Sur
|
|
|
|
|
Your application might be written poorly. Some tips
1 - Avoid using DataSet/DataTable for reading data. Use DataReader and fill your custom collection classes.
2 - Use paged results
3 - Always call Dispose method on types which implements IDisposable . You can wrap it inside a using block which calls Dispose automatically when scope ends.
|
|
|
|