|
Well, not really... only that as the type is not explicitly defined it just takes care of any situation when you might call the same function from somewhere else with different data types...
|
|
|
|
|
yes ... if you make Option Strict on then CStr is necessary....
Abhishek Sur
|
|
|
|
|
Folks
Iam doing an application which is an EXE.What I want to achieve is, upon clicking on that exe in desktop,it should automatically check whether the user in windows authentication ( User ID and Password used in windows login )is there in DB or not. If the username and password of windows matches that in DB, then the user should be given access and directly the the Form( Simple form with a button I design for test purpose) I design should open. Else, it should display an message that " You are not the authenticated user for to access this application".
Like, there can be many users logging into a windows system. but only selected users have the access to that particular application. It should be done without knowledge of user at the backend.Only in failing cases, it should display the message " You are not the authenticated user for to access this application".
else it should go to that Form page I have designed.
Please please, some folks help me in this as its very very urgent and important ....I will be very thankful to you ....Please paste the entire code with some comments ( As Iam new to this )..
|
|
|
|
|
rajanarayanansabarish wrote: Please paste the entire code with some comments
www.rentacoder.com[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
rajanarayanansabarish wrote: Please please, some folks help me in this as its very very urgent and important
But not important enough for you to post in the right forum ? This is not an ASP.NET question.
rajanarayanansabarish wrote: ( As Iam new to this )..
Then why do you have a task that is 'very very urgent' ??? Have you taken a paid job you can't handle ? This doesn't sound like homework to me.
rajanarayanansabarish wrote: Please paste the entire code with some comments
Code Project has a jobs area, you should perhaps subcontract the work you can't do. Although, it sounds like that will be all of it, and I'd guess you have no margins to subcontract, you're in fact an example of why outsourcing doesn't work. b/c incompetent people bid low on jobs they can't do, and hope for sites like this to do the work for them.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Christian Graus wrote: have a task that is 'very very urgent' ??? Have you taken a paid job you can't handle ?
Probably so. Too bad the moron who hired him hasn't seen his post.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
and get out of programming.
Blog link to be reinstated at a later date.
|
|
|
|
|
rajanarayanansabarish wrote: .Please paste the entire code with some comments
I wont do that.
Begin by yourself to write your application and in any specific problem we can help you.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Hi
I have a probleman with PostBackTrigger.
There is a button in my page asp.net with this code, with FileUpload Component.
<asp:linkbutton id="lbtIncluir" runat="server" cssclass="label_negrito" text="Incluir" onclick="lbtIncluir_Click" visible="False" xmlns:asp="#unknown">
<triggers> <asp:postbacktrigger controlid="lbtIncluir" xmlns:asp="#unknown">
<triggers>When execute the button lbtIncluir the event lbtIncluir_Click is execute.
When execute the button, the imagem load perfect, but if I press F5 to refresh the page, it is not running PostBack and running the event again lbtIncluir_Click not even being called in Page_Load. Do you know why and how to solve?
Someone could help me?
Thanks.
|
|
|
|
|
Marcos Antonio de Aguiar Junior wrote: but if I press F5 to refresh the page, it is not running PostBack
That is simple. Because it is not a postback.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
So why is he running event (lbtIncluir_Click) again if I am not calling in the PostBack?
|
|
|
|
|
Can anyone point me in the right direction for a good article explaing the different ways to update your files to the server. E.g. binding a DLL, saving the file directly to the server etc
thanks
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
Are you looking for an article on Web Publishing?
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
you can try to Explore CopyWeb Tool and Publish WebSite . Both are many features to update file on server .
|
|
|
|
|
The reason I ask is because I have a project that I usually work on. To update the files I usually just save them in VWD and they are instantly updated on the server.
However I am using YAF which is an open source forum and the code seems to need a dll compiled for it to work. However I cannot do this because I only have VWD.
Is there a way to compile this dll to the server?
thanks
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
.netman wrote: Is there a way to compile this dll to the server?
sorry, i dont have the idea on it.
cheers,
Abhijit
Think Sharp | Code Sharp | C Sharp
|
|
|
|
|
Hi All,
Can anyone tell how to get the trial version of infragistics controls for ASP.net 2005.
S#
|
|
|
|
|
S#4sanjay wrote: infragistics controls
A google search on this text would have been a lot faster for you.
Anyways, here [^]you can get all of them
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi guys
in my application i am using datalist in which data is binding properly but i want to bind a dropdownlist from another data source
the same thing i am using in grid view that is working properly
but not in data list
grid view coding
<asp:templatefield itemstyle-horizontalalign="Left" headertext="PieceLength mtr" xmlns:asp="#unknown">
<itemtemplate>
<asp:dropdownlist id="DropDownList2" runat="server" datasource="<%# name() %>" width="100">
DataTextField="des_emb_peice_lenght">
<headerstyle wrap="False">
code behind page
public DataSet name()
{
string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("cl_london.mdb");
OleDbConnection MyConn = new OleDbConnection(connectionString);
string type = null;
string id_emb = null;
type = Request.QueryString["type"];
id_emb = Request.QueryString["id_emb"];
if (type == null)
{
OleDbDataAdapter cmd1 = new OleDbDataAdapter("select des_emb_peice_lenght from design_emb_peice_details where Emb_des_code='" + Session["type1"] + "'", MyConn);
DataSet ds1 = new DataSet();
cmd1.Fill(ds1);
return ds1;
}
else
{
OleDbDataAdapter cmd1 = new OleDbDataAdapter("select des_emb_peice_lenght from design_emb_peice_details where Emb_des_code='" + type + "'", MyConn);
DataSet ds1 = new DataSet();
cmd1.Fill(ds1);
Session["id_emb_for_design"] = id_emb;
return ds1;
}
}
krishna veer singh
|
|
|
|
|
Hi all,
I installed Dot Net 2003 on a Windows XP service pack 2(64-Bit Machine).
When I try to create a new project then I got a error
(The Web server reported the following error when attempting to create or open the Web project
located at the following URL ; " http://localhost/WebApplication'.'Http/1.1 503 service Unavailable .)
How I reslove this problem . Can u Plz help Me.
Thanks a lot .
|
|
|
|
|
Probably IIS is missing or some permission problems...
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Did you installed web server on your XP and with fronte page extensions. if not open control panel--> Add Remove Programs --> On left page click Add Remove Windows Component and Select IIS , then double click and select all options --> Insert Windows XP professional CD and click Next.
Then Start Creating New Project.
|
|
|
|
|
hi!
I have a problem.
I want to store the "Father's Name" in our Sql Server2000 through the TextBox in Asp.Net application.
I am using this code:
protected void Button1_Click(object sender, EventArgs e)
{
string s="insert into vehicletype VALUES('"+TextBox1.Text+"')";
SqlDataAdapter da = new SqlDataAdapter(s,conn);
DataSet ds= new DataSet();
da.Fill(ds, "type");
}
Following error is displayed:
Incorret syntax near s;
unclosed quotation mark begore the character string ')'.
Please solve my problem as soon as possible.
thanks
|
|
|
|
|
Replace single quote with double single quote.
string s="insert into vehicletype VALUES('"+TextBox1.Text.Replace("'","''")+"')";
I suggest you to read about SQL Injections[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
hi! blue_boy
I am very thankful to you. Your Answer is absolutely solved my problem.
And I welcome your suggestion.
bye.
|
|
|
|