|
hello sir
you are my proffessor so i ask you
help me
gayatri
Gayatri
|
|
|
|
|
niki_nilu wrote: you are my proffessor
Too late, you have missed the submission deadline. You get a 0 and will have to repeat the class.
only two letters away from being an asset
|
|
|
|
|
hi
don't tell me about datarelation.
because i know about it.
if you want then tell me.
gayatri
Gayatri
|
|
|
|
|
Finished the class already? Or maybe you just watch a Channel9 video. I bow to your expertise now.
only two letters away from being an asset
|
|
|
|
|
Hi All,
I have a dll that will be installed and called from clients' machines. This should upload files form these machines to a server. I don't want to upload files directly to the server location. I want to create an ASPX and put it on the server. Then the dll should contact this page and pass to it file stream. And the ASPX should recieve and save the files on the server. I don't know how to access the aspx page and make it do actions (save files) from the dll. Any ideas?
Thanks.
|
|
|
|
|
Hhmm, I´m not sure if I got you right.
The dll is on the client an uploads the file to the aspx?
So you can just post the file to the aspx:
<br />
private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
foreach(string file in Request.Files.AllKeys) <br />
{<br />
HttpPostedFile theFile = Request.Files[file];<br />
file.SaveAs(Server.MapPath("DestinationFolder") + "\\" + file.FileName);<br />
}<br />
}<br />
This should do the file-saving for you.
Why do you use a dll to upload a file? Did you had a look on MTOM[^]?(Awesome article!)
|
|
|
|
|
Hi this following site they discussed about login controls
<a href="http://www.dotnetjohn.com/articles.aspx?articleid=166">http://www.dotnetjohn.com/articles.aspx?articleid=166</a>[<a href="http://www.dotnetjohn.com/articles.aspx?articleid=166" target="_blank" title="New Window">^</a>]
I download that code and worked it,
In that i am getting error,
In <b>master page login and password recovery control place he used some thing like Submitbuttonstyle</b>:
<submitbuttonstyle font-names="Verdana" font-size="0.8em" borderstyle="Solid" borderwidth="1px">
BorderColor="#507CD1" BackColor="White" ForeColor="#284E98"></submitbuttonstyle>
Whats the need of that one?,
Becoz of that i am getting error,
Plz tell me abt that
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
modified on Thursday, February 21, 2008 6:23 AM
|
|
|
|
|
Hi All,
I have a datagrid with check box in each row at first column; our requirement is looks like hot mail and yahoo mail working system, after selected mail(s) using check box user can delete mail. In the same way, we would also develop functionality for edit, delete buttons only when checked row from the datagrid.
I have started like this, whenever I click on the edit button after I selected check box(s), I need to open a popup window only for the checked rows, for this I have created a session in first page and passing the parameters to second page (Popup).
Edit button
Dim rowCount As Integer = 0
Dim mySelection As StringBuilder = New StringBuilder
Dim DemoGridItem As DataGridItem
For Each DemoGridItem In DGWHPkg.Items
Dim myCheckbox As checkbox=CType(DemoGridItem.Cells(0).Controls(1, CheckBox)
If myCheckbox.Checked = True Then
rowCount += 1
mySelection.AppendFormat("'" & "{0}" & "'" & ",", DemoGridItem.Cells(2).Text)
End If
Next
lblChosen.Text = mySelection.ToString().Substring(0, mySelection. ToString().Length - 1)
Session.Add ("Chosen", lblChosen.Text)
Popup window
If Not Page.IsPostBack Then
Dim cScript As String
cScript = "<script language='javascript'> opener.location.href = 'WebForm4.aspx'; </script>"
RegisterStartupScript("parentwindow", cScript)
lblChosen.Text = Session.Item("Chosen")
Now the problem is only few times the session is calling from main page to child (popup) page.
How to add the session to next page, whenever the edit button clicked?
But I am unable to do it. Please suggest me how to solve it. Guidance for Delete button too.
Don't take any decisions when you are Angry,
Don't make any promises when you are Happy.
|
|
|
|
|
Hi Friends,
Anybody have a list of new features in 3.5 over 3.0.
I can get these details by searching in microsoft website or in google, but i do not have time its urgent for me so anybody alredy have a list of this features please send me immediately.
Waiting for response.
Thanks
Hari
modified on Thursday, February 21, 2008 7:01 AM
|
|
|
|
|
Kuricheti wrote: ...i do not have time its urgent...
Yet you have the time to ask the question here and wait for answer
only two letters away from being an asset
|
|
|
|
|
Hi Mark,
I am not waiting for reply Iam doing some other work para'lly ..anyhow thanks for ur reply..but I am just spending time to reply u because even if u didn't give solution no probs but don't give this type of answers its really time weasting to see these type of answers.
don't get heart..its my opinion.
keep smiling
bye
|
|
|
|
|
Even more time wasting to see this type of question
only two letters away from being an asset
|
|
|
|
|
in datagrid property builder, we can add delete,update,cancel buttons etc..
but how can i insert a button and write a separate coding for that.
for example, i want to include a "Validate button" (as like "delete" button) and write coding for this validate button.
What i tried is, already i inserted a Delete button. Again i inserted the Delete button and changed the CommandName to "Validate".
But for this particular Validate button, where should i write my coding.
when i click this validate button, i would like to write an Update query.
currently i m using ASP.NET with C# (version 2003, 1.1 framework)
Help me ....
-JOHN
|
|
|
|
|
i am writing the following line of code to left trim the textbox value in java script asp.net source code file
var sp = document.getElementById('TextBox1');<br />
alert(sp.value.length);<br />
var re = /^[\s]+/;<br />
sp.value.Repace(re , "$1"); <br />
alert(sp.value.length);<br />
return false;
The code is not trimming the left white spaces.
can somebody please rectify the problem?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Hi When i installed Vs2003,
I just create some web projects and to run that i will give
http://systemname/projectname/formname
So it will display consider page,
Now i installed vs2005,
I created one project,
If i give same like vs2003
Its giving error in webconfig file as Configuration Error:
<authentication mode="Windows">
Whats the probs?,
Plz any one help me
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
I am trying to bind a grid in when the user click on a button. What should happen in the button is this:
I have to txt boxes - last name, first name.
When the user clicks on the button, it should look up the last name entered in the txt box, retrieve the records if there are, and bind to the grid view. However, the results are not showing in grid at all. I created a test label which does show the values entered in the boxes. Here is the code. Thanks for reading and help.
cs code:
protected void btnFind_Click(object sender, EventArgs e)
{
string firstName = (string)txtFirstName.Text;
string lastName = (string)txtLastName.Text;
using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString))
{
conn.Open();
SqlCommand cmd = new SqlCommand("SELECT * FROM users_info WHERE last_name = @last_name", conn);
cmd.Parameters.Add(new SqlParameter("@last_name", lNAme));
SqlDataReader dr = cmd.ExecuteReader();
int rowsRetrieved = 0;
while (dr.Read())
{
Label1.Text = "The value is " + dr["last_name"] + dr["first_name"];
rowsRetrieved++;
}
if (rowsRetrieved >= 1)
{
GridView1.DataSource = dr;
GridView1.DataBind();
GridView1.Visible = true;
}
Console.WriteLine("{0} row(s) retrieved", rowsRetrieved);
dr.Close();
conn.Close();
}
aspx file:
<asp:Button ID="btnFind" runat="server" Text="find" OnClick="btnFind_Click" /></td>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:BoundField DataField="first_name" HeaderText="First Name" SortExpression="first_name" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="last_name" HeaderText="Last Name" SortExpression="last_name" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
</Columns>
</asp:GridView>
|
|
|
|
|
hi
in my asp application i am using a table to display record set data.
here how can i fix the table headers and sort the table body .Also sort the table body .it also gives the results.
Here main problem was if i use both at the same time.the headers are not fixed.it also scrolls with the content.how can i rectify this.
plz help me to solve the problem.
venkat
|
|
|
|
|
ASP or ASP.NET ?
Either way, you need two tables, one for the header, and one inside a scrolling div for the values.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Friends,
How are you,i have one doubt,i made a wrong update to my table and now i want to rollback the transcation,i have used sql query analyser.
Kindly please tell me the solution to rollback.
Thanks & Regards
Senthil Kumar
|
|
|
|
|
This is totally the wrong forum, this is a SQL question.
You can't, rollback is only possible within a transaction, that transaction has ended, and there's not going to be any command that works out what you did and undoes it. You'll have to work that out for yourself, or find a backup.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How to prevent entering a numeric value into a textbox using regular expression vallidator.I tried like that.But the numeric value will also be entered.I given the vallidation expression like that.Please help me.The vallidation expression given is ::ValidationExpression="^.{5,20}$".
|
|
|
|
|
As you've discovered, a regex validator, like all validators, doesn't work that way. It tells you if input is bad, it does not constrain it. For that, you will need to write javascript to reject keypresses that are not acceptable.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
To prevent entering numeri values using regular expression, validation expression is :
ValidationExpression="^[a-zA-Z ]$"
|
|
|
|
|
Hello Everbody,
A very good morning to all.Actually i got the query of my question.Anyway Thanks for your kind reply.
|
|
|
|
|
I have build by website and solution but any changes wether in code or design is not applying in browser.
Is it happening due to the Ajax Control or any other region i don't know
Plz tell me the solution
Thanks with anticipations
modified on Friday, February 22, 2008 1:16 AM
|
|
|
|