|
Oh, I do. I'm just a lot brighter than you are, and I know why employers do this. Perhaps if you stopped being such a jerk and actually got on with your job your employer might actually trust you a little bit more. You could, of course, resign and go somewhere where they are less stringent.
|
|
|
|
|
i am just so lonely this days
and you are much brighter then me , my father was right
i am a failure...
|
|
|
|
|
yftah1989 wrote: my father was right i am a failure...
But with determination and hard work you could change that.
I must get a clever new signature for 2011.
|
|
|
|
|
No, he couldn't. The websites that have the instructions are blocked.
|
|
|
|
|
Haven't done this in a long time, but I think this[^] is what you need.
|
|
|
|
|
|
All I get is Your request was denied because of its content categorization: Streaming Media, Media Sharing.
Anyone know how to bypass these website-blocking thingies?
|
|
|
|
|
Lots of people know how. That doesn't mean its right to do so. I used to think it was no big deal either, until I had to support over 70 retail locations and fix all the pcs that the mensa candidates we hire manage to screw up. Now that I'm on the other side of the fence, bypassing those filters and blocks give me an outright stroke.
There is a reason they are there, whether you agree with them or not. For example, we do not allow streaming at corp office where I actually work due to low bandwidth on our connection.( no there is no easy or reasonable way to upgrade since the powers that be built the office out in the dang boonies for some genius reason.)three or four people streaming and our voip phones will start dropping calls.
|
|
|
|
|
Whoooosh.
|
|
|
|
|
well not a total whoosh i meant to reply to the original and had a brain fart combined with a finger twitch...
|
|
|
|
|
gavindon wrote: combined with a finger twitch...
And they only get worse as the years go by. I've recently found myself tossing things across the room at random intervals. Obviously nothing particularly large, but wtf?
|
|
|
|
|
i thought random tossing of things across room was just a trait of trying to become a programmer? I mean I know I'm new to this but dang was I that far off?
|
|
|
|
|
I have a master page ( masterpage.master) that has 2 link buttons lnkbtn_save and lnkbtn_edit. I have 2 content pages ( product and customer). When the user is on customer.aspx and clicks the lnkbtn_edit I want the controls on the customer page to be enabled and when the user clicks lnkbtn_save, I want the customer data to be saved. Basically the linkbuttons click event needs to be handles in the content page.
learning for the fist process in this video ()[^] I could create a click event for one link button. How would I do this for two buttons.
Here is my code:--
masterpage.aspx.vb
Partial Class MasterPage
Inherits System.Web.UI.MasterPage
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub lnkbtn_save_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
End Sub
Public ReadOnly Property Masterbtnsave() As LinkButton
Get
Return lnkbtn_Save
End Get
End Property
End Class
customer.aspx.vb
Partial Class customer
Inherits System.Web.UI.Page
Protected Sub Masterbtnsave_Click(ByVal sender As Object, ByVal e As System.EventArgs)
MsgBox("from customer page")
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
AddHandler Me.Master.Masterbtnsave.click, AddressOf Masterbtnsave_Click
End Sub
End Class
My question is: in the masterpage code behind I am returning the actual name of the lnkbutton in the property, how can I make this such that it returns the name of the button that was clicked. And then in the content page based on the button that was clicked some code is executed.
Any help will be appreciated
|
|
|
|
|
There is also an abstract approach. I am new to classes and delegate events, kindlt explain in detail to a beginner.
|
|
|
|
|
How can I make the asp net toolkit's MaskedEdit accept foreign characters like á,â,ç? If I configure the mask property with the character L, it will accept only letters but with no foreign character.
The only way I could make it accept these characters was by setting the filtered property to:
Filtered="áéíóúâêôãõç ÁÉÍÓÚÂÊÔÃÕÇ"
and the mask property to:
Mask="A"
Is there a simpler way to do it?
Peterson
|
|
|
|
|
Need some suggestion, how should i achieve this?
user have data in excel file?
this data i need to update on DB.
Yes, i can process excel file, and dozen of articles exist on web.
What i need to know, can i provide copy paste functionality ?
Like you copy from one excel file paste on another?
Just like is it possible to copy data from excel file and paste it on ASP.NET control (Datagrid)
or any other control?
If possible then, please tell me path i follow?
|
|
|
|
|
This[^] may help.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
|
Hello guys..
I've been searching for a solution of my problem weeks ago but it did not work out.
My problem goes like this:
I am using a gridview and use a sqldatasource to retrieve the data in database to display the questions that the users need to answer. Then, i add new column for answer column where in that column, i put a radiobuttonlist with Yes/No options.
I have been used the sqldatasource to retrieve the data earlier, so of course it is impossible to use one more sqldatasource to save the answer entered by the users. for your information, the answer column is from different table in same database with the question table. How is it to make possible to retrieve the data and save the data in different table in gridview?
Please, i really need your help..
Thanks for your time.
|
|
|
|
|
Hi snamyna,
As far as i know, in your problem, u can combine these two tables into one if they used QuestionId as primary key and if
there is only one Answer for each Question in your database tables.
If don't want to combine, here is some suggestion.
you can use three temp DataTables : one for question and another one for answer.
and final one for combination of both. u must declare SqlDataAdapter to Fill the DataSet and to Update them back.
see example in : here[^] and here[^]
DataSet dsTable = new DataSet();
adapter.Fill(dsTable);
DataTable dtQuestion = dsTable["Question"];
DataTable dtAnswer = dsTable["Answer"];
DataTable dtBind = dtQuestion.Clone();
dtBind.Columns.Add("Answer",System.Type.GetType("System.Boolean"));
for(int index=0;index < dtBind.Rows.Count;index++)
{
for(int j=0; j < dtAnswer.Rows.Count; j++)
{
if(dtBind.Rows[index]["QuestionId"].Equals(dtAnswer.Rows[j]["QuestionId"])
{
dtBind.Rows[index]["Answer"] = dtAnswer.Rows[j]["Answer"];
break;
}
}
}
and bind it to gridview from codebehind file.(.asp.cs)
GridView1.DataSource = dtBind;
GridView1.DataBind();
you need to change your girdview databound column
<ItemTemplate>
<asp:RadioButton ID="rdbYes" runat="server" Text="Yes" Checked='<%# Eval("Answer") %>' GroupName="Answer" />
<asp:RadioButton ID="rdbNo" runat="server" Text="Yes" Checked='<%# !Eval("Answer") %>' GroupName="Answer" />
</ItemTemplate>
When u click Submit button(when post back occur),
u need to manually check every rows of Answer column(radionbutton ) in GridView .
declare Boolean variable and assign the value from one of radionButton .
need to save by using SqlDataAdapter with Update method.
And assign the result back to dtAnswer.Rows["Answer"];
adapter.Update(dsTable);
here[^] is an example of how to update.
Hope it works!
|
|
|
|
|
Hye ktrrzn..
Thanks for your reply but i have come out with the solution earlier where I just retrieve the data to insert to the gridview by using SqlDataSource, but for saving the other column in the gridview into the database, I am using Sql query in .vb file instead of SqlDataSource.
Now I got another problem where I want to display all data that has same max values. Do u have any idea where should I rewrite so that I can display all the data? I have debugging this code but there's no error. After running it, all the data came out was the same.
This is the overview of my data.
Career - Marks
Medical - 12
Sport Science - 12
Dietetic - 12
Optometry - 12
Physiology - 12
Medical Laboratory Technology - 12
Biomedical - 12
Audiology - 12
Forensic - 12
Veterinary - 12
The result that came out after running my code is :
Veterinary - 12
Veterinary - 12
Veterinary - 12
Veterinary - 12
Veterinary - 12
Veterinary - 12
Veterinary - 12
Veterinary - 12
Veterinary - 12
Veterinary - 12
So how to display all different careers with the same marks?
This is my vb code.
Dim connString As String = "Data Source=AINA-PC;Initial Catalog=LaluanKerjaya;Integrated Security=True"
Dim con As SqlConnection = New SqlConnection(connString)
Dim kp As String = CType(Session.Item("KP"), String)
Dim noic As String = CType(Session.Item("NOIC"), String)
KPLabel.Text = noic
Dim cmdQuery As String = "SELECT count(Career) FROM Analysis WHERE Jumlah = (SELECT MAX(Marks) FROM Analysis ) AND UserID = '" + kp + "'"
Dim cmd As SqlCommand = New SqlCommand(cmdQuery, con)
Dim dr As SqlDataReader
Dim labelCount As Integer
Dim career As String
con.Open()
dr = cmd.ExecuteReader()
While dr.Read()
labelCount = dr.GetValue(0)
End While
dr.Close()
For i As Integer = 0 To labelCount - 1
' Create the label control and set its text attribute
Dim Label1 As New Label
Dim cmdQuery2 As String = "SELECT Career FROM Analysis WHERE Marks= (SELECT MAX(Marks) FROM Analysis ) AND UserID = '" + kp + "'"
Dim cmd2 As SqlCommand = New SqlCommand(cmdQuery2, con)
Dim dr2 As SqlDataReader = cmd2.ExecuteReader()
'con.Open()
While dr2.Read()
career= dr2("Career").ToString()
'Session("CAREER") = career
End While
dr2.Close()
Label1.Text = career
cmd2.ExecuteNonQuery()
cmd2.Parameters.Clear()
'con.Close()
Dim Literal1 As New Literal
Literal1.Text = "<br />"
' Add the control to the placeholder
PlaceHolder1.Controls.Add(Label1)
PlaceHolder1.Controls.Add(Literal1)
Next
cmd.ExecuteNonQuery()
cmd.Parameters.Clear()
con.Close()
|
|
|
|
|
hi snamyna,
I think you are looping unnecessarily twice.
Bcoz u already know the loop count of ur career that has Max marks
The only for loop is sufficient, u don't need while loop as usual.
I think, in ur mind, u confuse that SqlDataReader should be loop at the end of file.
it is correct for common. but in ur case, u already know the loop count.
Another problem is u assign the value dr2 to career (same variable) till the end of while loop
without adding to placeholder, after u finish career variable will hold last value of
dr2<br /> so, u end up with last value and when u add to PlaceHolder1 the Label1.Text is last value.
And then u loop again with For loop and start to query again, get the rows and while loop again
loop until to last value and end up with last value, assign it to Label1.Text with exactly the same value(last row).
So, as a suggestion, u juz re-arrange ur coding logic.
Here:
Dim cmdQuery2 As String = "SELECT Career FROM Analysis WHERE Marks= (SELECT MAX(Marks) FROM Analysis ) AND UserID = '" + kp + "'"
Dim cmd2 As SqlCommand = New SqlCommand(cmdQuery2, con)
Dim dr2 As SqlDataReader = cmd2.ExecuteReader()
'con.Open()
For i As Integer = 0 To labelCount - 1 '
' Create the label control and set its text attribute
Dim Label1 As New Label
dr2.Read()
career= dr2("Career").ToString()
Label1.Text = career '
Dim Literal1 As New Literal
Literal1.Text = "<br />"
' Add the control to the placeholder
PlaceHolder1.Controls.Add(Label1)
PlaceHolder1.Controls.Add(Literal1)
Next
dr2.Close()
If u query is right, the problem is the order of ur coding logic.
Hope it works!
|
|
|
|
|
Thanks! That works very well. sorry to be so you-know-what. Thanks again!
|
|
|
|
|
Hi All,
I have one web application which is having asmx web service files(created using 2.0). Now i have added few svc files to the same web application.
Anyone please tell me, how do i convert this application to ASP.NET Web Service Application (3.5)
I have seen a option, where you can "Convert to web Application" option for Web Service Applications. But I need vice versa procedure.
pleeeeeeeeeeeeeease help me.
Ramana
|
|
|
|
|
Hi Gurus,
This is the situation:-
I have a master page (masterpage.master) that contains a save button (btn_save). There are 3 contentpages that inherit this master page, each content page needs to use the save button but use the procdure for the content page. How do I make this happen that when user is on contentpage1 and user clicks save button, the procedure to save for contentpage1 is executed.
I am new to .net and have searched the web but in vain. Will appreciate any help. I am using Vb.net ,kindly reply with code / explanation in vb.
Thanks
|
|
|
|