Retrieving Results Without Submit?
Apr 3, 2011just like in google, when you search for something. the websites are displayed without clicking submit button.
View 2 Repliesjust like in google, when you search for something. the websites are displayed without clicking submit button.
View 2 RepliesI understand how web.sitemap works in conjunction with the site's menu in order to make menu/submenu choices visible/invisible depending on the authenticated user's roles.
For example, part of my web.sitemap has the following which defines 3 reports. Then, once users log in, those with "Managers" role can see all 3 reports while those with "Users" role can only see the 1st and the 3rd report:
<siteMapNode url="~/Reports/Reports.aspx" title="Reports" description="Reports" roles="Managers,Users">
<siteMapNode url="~/Reports/LettersReport.aspx" title="Letters Report" description="Letters Report" roles="Managers,Users" />
<siteMapNode url="~/Reports/UserSummaryReport.aspx" title="User Summary Report" description="User Summary Report" roles="Managers" />
<siteMapNode url="~/Reports/LetterSummaryReport.aspx" title="Letter Summary Report" description="Letter Summary Report" roles="Managers,Users" />
</siteMapNode>
How can I retrieve these results outside of the menu process? For example, in one of my web pages, I may need to create a dropdown list which should be populated with the results of the menu process.
How can I make the dropdown list show all 3 items when a manager has logged in but only 1st and 3rd items when a user has logged in?
I have a simple .net form with two input boxes to choose the event and location. On button click, an xml url is built and this xml file is read using ReadXml, dataset is built and the results are displayed in the same page. I have both the forms to run at server and it says I cannot have it.
View 1 RepliesI have a form with multiple submit buttons:
using(Ajax.BeginForm("Submit", "myController", new AjaxOptions { HttpMethod = "Post" }))
{ %>
<button type="submit" name="submitType" value="submit_a">a</button>
<button type="submit" name="submitType" value="submit_b">b</button>
<% } %>
In ASP.NET when we have multiple input section with required field validator (Like on header for login with userid & Password is required and second on footer for subscription) when we click on subscription login section's userid required field validator activates and say userid required & i can not submit subscription.
when i submit subscription details login section should not have concern with this. how to avoid this conflicts.
In C#/Asp.net I have 2 submit button i.e.
btnOk and btn_Submit
Initially I am doing validating form by clicking on btnOK and in btn_Submit I am inserting record into table. I again want to call btn_Ok event in btn_Submit click event for re-checking validation, if it validates properly thne rest of code of btn_submit should work.
In VS2010, when I "find in files", I often get doubled results in my find window.
View 5 Replies working on a project interfacing RFID and Vb.
I have got the code for interfacing VB to RFID CAN ANYONE TELL ME HOW CAN I SUBMIT MY ENTRY TO DATABASE AS SOON AS THE TEXT APPEARS IN THE TEXTBOX AND WITHOUT USNG A SUBMIT BUTTON?
I have 2 SUBMIT button in a form one is display:hidden and one is display:block if user click on SUBMIT button (display:block) then another SUBMIT button {display:hidden} should also submitted.
View 2 Repliesiam using an empty div in which i am assigning values through an external javascript via ajax call iam also using an fck editor what i want to do using an internal javascript i want to set the contents of that div in the textarea of fckeditor but in the internal javascript when iam accessing the contents of that div then it is showing "undefined"....
View 1 RepliesIn the following XML structure how do i retrieve the name value and put this into a string? (i am using a XPathNavigator in my method)
<testsystem>
<test>
<name>one</name>
<name>two</name>
<name>three</name>
</test>
</testsystem>
The name will get displayed in the boundcolumn of a datagrid. I was able to get a attribute with a syntax alike this: (but when changing the xml struture it no longer holds a attribute value)
string name = nav.GetAttribute("name", "")
But have no luck getting the value with a nav as of yet. The purpose is to be able to use it for the following object so i can put name into it.
test t = new test() { Name = name, Questions= new List<Questions>() };
On my page, whenever a DetailsView is updated, I must audit the changes into a database. On most pages this works perfect, as there were just textboxes - however on a page I am working on right now, with dropdownlists, my code isn't working.
Basically, what the code does is captures the Updating event of the SqlDataSource, creates a datareader to look at the contents of the row before it's updated, compares the contents to the parameters in the Update query of the SqlDataSource, and if one has changed to log this in a field in the Audit table. An extract of my code is below:
while (reader.Read())
{
for (int i = 0; i < reader.FieldCount; i++)
{
try {
if (reader[i].ToString() != [code].....
When the control is on a dropdownlist, it seems to never go 'into' the IF even though the fields are different. Do I need to do something special to compare the values of dropdownlists? Note I believe the value is stored as an int in my table.
I want to retrieve a cell from the selected row in GridView. Please tell me how to do tanks in advance
View 2 Repliesi've two tables trans-mstr having columns as acc_no_from,date,particular,wd_dt,amt,balance and third_party_transfer(table2) having columns as acc_no_frm,acc_no_to,date,amt.now i wnt to retreive date ,particular,wd_dt,acc_no_to,amt,balance where the acc_no_from in third_party_transfer is equal to the no.entered in the textbox of the webpage.i've used datagrid view to show all this.i'm using c# n sql server2005 in this i'm a beginer
View 1 RepliesERROR: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005
a. I had configured the DCOM on the server
b. If i run the APP on the server with any user: RUN!
c. If i run the APP using the Internet Explorer from any PC everything is fine until i try to call word
e. I have put all template (.dotx) on the server, on the PC and nothing WORD.
I am using office 2003.
the syntax for retrieving a value from a SqlDataSource? I've managed to get it working using numbers to represent the column, but I'd much rather use it's DB name?
[Code]....
//Controller code
CookieContainer cookieContainer = new CookieContainer();
//makes new cookie here
cookieContainer.Add(myCookie);
//Service/Facade code
//myCookie gets passed here
How do I pull the cookie out of the container to make sure it's the right cookie?
Hey there
I have in my database emails table
and i am retrieving all the mails from that table in a string to be included in
message.To.Add()
HOW can i put it in the right format ( separated by Comma and space ) while selecting them from the database?
thank you
in my db i have:
2011-01-28 12:03:46.223
when displaying on .aspx page,
<%# Eval("ModifiedDateTime") == null ? " " : Eval("ModifiedDateTime")%>
it displays on the grid like this:
12/2/2010 8:43:18 AM
how do I format it like the default format shown when I query my db?
I have the following select statement :
string Statement = "SELECT * FROM Car WHERE brand = Bmw;
how is it possble to display the result from the statement, because when i display the result exp: LblInfo.Text = Statement;
The result is : SELECT * FROM Car WHERE Brand = Bmw
I have a stored procedure with two input parameters which calculates the distance between two points. When I call it from aspx.cs I get an error.
Here is the code:
CreateDataSet();
float raz;
String str = "";
float min = 3.4F;
String clo = "";
[Code]....
and the error I get is:
Exception Details: System.Data.SqlClient.SqlException: Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
Source Error:
[Code]....
When I test the procedure in SQL Server Management Studio everything is OK and I get a value 539.551855770807 for the certain input parameters.
I want to be able to take a select statement like: SELECT password FROM table WHERE user_name = @user_name and compare it with what was entered in a form text box. I have tried:
AccessDataSource1.SelectParameters("password").DefaultValue
= TextBox1.Text
AccessDataSource1.Select() (not sure how this works or what to set it equal to)
I also tried to connect to the database with a basic ADO connection that I got off another forum, with no luck
I am binding some data to control, but want to limit the number of character of a specific field to a 30 first characters. I want to do it, if it's possible, on aspx page.
I tried this:
Text='<%# String.Format("{0}", Eval("Title")).Substring(0,30) %> '
But got this error: Index and length must refer to a location within the string. Parameter name: length
I am trying to retrieve two listviews from an ascx control for the purpose of saving them to a PDF file:
<TagCloud:TagCloudControl ID="TagCloudControl1" runat="server" />
I get the following error: TagCloudControl1 is a field but is used like a type and an object reference is required for the non-static field, method or property..
ListView lv1 = (TagCloudControl1)ListView.FindControl("ListView1");
ListView lv2 = (TagCloudControl1)ListView.FindControl("ListView2");
lv1.RenderControl(htWriter);
lv2.RenderControl(htWriter);
I have the following code in a stored procedure to retrieve all posts:
[Code]....
However, I am having trouble selecting posts by their tag..