Appending Domain Name To Custom Link?
Mar 8, 2011
Ive done it before, but cant recall and cant find the code..how can i append the current sites name ex. (http://www.mysite.com/) to a custom file name that im creating?
Im building a string that will contain the domain name like about plus my custom file name at the end like so
http://www.mysite.com/customfile.dat
View 6 Replies
Similar Messages:
Mar 1, 2010
I want to create a function that will make a treeView out of link buttons. Then I want to tie all the link buttons to one click event. So each time the user does somethingI will append the users name to the current linkbuttons if the user clicks one of the link buttons a click event is raised and I can extract the text of that button.
Here is an example:
Nick
...user does something...now the link string says
Nick > Jeff
...user does something...now the link string says
Nick > Jeff > Charlie
and so on.
Now I want to give the user the ability to click one of these link buttons (there are 3 in this example). If the user clicks one of the buttons a click event is raised and I can extract the name out of the text of teh link button.
View 2 Replies
Mar 10, 2011
We use a third party company for email campaigns, the emails have a link to our website with tracking activated whereby we see how many hits we get on our website, my problem is that the links work from outside our company's domain but does open when clicked from within our domain. Now a brief overview of our setup, we host our website on our webserver, Our ISP hosts our domain. While setting up tracking I forwarded a request to our ISP to make changes to our CNAME record and also to create a subdomain tr.company.co.uk
Can anyone point me in the right direction as my ISP are not ready to fully support me on this , initially when I called them months ago they said our router (Cisco 1600) does not support that type of traffic (they manage the router and I have no access to it), I recently contacted the ISP again and this time they said they have not restricted any of our traffic and they now ask me to specify what I want them to do e.g open ports, whitelist addresses etc.
I manage my company's IT systems except the website and I am not really an expert with websites as we have a web team and also an external company that provides web support.
1, Fixing the problem
2, Or knowing who should fix it e.g Our ISP, Our external web developer, or the email campaign company who setup the tracking.
3, Is it a configuration issue with the our webserver
I have tried a site survey tool which comes up with errors for all our webpages but the scan support tracking done with Google analytics so I thought the results are not really reliable.
View 1 Replies
Aug 20, 2010
i am new to technology so go easy on this post according to what i read from web there are 3 type of custom server controls 1 superclass2 composite 3 renderedi found video tutorial for superclass custom server control but couldnt find video tutials for other 2.lease forward me link for composite and rendered custom server controls video tutorial
View 1 Replies
Feb 11, 2010
How does one create custom (non-add, edit delete) buttons to a GridView control? Also how does one add space between the buttons?
View 8 Replies
Nov 15, 2010
I have a project I'm working on, which is basically filling in a form online. The form contains multiple pages, and I have replicated this using a MultiView. On one of the pages I have a CustomValidator which validates a driving licence, based on names/previousnames and the date of birth.If the validation fails, I want to enter a link into the text, which will allow the user to click on it and correct the information that is erroneous.
View 3 Replies
Jan 5, 2010
I am new in ASP.NET, Could you please help me and tell me how to (create a registration custom form and link it to sql database) so every time new register do the registration i need these data to be sent to me as well as to him as an e-mail message, where and how can i look up his data?
View 2 Replies
Jan 20, 2010
Being A C++ programmer this is fairly new to me - I am working on a formview and have been facing a problem- The issue is simple - I want to display a success page after I insert a row successfully and a custom error page if the insertion fails (due to datatype or format mismatch with table in database).
To achieve this I am doing as follows -
1. Defining a custom error page in ASP.NET configuration tool (webconfig)
>> This page never works if I enter an incorrect format in formview. It would rather display the ugly page with Server Error information (for example) -
The string was not recognized as a valid DateTime. There is a unknown word starting at index 0.
question - Why my default page is not getting displayed? Is it because I am testing from same development machine or is it because the error page doesnt work for "Server Error" pages?
2. In the "iteminserted" event I am redirecting it to Response.Redirect("~/newitemconfirm.aspx")
>> If I do this, irrespective of whether the row insertion was successful or not, this confirmation page always gets displayed! I want it to be displayed only on successful insertion.
View 2 Replies
May 6, 2010
My repositories throw exceptions (System.Exception) when some things go bad and I know this is bad practice.. so i will create a custom exception (DataException). My question is should this custom ex class be in the repository layer or the domain layer? Im thinking it should be in Domain layer where all business objects and repository interfaces live but just want to make sure.
View 3 Replies
Feb 17, 2011
I have also installed SSL on a subdomain. I have put payment page under this sub domain.
View 4 Replies
Sep 28, 2010
My feeling says it's not posible but anyway I am curious if there is at least a workaround for accomplish this.Basically I am working at my client site and my machine is not connected to the domain.What I want to do is running a web application locally under a domain account, and using the webdev server.The webapp uses the default authentication, windows authentication that is.I tried using impersonation with domainuser & password but I got the following error Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.I have to mention that the username and the password are correct.
View 1 Replies
Aug 3, 2010
We have a ASP.NET site that partially depends on forms authentication for login credentials, however the implementation of IPrincipal is completely custom.
But, when running the site on a particular server (which is somewhat semi-hardened when it comes to security), the app crashes when invoking IPrincipal.IsInRole() with the following messsage:
System.SystemException: The trust relationship between the primary domain and the trusted domain failed.
This indicates a communication error between the web-server and the DC, however since our application doesn't at all utilizes Windows authentication, I don't see why it needs to communicate with the DC.
This is my implementation:
[code]...
EDIT:
I was finally enable to reproduce this error on my dev-machine (i revoked my machine from the DC yesterday, but didn't reproduce it until today)
HttpContext.User is actually a WindowsPrincipal by default it seems, and the error in my code was that I only replace it with CustomPrincipal upon login. Hence, unathenticated users still get the WindowsPrincipal which then fails horribly if you have trust issues on your AD.
I tried changing the default principal by invoking this on appstart
AppDomain.CurrentDomain.SetPrincipalPolicy( PrincipalPolicy.NoPrincipal);
But this doesn't seem to kick in. How do I change the default Principal in ASP.NET?
View 1 Replies
Aug 16, 2010
Im returning the username from sharepoint site as a string. This is done successfully with the below code but I also get the domain with it. How can I only return the username and not the domain either through sharepoint or programmatically removing it? domain/username
[Code]....
View 3 Replies
Jul 21, 2010
I am working on an asp webform that pulls from an ODBC datasource then puts the data in an sql server. Once the data is in the sql server several queries pull data from it to provide information for a report.
This is an example of what I am talking about private void ODBCpdEmployeeAb()
{ [code].....
The first part gets the data from the ODBC connection and the next part stores it in an sql server table.
I have set the primary keys on my SQL server tables already but it just loads an error page now when the app runs due to duplicate id's
Is there a way to append the most recent data from the ODBC table to the sql server ?
View 6 Replies
Sep 28, 2010
My feeling says it's not posible but anyway I am curious if there is at least a workaround for accomplish this.Basically I am working at my client site and my machine is not connected to the domain.What I want to do is running a web application locally under a domain account, and using the webdev server.The webapp uses the default authentication, windows authentication that is.I tried using impersonation with domainuser & password but I got the following error Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.I have to mention that the username and the password are correct.
View 2 Replies
Jul 28, 2010
I have two domain servers X and Y.My Asp.net Web application is hosted on Domain X.But my scope is required to authorize the user of Domain Y on the Web application hosted on Domain X server.I am using Windows Authetication mode in application
View 2 Replies
Jul 28, 2010
I have a main domain "mydomain.com" and then a sub domain "forums.mydomain.com". If a user visits "forums.mydomain.com" without being logged in, they are redirected to "mydomain.com/login.aspx".
The two scenarios are:
If they are redirected to the login page with "mydomain.com/login.aspx?ReturnUrl=http://forums.mydomain.com", then they are succesfully logged into the forums but NOT the main site.
If they are simply redirected to the login page with "mydomain.com/login.aspx" with no returnUrl, they are correctly logged into both the main site and the forums.
View 2 Replies
May 11, 2010
what is the best way to append data onto a file download? I figure that i can make my own class that implements InputStream and just consolidates two input streams (the file first, my additional data to append second.) but is there an existing view class that i can use to just return an InputStream or will i have to roll my own view class as well?
View 1 Replies
Aug 2, 2010
I would like to append time also with datetime variable. My Todate need to be in the format of 9/9/2010 23:23:59.
View 5 Replies
Mar 15, 2011
[Code]....
And in js i simply change src attr of the image :
$.get("my-url", function (url) {
img.attr("src", url); // getting C: emplabla.jpg
});
Cant figure out to make it work! Source is not a valid path for image
View 2 Replies
Apr 2, 2010
I want to concatenate a newline onto string array element.
I have the following code which is displaying as a string but i want a new line after each concatenation tat is (this.pages[this.page]
+ s).
this.pages[this.page] =
this.pages[this.page] + s +
"
";
View 2 Replies
Apr 4, 2010
I am looking for a way to insert javascript code block to end of ASP.NET page.
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "showVideo", sScript, true);
is appending to body but js codes are always requesting some js files didn't load or some functions are below of the script. How can i append scripts that i generated dynamically to the bottom of body?
View 2 Replies
Jan 21, 2010
I want query like this
declare @stateQuery as nvarchar(200)
if @stateid is null
set @stateQuery=''
if @stateid is not null
set @stateQuery='and tbl_city.stateid ='+cast(@stateid as nvarchar(10))
set @length=(select top 1 len(dbo.Tbl_city.cityName) FROM dbo.tbl_city INNER JOIN tbl_cityinfonew ON dbo.tbl_city.cityId = tbl_cityinfonew.cityId where (tbl_cityinfonew.language =@language )+cast( @stateQuery as nvarchar(100)) order by tbl_cityinfonew.createdate desc)
I don't want to use the exec @string.
View 6 Replies
Jul 21, 2010
When appending parameters to an ADODB.Command should the parameters add to the command text. When I get to the point where it sends to the database the command text of the adodb.command is "{ call PKG_WORKPLAN.ADD_PROJECT(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) }"
I then get a ORA-06502: PL/SQL: numeric or value error: character to number conversion error ORA-06512: at line 1 error. I think i may be getting it from the question mark.
Also is there any way to what sql is inserted if that isn't it.
View 3 Replies
Jun 28, 2012
Code:
sbJavaAlert.Append("alert( "" + msg + "" );");
I can't stand appending a concatenated string. Isn't that the purpose of using a stringbuilder? This is another developer's code and I am adding onto another part of it, but I want to change this too. Or should I just let still waters lie, as the saying goes?
View 6 Replies