<img src="http://track.opicle.com/aff_l?offer_id=2193&adv_sub=LEAD_ID" width="1" height="1" />
var x ;
x Should be replace at the place of LEAD_ID
<img src="http://track.opicle.com/aff_l?offer_id=2193&adv_sub=x" width="1" height="1" />
i have to assign value to bit varibale.so i declared bool variable . i am assigning string value to a bool variable . so i converted to boolean & assigned.Its not converting to bool..How to assign string value to bit variable.?i am getting error.Object reference not set to an instance of an object
I need to convert a string to http url.The way i have to do this is--I have to retriew a value from database and convert it into a sharable http url in Asp.net C#.
I have a page the retieves transaction data from PayPal. The data is retrieved as a string of text. I need to break down the string and save parts of it to my database. I have justed a plain string in my test to see if my code works. I have converted some working VB code into C# but I am getting the errors when trying to Response.Write the different parts. The Error message says that I am trying to use the string variable before I have assigned a value to it.
I have a column in a table within my SQL database that is specified as a time variable. Not DateTime or Date, but just Time. So, I need to know how to convert a text string into the format that would be accepted for entry in the Time column of a table in SQL. I know how to convert dates, but not time.
I have a label "lbl1" that I am trying to locate in a content page from the Master page. I want to do it dynamically so I am trying to pass the name of the control (which in this case is lbl1) through as a parameter. I don't get an error, it just doesn't work. If I do an alert to see what the string "temp" looks like, it is correct, but iit seems as if Javascript ignores it. I believe it has something to do with the '<%= not being interpreted correctly by the browser I'm sure it is a simple solution, but I can't figure it out!
I have a gridview inside a user control bind to an object datasource. Now I want to bind the object datasource with a parameter from parent page. For this purpose I defined a public property in user control but how do I pass it with object datasource? I am calling from parent page like myusercontrol.parameter=querystring["id"]; How to bind object datasource with my parameter?
I have a page with some datasources in it. I am doing reenginering of the page itself and would like to split some parts of the page in several user controls. In my code I have an ObjectDataSource object with the following params
This piece of code automatically bind the hidden field "txtAlbumId" to the datasource. In my revision this datasource should be moved to a user control. What is the best way to handle a scenario like this?
</textarea></p> <input type='hidden' name='ID[7]' value='34389' /> <input type='hidden' name='URL[7]' value='http://forums.asp.net/t/1627446.aspx' /> <input type='hidden' name='CAT[7]' value='Web Forms' /> <input type='hidden' name='BOARD[7]' value='microsoft' /> <input type='hidden' name='P_DATE[7]' value='Nov 26, 2010 08:25 PM' /> <input type='hidden' name='RANDOM[7]' value='UEVLcNi9r' /> <input type='hidden' name='REPLIES[7]' value='4' /> <input type='hidden' name='USER[7]' value='aziz' /> <p><input class=subject type='text' size='90' name='SUBJECT[7]' value='Web Forms :: How to parse a string variable for diplay in control' /><select name='INDEXED[7]'><option value='1' selected>UPDATE</option><option value='2'>DELETE</option></select>Nov 26, 2010 08:25 PM - Replies: 4 CAT: Web Forms<a target=_blank href="http://forums.asp.net/t/1627446.aspx">View</a></p> <p> <textarea rows=10 cols=100 name='POST[7]' onfocus='setSelRange(this, 0, 0)'/> How can i display the string variable data "234,345,567,678" into a listbox?
i wish to parse the delimited string as seperate items.
the string can vary in length. </textarea></p> <input type='hidden' name='ID[8]' value='175584' /> <input type='hidden' name='URL[8]' value='http://stackoverflow.com/questions/2866868/datasource-select-parameter-from-get-value' /> <input type='hidden' name='CAT[8]' value='ASP.NET' /> <input type='hidden' name='BOARD[8]' value='stackoverflow' /> <input type='hidden' name='P_DATE[8]' value='May 19 10 at 15:21' /> <input type='hidden' name='RANDOM[8]' value='XYAWdt1ps' /> <input type='hidden' name='REPLIES[8]' value='1' /> <input type='hidden' name='USER[8]' value='aziz' /> <p><input class=subject type='text' size='90' name='SUBJECT[8]' value='c# - DataSource Select Parameter from GET value' /><select name='INDEXED[8]'><option value='1' selected>UPDATE</option><option value='2'>DELETE</option></select>May 19 10 at 15:21 - Replies: 1 CAT: ASP.NET<a target=_blank href="http://stackoverflow.com/questions/2866868/datasource-select-parameter-from-get-value">View</a></p> <p> <textarea rows=10 cols=100 name='POST[8]' onfocus='setSelRange(this, 0, 0)'/>How can I use the value of a GET form value as a SelectParameter?
I just like to know how to pass a parameter to the datasource of my dllItemCodeFooter and dllItemCodeEdit Drowndownlist which calls my getItemCodeList(decimal categoryID) method in the code behind. The value of the parameter will be seletectedValue of the first dropdownlist ddlCategoryFooter or ddlCategoryEdit).I know it could be done in code behind, but i prefer to bind my datasource in asp page. I want to achieve something like this DataSource='<%# getItemCodeList(ddlCategoryEdit.Seletected)%>'
I have developed the below web page which has an asp.net 3.5 listview control as it's frontend and an sql server db as it's backend.
[URL]
The first row on the web page is the inserting row. What I am hoping to achieve is that when the user enters their appropriate data they click the "Next" button to assign this dataset with it's own identity ID (customer_id) value within my database (this works perfectly), at the same time on the fly I want to use this customer_id as a query string variable to populate a child page (customerTrades.aspx) in order to pin further data to this identity. Currently I am attempting to use the below code within the iteminserted event of my listview control but I receive the error: "object reference not set to the instance of an object"??
Is this because the child page cannot find the customer_id variable being passed through the query string? Because it's not actually created yet? Am I using the wrong listview event? How can I achieve what I am looking for?
I must also mention that I'm using a linqdatasource to insert my data on runtime into my database. However, I am using the listview iteminserting event to insert my frontend dropdownlist selected values, code below:
i have a master page and one content page. In content page i have a textarea for get value from user. i don't want to make it asp control using add runat = server. without adding runat server i want to get value of textarea in a string variable which is defined in code behind file of my page using c#
In short i want to get value of Html control in code behind file using c#
string title = string.empty; My need is that whatever string is passed to it I have to display the content inside a div with in a doublequotes .So I have written something like:
<div>"+ title +@"</div>
But how to add the doublequotes here? So that it will display like :
is there a way i can get the role in a string variable using the below commands....
System.Security.Principal.WindowsIdentity wi = System.Security.Principal.WindowsIdentity.GetCurrent(); System.Security.Principal.WindowsPrincipal wp = new System.Security.Principal.WindowsPrincipal(wi);
i need this for
FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1, // version UserName.Text, // user name DateTime.Now, // creation DateTime.Now.AddMinutes(60),// Expiration false, // Persistent role); // User data
as string role= wp.IsInRole(); but this is not right
I have written below code to check for blank value in my textbox but its generating compilation Error.
my code in javascript:
function checkTextboxNotFilled(txtbox) { var txtb = document.getElementById("<%= " + txtbox + ".ClientID %>"); if (GetFormattedString(txtb.value) == "") { return true ; } else { return false ; } }
error:
'string' does not contain a definition for 'ClientID' and no extension method 'ClientID' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
I am calling it like this : checkTextboxNotFilled("MytextboxName")
it still does not work, the user writes appendix then press OK in Login, nothing happens
here is the login (vb.net)
Partial Class login Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Session("passcode") = TextBox1.Text Response.Redirect("Default.aspx") End Sub End Class
and here is the default page C#
public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (Session["passcode"] == "appendix") { Response.Write("OK !"); } else { Response.Redirect("login.aspx"); } } }
How to set colModel property of jqGrid dynamically? I want the grid to show only 3 columns when a customer log's in and 5 column's when admin log's in. How to pass colModel in a string variable in javascript?