|
Thanks Satips.
But i am in USA. Herealso there are lot of Openings.
With Regards,
Sakthi
|
|
|
|
|
|
Thanks Sathesh.
With Regards,
Sakthi
|
|
|
|
|
|
Which language is better depends entirely on where, when, why and how you use them. Neither of your questions are specific enough to show any differences:
Sakthi Sat wrote: Question 1: Which language is given more preference c# or vb .net ?
That depends entirely on who you ask.
Sakthi Sat wrote: Question 2: Which is faster c# or vb .net ?
They both compile to IL code, and that code becomes identical for equivalent program code, so there is no speed difference in the compiled code. They both use the .NET framework, so there is no speed difference in library calls.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks Guffa.
With Regards,
Sakthi
|
|
|
|
|
|
That's like asking which religion is better. The correct answer depends on who you ask. The best language is the one you are most proficient in...in my opinion.
|
|
|
|
|
Hi guys,
I've been working on a simple user control that creates a table, filled with images from piecing together bits of HTML.
Using Response.Write() to display every line, this takes about 3-4 seconds to execute. The obvious problem with this is that the table appears at the top of the page, not at the position of the user control. Using a label and buffering all the HTML to a string takes around 2-3 times as long! No extra code or anything just something along the lines of...
<br />
string buffer = "";<br />
<br />
buffer+=...;<br />
buffer+=...;<br />
<br />
Label1.Text = buffer;<br />
What is causing this massive performance hit when making such minor changes and how can I get around it? Thanks.
FinnG -
|
|
|
|
|
Constantly appending to a string is very inefficient, and may be what is slowing it down. If you still want to use that approach, you may want to look into using a System.Text.StringBuilder, which will allow you to do that, but more efficiently.
HTH
|
|
|
|
|
When I have Forms authentication for my c# web application, is it possible to run an exe by impersonating the thread with logged in windows user.
At present, when I try to run an exe from the web application, it says "Access is denied".
Is it possible to run the exe without changing the web.config to windows authentication or changing the IIS Settings.
TIA
Ananth
|
|
|
|
|
Make sure EXE is having proper rights i mean a.exe should have all rights for ASPNET account....Try this but i am not 100% sure. We did something very similar to your req in our last year project. Thanks!!
|
|
|
|
|
Hi Amit,
The problem is solved. Actually I was able to execute the code without impersonating any user. I had written my process starting code as
1 using (process = Process.Start(psi))<br />
2 {<br />
3
4 }
Application was erring out at line 1. So I thought starting the process needs some permission to the user. Then by chance, I tried commented line 1 and started the process outside without using "using". It worked.
I do not understand why it fails when the process is started in "using".
If you know why using creates problem, do reply.
Thanks for your suggestion!
Ananth
|
|
|
|
|
Hello everyone,
I have created a custom webcontrol that extends from the repeater class and that uses a custom ControlBuilder class for parsing child elements. This is done so that each column in the list can be defined seperately within the .aspx page
Example:
<WebControls:CJIINList runat="server" ID="lstAreaAssignment">
<ListColumn header="Area Designation" datafield="area" type="link" action="ViewDetails.aspx?DocID={0}" actiondata="DocID" />
<ListColumn header="Shift" datafield="shift" type="dropdown" actiondata="1,2,3" />
etc...
</WebControls:CJIINList>
I was able to get this to work, but in the Visual Studio designer, the child elements are all tagged with the following error message:
Validation (XHTML 1.0 Transitional): Element 'listcolumn' is not supported
Is there any way to fix this? Also, I would like intellisense to pop-up the list of properties / attributes available to the ListColumn class like it does for the CJIINList webcontrol.
Any ideas / suggestions would be greatly appreciated...
Thanks!
|
|
|
|
|
I have done a Tab Approach in ASP.net with the help of javascript...
I have two tabs in my process..
On load Tab one is loaded.When i goto second tab its also loading finely.But
i click the submit button in tab2 it will redirect to first tab.
I have attached the image link here..
And also i have attached the file.....
http://img155.imagevenue.com/loc912/th_45113_Tab_02_122_912lo.JPG
http://img144.imagevenue.com/loc953/th_45110_Tab_01_122_953lo.JPG
Download the Code using this Link...
http://www.kirupa.com/forum/attachment.php?attachmentid=42974&d=1182316293
Plz Anybody...
Gnanavel
|
|
|
|
|
We need to see code, not screenshots.
How does your page store what tab is selected ? From what you've said, it doesn't sound like it does. If you add an asp:Hidden field in your page, you can store state info there, and viewstate will persist it between postbacks, just read it back in your javascript
Try writing more meaningful subjects, if you could, it really helps us to help you.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
<title>Tab
function frmSubmit() {
if( (document.get_quote.query.value).replace(/^\s+/g,'').replace(/\s+$/g,'')!="" && (document.get_quote.query.value).replace('Company name / code, MF name','')!="")
document.get_quote.submit();
}
.f10 {FONT-FAMILY: arial; FONT-SIZE: 10px;}
.f11 {FONT-FAMILY: arial; FONT-SIZE: 11px;}
.f12 {FONT-FAMILY: arial; FONT-SIZE: 12px;}
.headback {background:#6592CE;
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType ,StartColorStr:'#6592CE',EndColorStr:'#114EA0');color:#FFFFFF;cursor:pointer;cursor:hand;}
.headbacksel {background:#ffffff;color:#000000;border:solid 1px #b5d6ef;cursor:text;border-bottom:none;}
| |
|
<asp:button id="btn_sam" text="Submit" runat="server" onclick="btn_sam_Click">
| |
|
|
I attach the Code above please give a solution for me...
If you find any mistake in my subject please apology me...
The Problem is when i click the submit button in tab2 i will postback to tab1.
And i want to write some other submit action for the button.And i want to stay in the same...What can i do.
Give a clear solution for me....
Gnanavel
UI Desinger
P2softech
|
|
|
|
|
Hi Friends,
I have problem sending mail through ASP.Net.
whenever i try to send the mail from my server for which i have passed the details like smtp server and from address , i get an error that :
Mailbox unavailable. The server response was: <myemail@gmail.com> No such user here
But i have specified the from email address of my smtp server.
I have no clue that why is it searching for a gmail address on the smtp server.
I hope i am able to state my question/problem.
Thanks in advance.
Deepak Surana
|
|
|
|
|
What makes you think it's searching for gmail ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I was debugging the code and after the send mail function it throws an exception.
This is where i got to know it is searching for the other address
Deepak Surana
|
|
|
|
|
hi friends
i should do server side validation on two controls
by making use of if condition in aps.net 1.1
i should not use any validation controls instead i should make use of
if..else condition for performing validation..
i have a textbox and a drop down list box..
text box has new entry
dropdown list box has selected items present in it
now i should write the coding for validating as such user
can enter new one or can select one...
please suggest me the solution for this
regards,
gayathri
--------------------------------------------------------------------------------
|
|
|
|
|
Sounds like homework to me. What have you tried so far?
only two letters away from being an asset
|
|
|
|
|
I have a script that I can post to via a simple html form, but I can't figure out how to replicate the results with HttpWebRequest. Is there a way of getting the full functionality of a form submit via the HttpWebRequest?
Works:
Does not Work:
ASCIIEncoding encoder = new ASCIIEncoding();
string ifxLoc = "http://script-to-submit-to/login.dll?login";
string postData = "UserName=" + unme;
postData += "&PassWord=" + upswd;
byte[] data = encoder.GetBytes(postData);
HttpWebRequest s2oReq = (HttpWebRequest) WebRequest.Create(ifxLoc);
s2oReq.Method = "POST";
s2oReq.AllowAutoRedirect = true;
s2oReq.ContentType = "application/x-www-form-urlencoded";
s2oReq.ContentLength = data.Length;
Stream s2oStream = s2oReq.GetRequestStream();
s2oStream.Write(data, 0, data.Length);
s2oStream.Close();
Problem:
The HttpWebRequest seems to make a shallow connection to the login.dll, or doesn't fully follow through. I can't get it...working... in any way. It just returns the input of the html of the login page. Am I going about it in the wrong manner?
I also need a way to impliment the native redirect that's built into the simple form submit. If I use a response.redirect() after closing the stream, it is not the same.
Thanks!
-Roo
|
|
|
|
|
Hi,
I have the Gridview which is bound to DataTable. In the GridView I have one button Delete for each row , when clicking on button the row need to be deleted from gridview.
private void BindGrid()
{
GridView1.DataSource = GetDataSource();
GridView1.DataBind();
}
protected System.Data.DataTable GetDataSource()
{
// const string key = "MyDataSource";
System.Data.DataTable aTable = new System.Data.DataTable();
aTable = (System.Data.DataTable)Session["dta"] ;
if (aTable == null)
{
aTable = CreateDataTableA(); -- In this CreateTable I am creating one DataTable and returning it.
Session["dta"] = aTable;
}
return aTable;
}
protected void GridView1_RowDeleting(object sender,GridViewDeleteEventArgs e)
{
int id = Convert.ToInt32( (GridView1.Rows[e.RowIndex].Cells[0].Text.ToString())); -- This statement containg null value always. This is giving exception because of this Null value.
FindRowByID(id).Delete();
BindGrid();
}
private DataRow FindRowByID(int id)
{
DataRow[] rows = GetDataSource().Select("District_ID = " + id.ToString());
return rows[0];
}
How to get the row’s cell value when delete button is clicked.
My Gridview syntax is like this:
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="False" onrowdeleting="GridView1_RowDeleting">
<columns>
<asp:templatefield headertext="District_ID">
<edititemtemplate>
<asp:textbox id="TextBox1" runat="server">
<itemtemplate>
<asp:label id="Label1" runat="server" text="<%# DataBinder.Eval(Container.DataItem, "District_ID") %>" width="115px">
<asp:templatefield headertext="District_Name">
<edititemtemplate>
<asp:textbox id="TextBox2" runat="server">
<itemtemplate>
<asp:label id="Label2" runat="server" text="<%# DataBinder.Eval(Container.DataItem, "District_Name") %>">
<asp:commandfield buttontype="Button" deletetext="-" showdeletebutton="True" showheader="True">
Thanks in advance.
-- modified at 11:32 Wednesday 27th June, 2007
|
|
|
|
|
I suggest using an ObjectDataSource as an mediator between the GridView and the DataTable.
ObjectDataSource makes deleting, inserting, updating much easier.
Please read about using the ObjectDataSource an MSDN.
There are also quite a lot samples you can find using google (search terms: GridView ObjectDataSource)
Good luck
Urs
-^-^-^-^-^-
no risk no funk
|
|
|
|